mirror of
https://github.com/googlemaps/android-samples.git
synced 2025-12-08 18:02:20 +00:00
81 lines
2.5 KiB
Groovy
81 lines
2.5 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'kotlin-android'
|
|
// [START maps_android_secrets_gradle_plugin]
|
|
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
|
|
// [END maps_android_secrets_gradle_plugin]
|
|
}
|
|
|
|
android {
|
|
compileSdk 32
|
|
defaultConfig {
|
|
applicationId "com.google.maps.example"
|
|
minSdk 21
|
|
targetSdk 32
|
|
versionCode 1
|
|
versionName "1.0"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion '1.2.0-alpha05'
|
|
}
|
|
|
|
buildFeatures {
|
|
compose true
|
|
}
|
|
|
|
flavorDimensions "version"
|
|
|
|
productFlavors {
|
|
gms {
|
|
dimension "version"
|
|
applicationIdSuffix ".gms"
|
|
versionNameSuffix "-gms"
|
|
}
|
|
v3 {
|
|
dimension "version"
|
|
applicationIdSuffix ".v3"
|
|
versionNameSuffix "-v3"
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
implementation 'androidx.core:core-ktx:1.7.0'
|
|
implementation 'androidx.appcompat:appcompat:1.4.1'
|
|
implementation "androidx.compose.foundation:foundation:1.2.0-alpha05"
|
|
implementation "androidx.compose.material:material:1.2.0-alpha05"
|
|
implementation 'com.google.android.material:material:1.5.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
|
implementation 'androidx.navigation:navigation-fragment:2.4.1'
|
|
implementation 'androidx.navigation:navigation-ui:2.4.1'
|
|
implementation 'com.android.volley:volley:1.2.1'
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.1'
|
|
|
|
gmsImplementation 'com.google.maps.android:maps-ktx:3.3.0'
|
|
gmsImplementation 'com.google.maps.android:maps-compose:2.0.0'
|
|
gmsImplementation 'com.google.android.gms:play-services-maps:18.0.2'
|
|
gmsImplementation 'com.google.maps.android:android-maps-utils:2.3.0'
|
|
v3Implementation 'com.google.android.libraries.maps:maps:3.1.0-beta'
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
}
|
|
|
|
secrets {
|
|
defaultPropertiesFileName = 'local.defaults.properties'
|
|
}
|