From f70c47bd0cbd5ed73dfd43199371dcfc6afd6350 Mon Sep 17 00:00:00 2001
From: Angela Yu <5506675+wangela@users.noreply.github.com>
Date: Sat, 28 Oct 2023 12:46:58 -0700
Subject: [PATCH] chore: remove v3 files
---
snippets/app/src/v3/AndroidManifest.xml | 28 --------
.../example/CloudBasedMapStylingActivity.java | 35 ----------
.../maps/example/POIBehaviorActivity.java | 42 ------------
.../PolylineCustomizationActivity.java | 61 -----------------
.../kotlin/CloudBasedMapStylingActivity.kt | 33 ----------
.../example/kotlin/POIBehaviorActivity.kt | 39 -----------
.../kotlin/PolylineCustomizationActivity.kt | 66 -------------------
snippets/app/src/v3/res/values/dimens.xml | 18 -----
snippets/app/src/v3/res/values/strings.xml | 20 ------
snippets/app/src/v3/res/values/styles.xml | 24 -------
10 files changed, 366 deletions(-)
delete mode 100644 snippets/app/src/v3/AndroidManifest.xml
delete mode 100644 snippets/app/src/v3/java/com/google/maps/example/CloudBasedMapStylingActivity.java
delete mode 100644 snippets/app/src/v3/java/com/google/maps/example/POIBehaviorActivity.java
delete mode 100644 snippets/app/src/v3/java/com/google/maps/example/PolylineCustomizationActivity.java
delete mode 100644 snippets/app/src/v3/java/com/google/maps/example/kotlin/CloudBasedMapStylingActivity.kt
delete mode 100644 snippets/app/src/v3/java/com/google/maps/example/kotlin/POIBehaviorActivity.kt
delete mode 100644 snippets/app/src/v3/java/com/google/maps/example/kotlin/PolylineCustomizationActivity.kt
delete mode 100644 snippets/app/src/v3/res/values/dimens.xml
delete mode 100644 snippets/app/src/v3/res/values/strings.xml
delete mode 100644 snippets/app/src/v3/res/values/styles.xml
diff --git a/snippets/app/src/v3/AndroidManifest.xml b/snippets/app/src/v3/AndroidManifest.xml
deleted file mode 100644
index 9b2cfe183..000000000
--- a/snippets/app/src/v3/AndroidManifest.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/snippets/app/src/v3/java/com/google/maps/example/CloudBasedMapStylingActivity.java b/snippets/app/src/v3/java/com/google/maps/example/CloudBasedMapStylingActivity.java
deleted file mode 100644
index 932a624c3..000000000
--- a/snippets/app/src/v3/java/com/google/maps/example/CloudBasedMapStylingActivity.java
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2020 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package com.google.maps.example;
-
-import androidx.appcompat.app.AppCompatActivity;
-
-import android.os.Bundle;
-
-import com.google.android.libraries.maps.GoogleMapOptions;
-import com.google.android.libraries.maps.MapFragment;
-
-public class CloudBasedMapStylingActivity extends AppCompatActivity {
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- // [START maps_android_cloud_based_map_styling]
- MapFragment mapFragment = MapFragment.newInstance(
- new GoogleMapOptions()
- .mapId(getResources().getString(R.string.map_id)));
- // [END maps_android_cloud_based_map_styling]
- }
-}
\ No newline at end of file
diff --git a/snippets/app/src/v3/java/com/google/maps/example/POIBehaviorActivity.java b/snippets/app/src/v3/java/com/google/maps/example/POIBehaviorActivity.java
deleted file mode 100644
index 8f95433f1..000000000
--- a/snippets/app/src/v3/java/com/google/maps/example/POIBehaviorActivity.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2020 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package com.google.maps.example;
-
-import android.os.Bundle;
-
-import androidx.annotation.Nullable;
-import androidx.appcompat.app.AppCompatActivity;
-
-import com.google.android.libraries.maps.GoogleMap;
-import com.google.android.libraries.maps.model.LatLng;
-import com.google.android.libraries.maps.model.Marker;
-import com.google.android.libraries.maps.model.MarkerOptions;
-
-class POIBehaviorActivity extends AppCompatActivity {
-
- private GoogleMap map;
-
- @Override
- protected void onCreate(@Nullable Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- // [START maps_android_marker_collision]
- Marker marker = map.addMarker(
- new MarkerOptions()
- .position(new LatLng(10, 10))
- .zIndex(10) // Optional.
- .collisionBehavior(Marker.CollisionBehavior.OPTIONAL_AND_HIDES_LOWER_PRIORITY));
- // [END maps_android_marker_collision]
- }
-}
diff --git a/snippets/app/src/v3/java/com/google/maps/example/PolylineCustomizationActivity.java b/snippets/app/src/v3/java/com/google/maps/example/PolylineCustomizationActivity.java
deleted file mode 100644
index 81d3d8ac2..000000000
--- a/snippets/app/src/v3/java/com/google/maps/example/PolylineCustomizationActivity.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2020 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package com.google.maps.example;
-
-import android.graphics.Color;
-import androidx.appcompat.app.AppCompatActivity;
-
-import com.google.android.libraries.maps.GoogleMap;
-import com.google.android.libraries.maps.model.BitmapDescriptorFactory;
-import com.google.android.libraries.maps.model.LatLng;
-import com.google.android.libraries.maps.model.Polyline;
-import com.google.android.libraries.maps.model.PolylineOptions;
-import com.google.android.libraries.maps.model.StampStyle;
-import com.google.android.libraries.maps.model.StrokeStyle;
-import com.google.android.libraries.maps.model.StyleSpan;
-import com.google.android.libraries.maps.model.TextureStyle;
-
-public class PolylineCustomizationActivity extends AppCompatActivity {
-
- private GoogleMap map;
-
- private void multicoloredPolyline() {
- // [START maps_android_polyline_multicolored]
- Polyline line = map.addPolyline(new PolylineOptions()
- .add(new LatLng(47.6677146,-122.3470447), new LatLng(47.6442757,-122.2814693))
- .addSpan(new StyleSpan(Color.RED))
- .addSpan(new StyleSpan(Color.GREEN)));
- // [END maps_android_polyline_multicolored]
- }
-
- private void multicoloredGradientPolyline() {
- // [START maps_android_polyline_gradient]
- Polyline line = map.addPolyline(new PolylineOptions()
- .add(new LatLng(47.6677146,-122.3470447), new LatLng(47.6442757,-122.2814693))
- .addSpan(new StyleSpan(StrokeStyle.gradientBuilder(Color.RED, Color.YELLOW).build())));
- // [END maps_android_polyline_gradient]
- }
-
- private void stampedPolyline() {
- // [START maps_android_polyline_stamped]
- StampStyle stampStyle =
- TextureStyle.newBuilder(BitmapDescriptorFactory.fromResource(R.drawable.walking_dot)).build();
- StyleSpan span = new StyleSpan(StrokeStyle.colorBuilder(Color.RED).stamp(stampStyle).build());
- map.addPolyline(new PolylineOptions()
- .add(new LatLng(47.6677146,-122.3470447), new LatLng(47.6442757,-122.2814693))
- .addSpan(span));
- // [END maps_android_polyline_stamped]
- }
-}
\ No newline at end of file
diff --git a/snippets/app/src/v3/java/com/google/maps/example/kotlin/CloudBasedMapStylingActivity.kt b/snippets/app/src/v3/java/com/google/maps/example/kotlin/CloudBasedMapStylingActivity.kt
deleted file mode 100644
index 5ca73cfa3..000000000
--- a/snippets/app/src/v3/java/com/google/maps/example/kotlin/CloudBasedMapStylingActivity.kt
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2020 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package com.google.maps.example.kotlin
-
-import android.os.Bundle
-import androidx.appcompat.app.AppCompatActivity
-import com.google.android.libraries.maps.GoogleMapOptions
-import com.google.android.libraries.maps.MapFragment
-import com.google.maps.example.R
-
-class CloudBasedMapStylingActivity : AppCompatActivity() {
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- // [START maps_android_cloud_based_map_styling]
- val mapFragment = MapFragment.newInstance(
- GoogleMapOptions()
- .mapId(resources.getString(R.string.map_id))
- )
- // [END maps_android_cloud_based_map_styling]
- }
-}
\ No newline at end of file
diff --git a/snippets/app/src/v3/java/com/google/maps/example/kotlin/POIBehaviorActivity.kt b/snippets/app/src/v3/java/com/google/maps/example/kotlin/POIBehaviorActivity.kt
deleted file mode 100644
index 12f9c49d4..000000000
--- a/snippets/app/src/v3/java/com/google/maps/example/kotlin/POIBehaviorActivity.kt
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2020 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package com.google.maps.example.kotlin
-
-import android.os.Bundle
-import androidx.appcompat.app.AppCompatActivity
-import com.google.android.libraries.maps.GoogleMap
-import com.google.android.libraries.maps.model.LatLng
-import com.google.android.libraries.maps.model.Marker
-import com.google.android.libraries.maps.model.MarkerOptions
-
-class POIBehaviorActivity : AppCompatActivity() {
-
- private lateinit var map: GoogleMap
-
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- // [START maps_android_marker_collision]
- val marker = map.addMarker(
- MarkerOptions()
- .position(LatLng(10.0, 10.0))
- .zIndex(10f) // Optional.
- .collisionBehavior(Marker.CollisionBehavior.OPTIONAL_AND_HIDES_LOWER_PRIORITY)
- )
- // [END maps_android_marker_collision]
- }
-}
\ No newline at end of file
diff --git a/snippets/app/src/v3/java/com/google/maps/example/kotlin/PolylineCustomizationActivity.kt b/snippets/app/src/v3/java/com/google/maps/example/kotlin/PolylineCustomizationActivity.kt
deleted file mode 100644
index 6472589ae..000000000
--- a/snippets/app/src/v3/java/com/google/maps/example/kotlin/PolylineCustomizationActivity.kt
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2020 Google LLC
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package com.google.maps.example.kotlin
-
-import android.graphics.Color
-import androidx.appcompat.app.AppCompatActivity
-import com.google.android.libraries.maps.GoogleMap
-import com.google.android.libraries.maps.model.*
-import com.google.maps.example.R
-
-class PolylineCustomizationActivity : AppCompatActivity() {
- private lateinit var map: GoogleMap
-
- private fun multicoloredPolyline() {
- // [START maps_android_polyline_multicolored]
- val line = map.addPolyline(
- PolylineOptions()
- .add(LatLng(47.6677146, -122.3470447), LatLng(47.6442757, -122.2814693))
- .addSpan(StyleSpan(Color.RED))
- .addSpan(StyleSpan(Color.GREEN))
- )
- // [END maps_android_polyline_multicolored]
- }
-
- private fun multicoloredGradientPolyline() {
- // [START maps_android_polyline_gradient]
- val line = map.addPolyline(
- PolylineOptions()
- .add(LatLng(47.6677146, -122.3470447), LatLng(47.6442757, -122.2814693))
- .addSpan(
- StyleSpan(
- StrokeStyle.gradientBuilder(
- Color.RED,
- Color.YELLOW
- ).build()
- )
- )
- )
- // [END maps_android_polyline_gradient]
- }
-
- private fun stampedPolyline() {
- // [START maps_android_polyline_stamped]
- val stampStyle =
- TextureStyle.newBuilder(BitmapDescriptorFactory.fromResource(R.drawable.walking_dot)).build()
- val span = StyleSpan(StrokeStyle.colorBuilder(Color.RED).stamp(stampStyle).build())
- map.addPolyline(
- PolylineOptions()
- .add(LatLng(47.6677146, -122.3470447), LatLng(47.6442757, -122.2814693))
- .addSpan(span)
- )
- // [END maps_android_polyline_stamped]
- }
-}
\ No newline at end of file
diff --git a/snippets/app/src/v3/res/values/dimens.xml b/snippets/app/src/v3/res/values/dimens.xml
deleted file mode 100644
index f2621273e..000000000
--- a/snippets/app/src/v3/res/values/dimens.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/snippets/app/src/v3/res/values/strings.xml b/snippets/app/src/v3/res/values/strings.xml
deleted file mode 100644
index 6182c5243..000000000
--- a/snippets/app/src/v3/res/values/strings.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
- PolylineCustomizationActivity
- 13564581852493597319
-
\ No newline at end of file
diff --git a/snippets/app/src/v3/res/values/styles.xml b/snippets/app/src/v3/res/values/styles.xml
deleted file mode 100644
index 1648d1e30..000000000
--- a/snippets/app/src/v3/res/values/styles.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file