mirror of
https://github.com/googlemaps/android-samples.git
synced 2025-12-08 18:02:20 +00:00
* Update ApiDemos/java to latest Maps SDK for Android * Update ApiDemos/kotlin to latest Maps SDK for Android * Update tutorials/CurrentPlaceDetailsOnMap to new Places SDK for Android * Update tutorials/MapWithMarker to latest Maps SDK for Android * Update tutorials/Polygons to latest Maps SDK for Android * Update tutorials/StyledMap to latest Maps SDK for Android * Update README with better instructions for API key
42 lines
1.5 KiB
Groovy
42 lines
1.5 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
defaultConfig {
|
|
applicationId "com.example.kotlindemos"
|
|
minSdkVersion 16
|
|
targetSdkVersion 29
|
|
versionCode 1
|
|
versionName "1.0"
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'com.google.android.gms:play-services-maps:17.0.0'
|
|
testImplementation 'junit:junit:4.12'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
|
// Needed for the LiteListDemo
|
|
implementation "androidx.cardview:cardview:1.0.0"
|
|
implementation "androidx.recyclerview:recyclerview:1.1.0"
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
|
|
|
|
// Below is used to run the easypermissions library to manage location permissions
|
|
// EasyPermissions is needed to help us request for permission to access location
|
|
implementation 'pub.devrel:easypermissions:1.1.1'
|
|
} |