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

49 lines
1.6 KiB
Groovy

plugins {
id 'com.android.application'
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
}
android {
compileSdk 34
defaultConfig {
applicationId "com.example.styledmap"
minSdk 21
targetSdk 34
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildFeatures {
buildConfig = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
namespace "com.example.styledmap"
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.gms:play-services-maps:19.0.0'
implementation(platform("org.jetbrains.kotlin:kotlin-bom:2.0.0"))
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
}
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'
}