mirror of
https://github.com/googlemaps/android-samples.git
synced 2025-12-08 18:02:20 +00:00
* feat: copies some snippets that were in v3 only to gms chore: the java compatibility version * fix: updates copyright dates and adds missing copyright * fix: copyright header for strings.xml * fix: set Java Version back to 17 * fix: set Java Version back to 17 * fix: set Java Version back to 17 * fix: set Java Version back to 17 * fix: set Java Version back to 17 * feat: creates AdvancedMarkersCollisionActivity to demonstrate marker collision behavior * chore: not adding jar files in libs directory * feat: set Java 21 everywhere --------- Co-authored-by: Enrique López Mañas <eenriquelopez@gmail.com>
58 lines
1.8 KiB
Groovy
58 lines
1.8 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 {
|
|
// 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'
|
|
}
|
|
|