50 lines
1.5 KiB
Groovy

plugins {
id 'com.android.application'
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"
}
buildFeatures {
buildConfig = true
}
buildTypes {
debug {
debuggable true
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
namespace 'com.example.currentplacedetailsonmap'
}
dependencies {
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'
implementation platform("org.jetbrains.kotlin:kotlin-bom:2.0.0")
testImplementation'junit:junit:4.13.2'
}
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'
}