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

48 lines
1.4 KiB
Groovy

plugins {
id 'com.android.application'
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"
}
buildFeatures {
buildConfig = true
}
buildTypes {
debug {
debuggable true
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
namespace 'com.example.currentplacedetailsonmap'
}
dependencies {
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'
implementation platform("org.jetbrains.kotlin:kotlin-bom:2.0.0")
testImplementation'junit:junit:4.13.2'
}
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"
// A properties file containing default secret values. This file can be
// checked in version control.
defaultPropertiesFileName = 'local.defaults.properties'
}