saranvd 4fef493e6f
chore: Updates the app level build.gradle in tutorials (#1754)
Edit the properties of the plugin to set propertiesFileName to secrets.properties.
2024-08-16 11:08:21 -07:00

62 lines
2.0 KiB
Groovy

plugins {
id 'com.android.application'
id 'kotlin-android'
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
}
android {
compileSdk 34
defaultConfig {
applicationId "com.example.currentplacedetailsonmap"
minSdk 21
targetSdk 34
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildFeatures {
buildConfig = true
}
buildTypes {
debug {
debuggable true
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
namespace 'com.example.currentplacedetailsonmap'
}
dependencies {
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.gms:play-services-maps:19.0.0'
implementation 'com.google.android.libraries.places:places:3.5.0'
implementation 'com.android.volley:volley:1.2.1'
testImplementation'junit:junit:4.13.2'
implementation "androidx.core:core-ktx:1.13.1"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.3"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
secrets {
// Optionally specify a different file name containing your secrets.
// If the secrets.properties file does not exist, create it in the same folder as the local.properties file.
propertiesFileName = "secrets.properties"
// To add your Maps API key to this project:
// 1. Open the root project's local.properties file
// 2. Add this line, where YOUR_API_KEY is your API key:
// MAPS_API_KEY=YOUR_API_KEY
defaultPropertiesFileName 'local.defaults.properties'
}