From 8da74564d6e2d2801ffae8a8de3fde9ba0262cff Mon Sep 17 00:00:00 2001 From: Chris Arriola Date: Tue, 26 May 2020 10:42:02 -0700 Subject: [PATCH] chore: Remove KTX and lifecycle dependencies from MapsMarkerActivity (#213) --- tutorials/kotlin/MapWithMarker/app/build.gradle | 2 -- .../main/java/com/example/mapwithmarker/MapsMarkerActivity.kt | 4 ---- 2 files changed, 6 deletions(-) diff --git a/tutorials/kotlin/MapWithMarker/app/build.gradle b/tutorials/kotlin/MapWithMarker/app/build.gradle index 3d4b9cfd..f1cf32fd 100644 --- a/tutorials/kotlin/MapWithMarker/app/build.gradle +++ b/tutorials/kotlin/MapWithMarker/app/build.gradle @@ -38,9 +38,7 @@ dependencies { implementation "androidx.core:core-ktx:1.2.0" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.1.0' - implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.2.0' implementation 'com.google.android.gms:play-services-maps:17.0.0' - implementation 'com.google.maps.android:maps-ktx:1.5.0' // Tests testImplementation 'junit:junit:4.13' diff --git a/tutorials/kotlin/MapWithMarker/app/src/main/java/com/example/mapwithmarker/MapsMarkerActivity.kt b/tutorials/kotlin/MapWithMarker/app/src/main/java/com/example/mapwithmarker/MapsMarkerActivity.kt index 5fbaf10e..4395ae28 100644 --- a/tutorials/kotlin/MapWithMarker/app/src/main/java/com/example/mapwithmarker/MapsMarkerActivity.kt +++ b/tutorials/kotlin/MapWithMarker/app/src/main/java/com/example/mapwithmarker/MapsMarkerActivity.kt @@ -17,16 +17,12 @@ package com.example.mapwithmarker import android.os.Bundle import android.widget.Toast import androidx.appcompat.app.AppCompatActivity -import androidx.lifecycle.coroutineScope import com.google.android.gms.maps.CameraUpdateFactory import com.google.android.gms.maps.GoogleMap import com.google.android.gms.maps.OnMapReadyCallback import com.google.android.gms.maps.SupportMapFragment import com.google.android.gms.maps.model.LatLng import com.google.android.gms.maps.model.MarkerOptions -import com.google.maps.android.ktx.MapsExperimentalFeature -import com.google.maps.android.ktx.addMarker -import com.google.maps.android.ktx.awaitMap /** * An activity that displays a Google map with a marker (pin) to indicate a particular location.