mirror of
https://github.com/googlemaps/android-samples.git
synced 2025-12-08 18:02:20 +00:00
* chore: update WearOS readme * chore: update WearOS AGP version * chore: remove outdated API key instructions * chore: update comments in build.gradle
70 lines
2.0 KiB
Groovy
70 lines
2.0 KiB
Groovy
import org.apache.tools.ant.filters.ConcatFilter
|
|
|
|
plugins {
|
|
id 'com.android.application'
|
|
id 'project-report'
|
|
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
|
|
}
|
|
|
|
android {
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
applicationId "com.example.mapdemo"
|
|
minSdk 21
|
|
targetSdk 34
|
|
versionCode 1
|
|
versionName "1.0"
|
|
multiDexEnabled true
|
|
}
|
|
buildFeatures {
|
|
compose true
|
|
buildConfig = true
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
flavorDimensions "version"
|
|
productFlavors {
|
|
gms {
|
|
dimension "version"
|
|
applicationIdSuffix ".gms"
|
|
versionNameSuffix "-gms"
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_21
|
|
targetCompatibility JavaVersion.VERSION_21
|
|
}
|
|
namespace "com.example.mapdemo"
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.appcompat:appcompat:1.7.0'
|
|
implementation "androidx.recyclerview:recyclerview:1.3.2"
|
|
implementation 'com.android.volley:volley:1.2.1'
|
|
implementation(platform("org.jetbrains.kotlin:kotlin-bom:2.0.0"))
|
|
// GMS
|
|
gmsImplementation 'com.google.android.gms:play-services-maps:19.0.0'
|
|
|
|
// Tests
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
|
|
}
|
|
|
|
secrets {
|
|
// To add your Maps API key to this project:
|
|
// 1. If the secrets.properties file does not exist, create it in the same folder as the local.properties file.
|
|
// 2. Add this line, where YOUR_API_KEY is your API key:
|
|
// MAPS_API_KEY=YOUR_API_KEY
|
|
propertiesFileName = "secrets.properties"
|
|
|
|
// A properties file containing default secret values. This file can be
|
|
// checked in version control.
|
|
defaultPropertiesFileName = "local.defaults.properties"
|
|
}
|