mirror of
https://github.com/googlemaps/android-samples.git
synced 2025-12-08 18:02:20 +00:00
* chore: Update Gradle wrapper to version 8.8 Upgrades the Gradle wrapper files to version 8.8 to ensure compatibility with the latest features and performance improvements. This includes updating the wrapper JAR, properties, and shell scripts. * chore: update gradle version * chore: Standardize on Java 17 * Update gradle-wrapper.properties * Update gradle-wrapper.properties * Update gradle-wrapper.properties * Update gradle-wrapper.properties * Update gradle-wrapper.properties * Update gradle-wrapper.properties * Update gradle-wrapper.properties * Update gradle-wrapper.properties * Update gradle-wrapper.properties --------- Co-authored-by: Enrique López-Mañas <eenriquelopez@gmail.com>
91 lines
2.9 KiB
Plaintext
91 lines
2.9 KiB
Plaintext
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
/*
|
|
* Copyright 2024 Google LLC
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("com.google.android.libraries.mapsplatform.secrets-gradle-plugin")
|
|
}
|
|
|
|
android {
|
|
compileSdk = libs.versions.compileSdk.get().toInt()
|
|
|
|
defaultConfig {
|
|
applicationId = "com.example.currentplacedetailsonmap"
|
|
minSdk = libs.versions.minSdk.get().toInt()
|
|
targetSdk = libs.versions.targetSdk.get().toInt()
|
|
versionCode = libs.versions.versionCode.get().toInt()
|
|
versionName = libs.versions.versionName.get()
|
|
testInstrumentationRunner = "android.support.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
isDebuggable = true
|
|
}
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.toVersion(libs.versions.javaVersion.get())
|
|
targetCompatibility = JavaVersion.toVersion(libs.versions.javaVersion.get())
|
|
}
|
|
|
|
namespace = "com.example.currentplacedetailsonmap"
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget.set(JvmTarget.JVM_17)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
androidTestImplementation(libs.espressoCore) {
|
|
exclude(group = "com.android.support", module = "support-annotations")
|
|
}
|
|
implementation(libs.appcompat)
|
|
implementation(libs.playServicesMaps)
|
|
implementation(libs.places)
|
|
implementation(libs.volley)
|
|
testImplementation(libs.junit)
|
|
implementation(libs.coreKtx)
|
|
implementation(libs.lifecycleViewModelKtx)
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:${libs.versions.kotlin.get()}")
|
|
implementation(libs.material)
|
|
}
|
|
|
|
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"
|
|
}
|