Chris Arriola 69f17a8fb0
feat: Adding kotlin sample for MapWithMarker. (#192)
* feat: Adding kotlin sample for MapWithMarker.

* Using gradle technique for passing the API key

* Adding license headers.

* Modify java MapWithMarker to use secure.properties as well.

* Adding more license headers

* Update build.yml cd

* Fix dir.

* Using maps_api_key

* Update tutorials/kotlin/MapWithMarker/app/src/main/java/com/example/mapwithmarker/MapsMarkerActivity.kt

Co-authored-by: Sean Barbeau <sjbarbeau@gmail.com>

* Comments

* Add missing import

Co-authored-by: Sean Barbeau <sjbarbeau@gmail.com>
2020-05-07 15:02:38 -07:00

36 lines
1.2 KiB
Groovy

apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.example.currentplacedetailsonmap"
minSdkVersion 17
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
resValue "string", "google_maps_key", (project.findProperty("GOOGLE_MAPS_API_KEY") ?: "")
}
buildTypes {
debug {
debuggable true
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'com.google.android.libraries.places:places:2.2.0'
testImplementation'junit:junit:4.12'
}