Dale Hawkins abcc8b52c2
feat: copies some snippets that were in v3 only to gms (#1715)
* 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>
2024-07-24 10:56:55 -06:00

73 lines
2.3 KiB
Groovy

plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'org.jetbrains.kotlin.plugin.compose' version "2.0.0"
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
}
android {
namespace 'com.example.app_compose'
compileSdk 34
defaultConfig {
applicationId "com.example.app_compose"
minSdk 21
targetSdk 34
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
compose true
buildConfig = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
kotlinOptions {
jvmTarget = '21'
}
}
// [START maps_android_compose_dependency]
dependencies {
// [START_EXCLUDE silent]
implementation 'org.jetbrains.kotlin:kotlin-stdlib:2.0.0'
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation "androidx.compose.foundation:foundation:1.7.0-beta04"
implementation "androidx.compose.material:material:1.7.0-beta04"
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.navigation:navigation-fragment-ktx:2.7.7'
implementation 'androidx.navigation:navigation-ui-ktx:2.7.7'
implementation 'com.android.volley:volley:1.2.1'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.3'
// [END_EXCLUDE]
// Android Maps Compose composables for the Maps SDK for Android
implementation 'com.google.maps.android:maps-compose:6.1.0'
}
// [END maps_android_compose_dependency]
secrets {
// Optionally specify a different file name containing your secrets.
// The plugin defaults to "local.properties"
propertiesFileName = "secrets.properties"
// A properties file containing default secret values. This file can be
// checked in version control.
defaultPropertiesFileName = 'local.defaults.properties'
}