// [START maps_android_secrets_gradle_plugin] plugins { // [START_EXCLUDE] id 'com.android.application' id 'kotlin-android' // [END_EXCLUDE] id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' } // [END maps_android_secrets_gradle_plugin] android { compileSdk 33 defaultConfig { applicationId "com.google.maps.example" minSdk 24 targetSdk 33 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildFeatures { buildConfig = true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } flavorDimensions "version" productFlavors { gms { dimension "version" applicationIdSuffix ".gms" versionNameSuffix "-gms" } } compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } namespace 'com.google.maps.example' } // [START maps_android_play_services_maps_dependency] dependencies { // [START_EXCLUDE silent] implementation fileTree(dir: "libs", include: ["*.jar"]) implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.9.23' implementation 'androidx.core:core-ktx:1.12.0' implementation 'androidx.appcompat:appcompat:1.6.1' implementation "androidx.compose.foundation:foundation:1.7.0-alpha05" implementation "androidx.compose.material:material:1.7.0-alpha05" implementation 'com.google.android.material:material:1.11.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.7.0' implementation 'com.google.android.libraries.places:places:3.4.0' // [END_EXCLUDE] // Maps SDK for Android implementation 'com.google.android.gms:play-services-maps:18.2.0' } // [END maps_android_play_services_maps_dependency] // [START maps_android_secrets_gradle_plugin_config] 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" // Configure which keys should be ignored by the plugin by providing regular expressions. // "sdk.dir" is ignored by default. ignoreList.add("keyToIgnore") // Ignore the key "keyToIgnore" ignoreList.add("sdk.*") // Ignore all keys matching the regexp "sdk.*" } // [END maps_android_secrets_gradle_plugin_config]