diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 9ed40082d..355ea2b94 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -15,14 +15,14 @@
version: 2
updates:
- package-ecosystem: gradle
- directory: "/./ApiDemos/java"
+ directory: "/./ApiDemos/project/java-app"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
commit-message:
prefix: chore(deps)
- package-ecosystem: gradle
- directory: "/./ApiDemos/kotlin"
+ directory: "/./ApiDemos/project/kotlin-app"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 99cfb485c..05ce08458 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -45,8 +45,12 @@ jobs:
- name: Build and check
run: |
cd ApiDemos
- for dir in ./*/ ; do ( cd "$dir" && ./gradlew buildDebugPreBundle ); done
-
+ for dir in ./*/ ; do
+ if [[ "$dir" != "./resources/" ]]; then
+ ( cd "$dir" && ./gradlew buildDebugPreBundle )
+ fi
+ done
+
build-WearOS:
runs-on: ubuntu-latest
timeout-minutes: 45
@@ -79,7 +83,7 @@ jobs:
- name: Build and check
run: |
cd snippets
- ./gradlew assembleDebug lintGmsDebug
+ ./gradlew assembleDebug lintDebug
build-tutorials:
runs-on: ubuntu-latest
diff --git a/.github/workflows/objective-c-xcode.yml b/.github/workflows/objective-c-xcode.yml
new file mode 100644
index 000000000..3af35a421
--- /dev/null
+++ b/.github/workflows/objective-c-xcode.yml
@@ -0,0 +1,30 @@
+name: Xcode - Build and Analyze
+
+on:
+ push:
+ branches: [ "high" ]
+ pull_request:
+ branches: [ "high" ]
+
+jobs:
+ build:
+ name: Build and analyse default scheme using xcodebuild command
+ runs-on: macos-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Set Default Scheme
+ run: |
+ scheme_list=$(xcodebuild -list -json | tr -d "\n")
+ default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]")
+ echo $default | cat >default
+ echo Using default scheme: $default
+ - name: Build
+ env:
+ scheme: ${{ 'default' }}
+ run: |
+ if [ $scheme = default ]; then scheme=$(cat default); fi
+ if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
+ file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
+ xcodebuild clean build analyze -scheme "$scheme" -"$filetype_parameter" "$file_to_build" | xcpretty && exit ${PIPESTATUS[0]}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index d5cc46903..b57d8bd6e 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -35,14 +35,13 @@ jobs:
- name: Build APKs
run: |
echo "Generating ApiDemos (Java) APKs"
- cd $GITHUB_WORKSPACE/ApiDemos/java
+ cd $GITHUB_WORKSPACE/ApiDemos/project/
./gradlew assemble
- cp ./app/build/outputs/apk/gms/debug/app-gms-debug.apk $GITHUB_WORKSPACE/ApiDemos-java-gms-debug.apk
+ cp ./java-app/build/outputs/apk/debug/java-app-debug.apk $GITHUB_WORKSPACE/ApiDemos-java-debug.apk
echo "Generating Kotlin (Kotlin) APKs"
- cd $GITHUB_WORKSPACE/ApiDemos/kotlin
./gradlew assemble
- cp ./app/build/outputs/apk/gms/debug/app-gms-debug.apk $GITHUB_WORKSPACE/ApiDemos-kotlin-gms-debug.apk
+ cp ./kotlin-app/build/outputs/apk/debug/kotlin-app-debug.apk $GITHUB_WORKSPACE/ApiDemos-kotlin-debug.apk
- uses: actions/setup-node@v2
with:
diff --git a/.releaserc b/.releaserc
index 990a90c4c..e0b93f731 100644
--- a/.releaserc
+++ b/.releaserc
@@ -6,19 +6,17 @@ plugins:
- - "@google/semantic-release-replace-plugin"
- replacements:
- files:
- - "./ApiDemos/java/app/build.gradle.kts"
- - "./ApiDemos/kotlin/app/build.gradle.kts"
+ - "./ApiDemos/project/java-app/build.gradle.kts"
+ - "./ApiDemos/project/kotlin-app/build.gradle.kts"
from: "versionName = \".*\""
to: "versionName = \"${nextRelease.version}\""
- - "@semantic-release/git"
- assets:
- - "./ApiDemos/java/app/build.gradle.kts"
- - "./ApiDemos/kotlin/app/build.gradle.kts"
+ - "./ApiDemos/project/java-app/build.gradle.kts"
+ - "./ApiDemos/project/kotlin-app/build.gradle.kts"
- - "@semantic-release/github"
- assets:
- - "./ApiDemos-java-gms-debug.apk"
- - "./ApiDemos-java-v3-debug.apk"
- - "./ApiDemos-kotlin-gms-debug.apk"
- - "./ApiDemos-kotlin-v3-debug.apk"
+ - "./ApiDemos-java-debug.apk"
+ - "./ApiDemos-kotlin-debug.apk"
options:
debug: true
diff --git a/ApiDemos/java/app/src/main/java/com/example/mapdemo/DemoDetailsList.java b/ApiDemos/java/app/src/main/java/com/example/mapdemo/DemoDetailsList.java
deleted file mode 100755
index d35f75283..000000000
--- a/ApiDemos/java/app/src/main/java/com/example/mapdemo/DemoDetailsList.java
+++ /dev/null
@@ -1,156 +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.example.mapdemo;
-
-/**
- * A list of all the demos we have available.
- */
-public final class DemoDetailsList {
-
- /**
- * This class should not be instantiated.
- */
- private DemoDetailsList() {
- }
-
- public static final DemoDetails[] DEMOS = {
- new DemoDetails(R.string.advanced_markers_demo_label,
- R.string.advanced_markers_demo_details,
- AdvancedMarkersDemoActivity.class),
- new DemoDetails(R.string.basic_map_demo_label,
- R.string.basic_map_demo_description,
- BasicMapDemoActivity.class),
- new DemoDetails(
- R.string.background_color_customization_demo_label,
- R.string.background_color_customization_demo_description,
- BackgroundColorCustomizationDemoActivity.class),
- new DemoDetails(
- R.string.background_color_customization_programmatic_demo_label,
- R.string.background_color_customization_programmatic_demo_description,
- BackgroundColorCustomizationProgrammaticDemoActivity.class),
- new DemoDetails(R.string.camera_demo_label,
- R.string.camera_demo_description,
- CameraDemoActivity.class),
- new DemoDetails(R.string.camera_clamping_demo_label,
- R.string.camera_clamping_demo_description,
- CameraClampingDemoActivity.class),
- new DemoDetails(R.string.cloud_styling_label,
- R.string.cloud_styling_description,
- CloudBasedMapStylingDemoActivity.class),
- new DemoDetails(R.string.circle_demo_label,
- R.string.circle_demo_description,
- CircleDemoActivity.class),
- new DemoDetails(R.string.events_demo_label,
- R.string.events_demo_description,
- EventsDemoActivity.class),
- new DemoDetails(R.string.ground_overlay_demo_label,
- R.string.ground_overlay_demo_description,
- GroundOverlayDemoActivity.class),
- new DemoDetails(R.string.indoor_demo_label,
- R.string.indoor_demo_description,
- IndoorDemoActivity.class),
- new DemoDetails(R.string.layers_demo_label,
- R.string.layers_demo_description,
- LayersDemoActivity.class),
- new DemoDetails(R.string.lite_demo_label,
- R.string.lite_demo_description,
- LiteDemoActivity.class),
- new DemoDetails(R.string.lite_list_demo_label,
- R.string.lite_list_demo_description,
- LiteListDemoActivity.class),
- new DemoDetails(R.string.location_source_demo_label,
- R.string.location_source_demo_description,
- LocationSourceDemoActivity.class),
- new DemoDetails(R.string.map_in_pager_demo_label,
- R.string.map_in_pager_demo_description,
- MapInPagerDemoActivity.class),
- new DemoDetails(R.string.map_color_scheme_demo_label,
- R.string.map_color_scheme_demo_description,
- MapColorSchemeActivity.class),
- new DemoDetails(R.string.marker_demo_label,
- R.string.marker_demo_description,
- MarkerDemoActivity.class),
- new DemoDetails(R.string.marker_close_info_window_on_retap_demo_label,
- R.string.marker_close_info_window_on_retap_demo_description,
- MarkerCloseInfoWindowOnRetapDemoActivity.class),
- new DemoDetails(R.string.multi_map_demo_label,
- R.string.multi_map_demo_description,
- MultiMapDemoActivity.class),
- new DemoDetails(R.string.my_location_demo_label,
- R.string.my_location_demo_description,
- MyLocationDemoActivity.class),
- new DemoDetails(R.string.options_demo_label,
- R.string.options_demo_description,
- OptionsDemoActivity.class),
- new DemoDetails(R.string.polygon_demo_label,
- R.string.polygon_demo_description,
- PolygonDemoActivity.class),
- new DemoDetails(R.string.polyline_demo_label,
- R.string.polyline_demo_description,
- PolylineDemoActivity.class),
- new DemoDetails(R.string.programmatic_demo_label,
- R.string.programmatic_demo_description,
- ProgrammaticDemoActivity.class),
- new DemoDetails(R.string.raw_map_view_demo_label,
- R.string.raw_map_view_demo_description,
- RawMapViewDemoActivity.class),
- new DemoDetails(R.string.retain_map_demo_label,
- R.string.retain_map_demo_description,
- RetainMapDemoActivity.class),
- new DemoDetails(R.string.save_state_demo_label,
- R.string.save_state_demo_description,
- SaveStateDemoActivity.class),
- new DemoDetails(R.string.snapshot_demo_label,
- R.string.snapshot_demo_description,
- SnapshotDemoActivity.class),
- new DemoDetails(R.string.split_street_view_panorama_and_map_demo_label,
- R.string.split_street_view_panorama_and_map_demo_description,
- SplitStreetViewPanoramaAndMapDemoActivity.class),
- new DemoDetails(R.string.street_view_panorama_basic_demo_label,
- R.string.street_view_panorama_basic_demo_description,
- StreetViewPanoramaBasicDemoActivity.class),
- new DemoDetails(R.string.street_view_panorama_events_demo_label,
- R.string.street_view_panorama_events_demo_description,
- StreetViewPanoramaEventsDemoActivity.class),
- new DemoDetails(R.string.street_view_panorama_navigation_demo_label,
- R.string.street_view_panorama_navigation_demo_description,
- StreetViewPanoramaNavigationDemoActivity.class),
- new DemoDetails(R.string.street_view_panorama_options_demo_label,
- R.string.street_view_panorama_options_demo_description,
- StreetViewPanoramaOptionsDemoActivity.class),
- new DemoDetails(R.string.street_view_panorama_view_demo_label,
- R.string.street_view_panorama_view_demo_description,
- StreetViewPanoramaViewDemoActivity.class),
- new DemoDetails(R.string.styled_map_demo_label,
- R.string.styled_map_demo_description,
- StyledMapDemoActivity.class),
- new DemoDetails(R.string.tags_demo_label,
- R.string.tags_demo_description,
- TagsDemoActivity.class),
- new DemoDetails(R.string.tile_coordinate_demo_label,
- R.string.tile_coordinate_demo_description,
- TileCoordinateDemoActivity.class),
- new DemoDetails(R.string.tile_overlay_demo_label,
- R.string.tile_overlay_demo_description,
- TileOverlayDemoActivity.class),
- new DemoDetails(R.string.ui_settings_demo_label,
- R.string.ui_settings_demo_description,
- UiSettingsDemoActivity.class),
- new DemoDetails(R.string.visible_region_demo_label,
- R.string.visible_region_demo_description,
- VisibleRegionDemoActivity.class),
- };
-}
diff --git a/ApiDemos/java/app/src/main/res/layout/advanced_markers_demo.xml b/ApiDemos/java/app/src/main/res/layout/advanced_markers_demo.xml
deleted file mode 100644
index 1688013a7..000000000
--- a/ApiDemos/java/app/src/main/res/layout/advanced_markers_demo.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ApiDemos/java/app/src/main/res/layout/background_color_customization_demo.xml b/ApiDemos/java/app/src/main/res/layout/background_color_customization_demo.xml
deleted file mode 100644
index 82c0d70fc..000000000
--- a/ApiDemos/java/app/src/main/res/layout/background_color_customization_demo.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ApiDemos/java/app/src/main/res/layout/background_color_customization_programmatic_demo.xml b/ApiDemos/java/app/src/main/res/layout/background_color_customization_programmatic_demo.xml
deleted file mode 100644
index 172f7a79f..000000000
--- a/ApiDemos/java/app/src/main/res/layout/background_color_customization_programmatic_demo.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ApiDemos/java/app/src/main/res/layout/circle_demo.xml b/ApiDemos/java/app/src/main/res/layout/circle_demo.xml
deleted file mode 100755
index 947e7a7e2..000000000
--- a/ApiDemos/java/app/src/main/res/layout/circle_demo.xml
+++ /dev/null
@@ -1,109 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/main/res/layout/cloud_styling_basic_demo.xml b/ApiDemos/java/app/src/main/res/layout/cloud_styling_basic_demo.xml
deleted file mode 100644
index e02d5fc11..000000000
--- a/ApiDemos/java/app/src/main/res/layout/cloud_styling_basic_demo.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ApiDemos/java/app/src/main/res/layout/events_demo.xml b/ApiDemos/java/app/src/main/res/layout/events_demo.xml
deleted file mode 100644
index 48f3d6b58..000000000
--- a/ApiDemos/java/app/src/main/res/layout/events_demo.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/main/res/layout/ground_overlay_demo.xml b/ApiDemos/java/app/src/main/res/layout/ground_overlay_demo.xml
deleted file mode 100644
index 51aa15599..000000000
--- a/ApiDemos/java/app/src/main/res/layout/ground_overlay_demo.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/main/res/layout/lite_demo.xml b/ApiDemos/java/app/src/main/res/layout/lite_demo.xml
deleted file mode 100755
index e2327ca7e..000000000
--- a/ApiDemos/java/app/src/main/res/layout/lite_demo.xml
+++ /dev/null
@@ -1,78 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/main/res/layout/main.xml b/ApiDemos/java/app/src/main/res/layout/main.xml
deleted file mode 100644
index 86097e7b3..000000000
--- a/ApiDemos/java/app/src/main/res/layout/main.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/main/res/layout/map_color_scheme_demo.xml b/ApiDemos/java/app/src/main/res/layout/map_color_scheme_demo.xml
deleted file mode 100644
index 5dcf1caa2..000000000
--- a/ApiDemos/java/app/src/main/res/layout/map_color_scheme_demo.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ApiDemos/java/app/src/main/res/layout/multimap_demo.xml b/ApiDemos/java/app/src/main/res/layout/multimap_demo.xml
deleted file mode 100644
index 7d873ade1..000000000
--- a/ApiDemos/java/app/src/main/res/layout/multimap_demo.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/main/res/layout/my_location_demo.xml b/ApiDemos/java/app/src/main/res/layout/my_location_demo.xml
deleted file mode 100755
index 99dbdabed..000000000
--- a/ApiDemos/java/app/src/main/res/layout/my_location_demo.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/main/res/layout/options_demo.xml b/ApiDemos/java/app/src/main/res/layout/options_demo.xml
deleted file mode 100644
index 143f96679..000000000
--- a/ApiDemos/java/app/src/main/res/layout/options_demo.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
diff --git a/ApiDemos/java/app/src/main/res/layout/polygon_demo.xml b/ApiDemos/java/app/src/main/res/layout/polygon_demo.xml
deleted file mode 100644
index ef27946de..000000000
--- a/ApiDemos/java/app/src/main/res/layout/polygon_demo.xml
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/main/res/layout/polyline_demo.xml b/ApiDemos/java/app/src/main/res/layout/polyline_demo.xml
deleted file mode 100644
index 967a0bc0c..000000000
--- a/ApiDemos/java/app/src/main/res/layout/polyline_demo.xml
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/main/res/layout/split_street_view_panorama_and_map_demo.xml b/ApiDemos/java/app/src/main/res/layout/split_street_view_panorama_and_map_demo.xml
deleted file mode 100755
index 64aa1d5fb..000000000
--- a/ApiDemos/java/app/src/main/res/layout/split_street_view_panorama_and_map_demo.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/main/res/layout/street_view_panorama_events_demo.xml b/ApiDemos/java/app/src/main/res/layout/street_view_panorama_events_demo.xml
deleted file mode 100755
index 5071f44c1..000000000
--- a/ApiDemos/java/app/src/main/res/layout/street_view_panorama_events_demo.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/v3/java/com/example/mapdemo/DemoDetailsList.java b/ApiDemos/java/app/src/v3/java/com/example/mapdemo/DemoDetailsList.java
deleted file mode 100755
index a9d2aae76..000000000
--- a/ApiDemos/java/app/src/v3/java/com/example/mapdemo/DemoDetailsList.java
+++ /dev/null
@@ -1,150 +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.example.mapdemo;
-
-import com.example.mapdemo.polyline.PolylineDemoActivity;
-
-/**
- * A list of all the demos we have available.
- */
-public final class DemoDetailsList {
-
- /**
- * This class should not be instantiated.
- */
- private DemoDetailsList() {
- }
-
- public static final DemoDetails[] DEMOS = {
- new DemoDetails(R.string.basic_map_demo_label,
- R.string.basic_map_demo_description,
- BasicMapDemoActivity.class),
- new DemoDetails(R.string.camera_demo_label,
- R.string.camera_demo_description,
- CameraDemoActivity.class),
- new DemoDetails(R.string.camera_clamping_demo_label,
- R.string.camera_clamping_demo_description,
- CameraClampingDemoActivity.class),
- new DemoDetails(R.string.circle_demo_label,
- R.string.circle_demo_description,
- CircleDemoActivity.class),
- new DemoDetails(R.string.cloud_styling_label,
- R.string.cloud_styling_description,
- CloudBasedMapStylingDemoActivity.class),
- new DemoDetails(R.string.events_demo_label,
- R.string.events_demo_description,
- EventsDemoActivity.class),
- new DemoDetails(R.string.ground_overlay_demo_label,
- R.string.ground_overlay_demo_description,
- GroundOverlayDemoActivity.class),
- new DemoDetails(R.string.indoor_demo_label,
- R.string.indoor_demo_description,
- IndoorDemoActivity.class),
- new DemoDetails(R.string.layers_demo_label,
- R.string.layers_demo_description,
- LayersDemoActivity.class),
- new DemoDetails(R.string.lite_demo_label,
- R.string.lite_demo_description,
- LiteDemoActivity.class),
- new DemoDetails(R.string.lite_list_demo_label,
- R.string.lite_list_demo_description,
- LiteListDemoActivity.class),
- new DemoDetails(R.string.location_source_demo_label,
- R.string.location_source_demo_description,
- LocationSourceDemoActivity.class),
- new DemoDetails(R.string.map_in_pager_demo_label,
- R.string.map_in_pager_demo_description,
- MapInPagerDemoActivity.class),
- new DemoDetails(R.string.marker_demo_label,
- R.string.marker_demo_description,
- MarkerDemoActivity.class),
- new DemoDetails(R.string.marker_collision_label,
- R.string.marker_collision_description,
- MarkerCollisionDemoActivity.class),
- new DemoDetails(R.string.marker_close_info_window_on_retap_demo_label,
- R.string.marker_close_info_window_on_retap_demo_description,
- MarkerCloseInfoWindowOnRetapDemoActivity.class),
- new DemoDetails(R.string.polyline_demo_label,
- R.string.polyline_demo_description,
- PolylineDemoActivity.class),
- new DemoDetails(R.string.multi_map_demo_label,
- R.string.multi_map_demo_description,
- MultiMapDemoActivity.class),
- new DemoDetails(R.string.my_location_demo_label,
- R.string.my_location_demo_description,
- MyLocationDemoActivity.class),
- new DemoDetails(R.string.options_demo_label,
- R.string.options_demo_description,
- OptionsDemoActivity.class),
- new DemoDetails(R.string.polygon_demo_label,
- R.string.polygon_demo_description,
- PolygonDemoActivity.class),
- new DemoDetails(R.string.polyline_demo_label,
- R.string.polyline_demo_description,
- PolylineDemoActivity.class),
- new DemoDetails(R.string.programmatic_demo_label,
- R.string.programmatic_demo_description,
- ProgrammaticDemoActivity.class),
- new DemoDetails(R.string.raw_map_view_demo_label,
- R.string.raw_map_view_demo_description,
- RawMapViewDemoActivity.class),
- new DemoDetails(R.string.retain_map_demo_label,
- R.string.retain_map_demo_description,
- RetainMapDemoActivity.class),
- new DemoDetails(R.string.save_state_demo_label,
- R.string.save_state_demo_description,
- SaveStateDemoActivity.class),
- new DemoDetails(R.string.snapshot_demo_label,
- R.string.snapshot_demo_description,
- SnapshotDemoActivity.class),
- new DemoDetails(R.string.split_street_view_panorama_and_map_demo_label,
- R.string.split_street_view_panorama_and_map_demo_description,
- SplitStreetViewPanoramaAndMapDemoActivity.class),
- new DemoDetails(R.string.street_view_panorama_basic_demo_label,
- R.string.street_view_panorama_basic_demo_description,
- StreetViewPanoramaBasicDemoActivity.class),
- new DemoDetails(R.string.street_view_panorama_events_demo_label,
- R.string.street_view_panorama_events_demo_description,
- StreetViewPanoramaEventsDemoActivity.class),
- new DemoDetails(R.string.street_view_panorama_navigation_demo_label,
- R.string.street_view_panorama_navigation_demo_description,
- StreetViewPanoramaNavigationDemoActivity.class),
- new DemoDetails(R.string.street_view_panorama_options_demo_label,
- R.string.street_view_panorama_options_demo_description,
- StreetViewPanoramaOptionsDemoActivity.class),
- new DemoDetails(R.string.street_view_panorama_view_demo_label,
- R.string.street_view_panorama_view_demo_description,
- StreetViewPanoramaViewDemoActivity.class),
- new DemoDetails(R.string.styled_map_demo_label,
- R.string.styled_map_demo_description,
- StyledMapDemoActivity.class),
- new DemoDetails(R.string.tags_demo_label,
- R.string.tags_demo_description,
- TagsDemoActivity.class),
- new DemoDetails(R.string.tile_coordinate_demo_label,
- R.string.tile_coordinate_demo_description,
- TileCoordinateDemoActivity.class),
- new DemoDetails(R.string.tile_overlay_demo_label,
- R.string.tile_overlay_demo_description,
- TileOverlayDemoActivity.class),
- new DemoDetails(R.string.ui_settings_demo_label,
- R.string.ui_settings_demo_description,
- UiSettingsDemoActivity.class),
- new DemoDetails(R.string.visible_region_demo_label,
- R.string.visible_region_demo_description,
- VisibleRegionDemoActivity.class),
- };
-}
diff --git a/ApiDemos/java/app/src/v3/res/layout/camera_clamping_demo.xml b/ApiDemos/java/app/src/v3/res/layout/camera_clamping_demo.xml
deleted file mode 100644
index d5a54872e..000000000
--- a/ApiDemos/java/app/src/v3/res/layout/camera_clamping_demo.xml
+++ /dev/null
@@ -1,99 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/v3/res/layout/marker_close_info_window_on_retap_demo.xml b/ApiDemos/java/app/src/v3/res/layout/marker_close_info_window_on_retap_demo.xml
deleted file mode 100644
index 87016084e..000000000
--- a/ApiDemos/java/app/src/v3/res/layout/marker_close_info_window_on_retap_demo.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/v3/res/layout/marker_collision_demo.xml b/ApiDemos/java/app/src/v3/res/layout/marker_collision_demo.xml
deleted file mode 100644
index d5e2a7ec7..000000000
--- a/ApiDemos/java/app/src/v3/res/layout/marker_collision_demo.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
diff --git a/ApiDemos/java/app/src/v3/res/layout/polyline_other_options_control_fragment.xml b/ApiDemos/java/app/src/v3/res/layout/polyline_other_options_control_fragment.xml
deleted file mode 100644
index 9bcaa5b4d..000000000
--- a/ApiDemos/java/app/src/v3/res/layout/polyline_other_options_control_fragment.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ApiDemos/java/app/src/v3/res/layout/polyline_width_control_fragment.xml b/ApiDemos/java/app/src/v3/res/layout/polyline_width_control_fragment.xml
deleted file mode 100644
index 4854255c3..000000000
--- a/ApiDemos/java/app/src/v3/res/layout/polyline_width_control_fragment.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/v3/res/layout/snapshot_demo.xml b/ApiDemos/java/app/src/v3/res/layout/snapshot_demo.xml
deleted file mode 100755
index 77a9b9b0e..000000000
--- a/ApiDemos/java/app/src/v3/res/layout/snapshot_demo.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ApiDemos/java/app/src/v3/res/layout/styled_map_demo.xml b/ApiDemos/java/app/src/v3/res/layout/styled_map_demo.xml
deleted file mode 100644
index f6abef393..000000000
--- a/ApiDemos/java/app/src/v3/res/layout/styled_map_demo.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
diff --git a/ApiDemos/java/app/src/v3/res/layout/tags_demo.xml b/ApiDemos/java/app/src/v3/res/layout/tags_demo.xml
deleted file mode 100644
index cc7e5fbfe..000000000
--- a/ApiDemos/java/app/src/v3/res/layout/tags_demo.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ApiDemos/java/app/src/v3/res/layout/text_fragment.xml b/ApiDemos/java/app/src/v3/res/layout/text_fragment.xml
deleted file mode 100755
index 5fcc62a2d..000000000
--- a/ApiDemos/java/app/src/v3/res/layout/text_fragment.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
diff --git a/ApiDemos/java/build.gradle.kts b/ApiDemos/java/build.gradle.kts
deleted file mode 100644
index bef357605..000000000
--- a/ApiDemos/java/build.gradle.kts
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2024 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.
- */
-
-// Top-level build file where you can add configuration options common to all sub-projects/modules.
-
-buildscript {
- repositories {
- google()
- mavenCentral()
- }
- dependencies {
- classpath("com.android.tools.build:gradle:8.5.1")
- classpath("com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.1")
-
- // NOTE: Do not place your application dependencies here; they belong
- // in the individual module build.gradle files
- }
-}
-
-allprojects {
- repositories {
- mavenLocal()
- google()
- mavenCentral()
- }
-}
-
-tasks.register("clean") {
- delete(rootProject.layout.projectDirectory)
-}
diff --git a/ApiDemos/java/gradle/libs.versions.toml b/ApiDemos/java/gradle/libs.versions.toml
deleted file mode 100644
index c2bd8411a..000000000
--- a/ApiDemos/java/gradle/libs.versions.toml
+++ /dev/null
@@ -1,20 +0,0 @@
-[versions]
-appcompat = "1.7.0"
-recyclerview = "1.3.2"
-volley = "1.2.1"
-kotlinBom = "2.0.0"
-playServicesMaps = "19.0.0"
-junit = "4.13.2"
-androidxJunit = "1.2.1"
-espresso = "3.6.1"
-
-
-[libraries]
-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
-recyclerview = { group = "androidx.recyclerview", name = "recyclerview", version.ref = "recyclerview" }
-volley = { group = "com.android.volley", name = "volley", version.ref = "volley" }
-kotlinBom = { group = "org.jetbrains.kotlin", name = "kotlin-bom", version.ref = "kotlinBom" }
-playServicesMaps = { group = "com.google.android.gms", name = "play-services-maps", version.ref = "playServicesMaps" }
-junit = { group = "junit", name = "junit", version.ref = "junit" }
-androidxJunit = { group = "androidx.test.ext", name = "junit", version.ref = "androidxJunit" }
-espressoCore = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espresso" }
\ No newline at end of file
diff --git a/ApiDemos/java/gradle/wrapper/gradle-wrapper.jar b/ApiDemos/java/gradle/wrapper/gradle-wrapper.jar
deleted file mode 100644
index 8c0fb64a8..000000000
Binary files a/ApiDemos/java/gradle/wrapper/gradle-wrapper.jar and /dev/null differ
diff --git a/ApiDemos/java/gradlew b/ApiDemos/java/gradlew
deleted file mode 100755
index 91a7e269e..000000000
--- a/ApiDemos/java/gradlew
+++ /dev/null
@@ -1,164 +0,0 @@
-#!/usr/bin/env bash
-
-##############################################################################
-##
-## Gradle start up script for UN*X
-##
-##############################################################################
-
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS=""
-
-APP_NAME="Gradle"
-APP_BASE_NAME=`basename "$0"`
-
-# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD="maximum"
-
-warn ( ) {
- echo "$*"
-}
-
-die ( ) {
- echo
- echo "$*"
- echo
- exit 1
-}
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false
-msys=false
-darwin=false
-case "`uname`" in
- CYGWIN* )
- cygwin=true
- ;;
- Darwin* )
- darwin=true
- ;;
- MINGW* )
- msys=true
- ;;
-esac
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched.
-if $cygwin ; then
- [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
-fi
-
-# Attempt to set APP_HOME
-# Resolve links: $0 may be a link
-PRG="$0"
-# Need this for relative symlinks.
-while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG=`dirname "$PRG"`"/$link"
- fi
-done
-SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/" >&-
-APP_HOME="`pwd -P`"
-cd "$SAVED" >&-
-
-CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
-
-# Determine the Java command to use to start the JVM.
-if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- if [ ! -x "$JAVACMD" ] ; then
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
- fi
-else
- JAVACMD="java"
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
-fi
-
-# Increase the maximum file descriptors if we can.
-if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
- MAX_FD_LIMIT=`ulimit -H -n`
- if [ $? -eq 0 ] ; then
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
- MAX_FD="$MAX_FD_LIMIT"
- fi
- ulimit -n $MAX_FD
- if [ $? -ne 0 ] ; then
- warn "Could not set maximum file descriptor limit: $MAX_FD"
- fi
- else
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
- fi
-fi
-
-# For Darwin, add options to specify how the application appears in the dock
-if $darwin; then
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
-fi
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin ; then
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
-
- # We build the pattern for arguments to be converted via cygpath
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
- SEP=""
- for dir in $ROOTDIRSRAW ; do
- ROOTDIRS="$ROOTDIRS$SEP$dir"
- SEP="|"
- done
- OURCYGPATTERN="(^($ROOTDIRS))"
- # Add a user-defined pattern to the cygpath arguments
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
- fi
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
- i=0
- for arg in "$@" ; do
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
-
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
- else
- eval `echo args$i`="\"$arg\""
- fi
- i=$((i+1))
- done
- case $i in
- (0) set -- ;;
- (1) set -- "$args0" ;;
- (2) set -- "$args0" "$args1" ;;
- (3) set -- "$args0" "$args1" "$args2" ;;
- (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
- (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
- (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
- (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
- (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
- (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
- esac
-fi
-
-# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
-function splitJvmOpts() {
- JVM_OPTS=("$@")
-}
-eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
-JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
-
-exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/ApiDemos/java/gradlew.bat b/ApiDemos/java/gradlew.bat
deleted file mode 100644
index aec99730b..000000000
--- a/ApiDemos/java/gradlew.bat
+++ /dev/null
@@ -1,90 +0,0 @@
-@if "%DEBUG%" == "" @echo off
-@rem ##########################################################################
-@rem
-@rem Gradle startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS=
-
-set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto init
-
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto init
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:init
-@rem Get command-line arguments, handling Windowz variants
-
-if not "%OS%" == "Windows_NT" goto win9xME_args
-if "%@eval[2+2]" == "4" goto 4NT_args
-
-:win9xME_args
-@rem Slurp the command line arguments.
-set CMD_LINE_ARGS=
-set _SKIP=2
-
-:win9xME_args_slurp
-if "x%~1" == "x" goto execute
-
-set CMD_LINE_ARGS=%*
-goto execute
-
-:4NT_args
-@rem Get arguments from the 4NT Shell from JP Software
-set CMD_LINE_ARGS=%$
-
-:execute
-@rem Setup the command line
-
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
-
-@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
-
-:end
-@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
-
-:fail
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
-exit /b 1
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
diff --git a/ApiDemos/java/local.defaults.properties b/ApiDemos/java/local.defaults.properties
deleted file mode 100644
index 995b0da5d..000000000
--- a/ApiDemos/java/local.defaults.properties
+++ /dev/null
@@ -1 +0,0 @@
-MAPS_API_KEY=DEFAULT_API_KEY
diff --git a/ApiDemos/kotlin/.gitignore b/ApiDemos/kotlin/.gitignore
deleted file mode 100644
index 1f87191a4..000000000
--- a/ApiDemos/kotlin/.gitignore
+++ /dev/null
@@ -1,10 +0,0 @@
-*.iml
-.gradle
-/local.properties
-/.idea/workspace.xml
-/.idea/libraries
-.DS_Store
-/build
-/captures
-.externalNativeBuild
-secure.properties
diff --git a/ApiDemos/kotlin/README.md b/ApiDemos/kotlin/README.md
deleted file mode 100644
index 08945ab58..000000000
--- a/ApiDemos/kotlin/README.md
+++ /dev/null
@@ -1,58 +0,0 @@
-Google Maps Android API Demos
-===================================
-
-These are demos for the [Maps SDK for Android](https://developers.google.com/maps/documentation/android-api/)
-and [Maps SDK for Android V3 BETA](https://developers.google.com/maps/documentation/android-sdk/v3-client-migration) libraries
-in Kotlin.
-
-They demonstrate most of the features available in the API.
-
-The Maps SDK for Android samples can be found under the `main` gradle product
-flavor, while the Maps SDK V3 BETA samples can be found under the `v3` gradle
-product flavor. The active product flavor can be modified through
-Android Studio’s “Build Variants” toolbar options.
-
-Pre-requisites
---------------
-
-- Android API level 21+
-- Latest Android Build Tools
-- Google Repository
-- Google Play Services
-
-Getting Started
----------------
-
-This sample uses the Gradle build system.
-
-First download the samples by cloning this repository or downloading an archived
-snapshot. (See the options at the top of the page.)
-
-In Android Studio, use "Open an existing Android Studio project". Next select
-the `ApiDemos/kotlin/` directory that you downloaded from this repository.
-If prompted for a gradle configuration accept the default settings.
-
-Alternatively use the `gradlew build` command to build the project directly.
-
-This demo app requires that you add your own Google Maps API key. See [Get an API key](https://developers.google.com/maps/documentation/android-sdk/get-api-key) for more instructions.
-
-Support
--------
-
-- Stack Overflow: https://stackoverflow.com/questions/tagged/android+google-maps
-
-If you have discovered an issue with the Google Maps Android API v2, please see
-the resources here: https://developers.google.com/maps/documentation/android-api/support
-
-If you've found an error in these samples, please file an issue:
-https://github.com/googlemaps/android-samples/issues
-
-Patches are encouraged, and may be submitted according to the instructions in
-CONTRIBUTING.md.
-
-
-
-License
--------
-
-Please refer to the [LICENSE](https://github.com/googlemaps/android-samples/blob/main/LICENSE) at the root of this repo.
diff --git a/ApiDemos/kotlin/app/src/main/java/com/example/kotlindemos/DemoDetailsList.kt b/ApiDemos/kotlin/app/src/main/java/com/example/kotlindemos/DemoDetailsList.kt
deleted file mode 100644
index 4ac4b939c..000000000
--- a/ApiDemos/kotlin/app/src/main/java/com/example/kotlindemos/DemoDetailsList.kt
+++ /dev/null
@@ -1,227 +0,0 @@
-/*
- * Copyright 2023 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
- *
- * https://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.example.kotlindemos
-
-import com.example.kotlindemos.polyline.PolylineDemoActivity
-
-/**
- * A list of all the demos we have available.
- */
-class DemoDetailsList {
- companion object {
- val DEMOS = listOf(
- DemoDetails(
- R.string.advanced_markers_demo_label,
- R.string.advanced_markers_demo_details,
- AdvancedMarkersDemoActivity::class.java
- ),
- DemoDetails(
- R.string.basic_demo_label,
- R.string.basic_demo_details,
- BasicMapDemoActivity::class.java
- ),
- DemoDetails(
- R.string.background_color_customization_demo_label,
- R.string.background_color_customization_demo_description,
- BackgroundColorCustomizationDemoActivity::class.java
- ),
- DemoDetails(
- R.string.background_color_customization_programmatic_demo_label,
- R.string.background_color_customization_programmatic_demo_description,
- BackgroundColorCustomizationProgrammaticDemoActivity::class.java
- ),
- DemoDetails(
- R.string.camera_demo_label,
- R.string.camera_demo_description,
- CameraDemoActivity::class.java
- ),
- DemoDetails(
- R.string.camera_clamping_demo_label,
- R.string.camera_clamping_demo_description,
- CameraClampingDemoActivity::class.java
- ),
- DemoDetails(
- R.string.circle_demo_label, R.string.circle_demo_details,
- CircleDemoActivity::class.java
- ),
- DemoDetails(
- R.string.cloud_styling_label, R.string.cloud_styling_description,
- CloudBasedMapStylingDemoActivity::class.java
- ),
- DemoDetails(
- R.string.close_info_window_demo_label,
- R.string.close_info_window_demo_details,
- MarkerCloseInfoWindowOnRetapDemoActivity::class.java
- ),
- DemoDetails(
- R.string.events_demo_label,
- R.string.events_demo_details,
- EventsDemoActivity::class.java
- ),
- DemoDetails(
- R.string.ground_overlay_demo_label,
- R.string.ground_overlay_demo_details,
- GroundOverlayDemoActivity::class.java
- ),
- DemoDetails(
- R.string.indoor_demo_label,
- R.string.indoor_demo_details,
- IndoorDemoActivity::class.java
- ),
- DemoDetails(
- R.string.layers_demo_label,
- R.string.layers_demo_description,
- LayersDemoActivity::class.java
- ),
- DemoDetails(
- R.string.lite_demo_label,
- R.string.lite_demo_details,
- LiteDemoActivity::class.java
- ),
- DemoDetails(
- R.string.location_source_demo_label,
- R.string.location_source_demo_description,
- LocationSourceDemoActivity::class.java
- ),
- DemoDetails(
- R.string.lite_list_demo_label,
- R.string.lite_list_demo_details,
- LiteListDemoActivity::class.java
- ),
- DemoDetails(
- R.string.map_in_pager_demo_label,
- R.string.map_in_pager_demo_description,
- MapInPagerDemoActivity::class.java
- ),
- DemoDetails(
- R.string.map_color_scheme_demo_label,
- R.string.map_color_scheme_demo_description,
- MapColorSchemeActivity::class.java
- ),
- DemoDetails(
- R.string.markers_demo_label,
- R.string.markers_demo_description,
- MarkerDemoActivity::class.java
- ),
- DemoDetails(
- R.string.multi_map_demo_label,
- R.string.multi_map_demo_description,
- MultiMapDemoActivity::class.java
- ),
- DemoDetails(
- R.string.my_location_demo_label,
- R.string.my_location_demo_details,
- MyLocationDemoActivity::class.java
- ),
- DemoDetails(
- R.string.options_demo_label,
- R.string.options_demo_description,
- OptionsDemoActivity::class.java
- ),
- DemoDetails(
- R.string.polygon_demo_label,
- R.string.polygon_demo_details,
- PolygonDemoActivity::class.java
- ),
- DemoDetails(
- R.string.polyline_demo_label,
- R.string.polyline_demo_description,
- PolylineDemoActivity::class.java
- ),
- DemoDetails(
- R.string.programmatic_demo_label,
- R.string.programmatic_demo_description,
- ProgrammaticDemoActivity::class.java
- ),
- DemoDetails(
- R.string.raw_map_view_demo_label,
- R.string.raw_map_view_demo_description,
- RawMapViewDemoActivity::class.java
- ),
- DemoDetails(
- R.string.save_state_demo_label,
- R.string.save_state_demo_description,
- SaveStateDemoActivity::class.java
- ),
- DemoDetails(
- R.string.snapshot_demo_label,
- R.string.snapshot_demo_description,
- SnapshotDemoActivity::class.java
- ),
- DemoDetails(
- R.string.street_view_panorama_basic_demo_label,
- R.string.street_view_panorama_basic_demo_details,
- StreetViewPanoramaBasicDemoActivity::class.java
- ),
- DemoDetails(
- R.string.street_view_panorama_navigation_demo_label,
- R.string.street_view_panorama_navigation_demo_details,
- StreetViewPanoramaNavigationDemoActivity::class.java
- ),
- DemoDetails(
- R.string.split_street_view_panorama_and_map_demo_label,
- R.string.split_street_view_panorama_and_map_demo_details,
- SplitStreetViewPanoramaAndMapDemoActivity::class.java
- ),
- DemoDetails(
- R.string.street_view_panorama_options_demo_label,
- R.string.street_view_panorama_options_demo_details,
- StreetViewPanoramaOptionsDemoActivity::class.java
- ),
- DemoDetails(
- R.string.street_view_panorama_events_demo_label,
- R.string.street_view_panorama_events_demo_details,
- StreetViewPanoramaEventsDemoActivity::class.java
- ),
- DemoDetails(
- R.string.street_view_panorama_view_demo_label,
- R.string.street_view_panorama_view_demo_details,
- StreetViewPanoramaViewDemoActivity::class.java
- ),
- DemoDetails(
- R.string.styled_map_demo_label,
- R.string.styled_map_demo_description,
- StyledMapDemoActivity::class.java
- ),
- DemoDetails(
- R.string.tags_demo_label,
- R.string.tags_demo_details,
- TagsDemoActivity::class.java
- ),
- DemoDetails(
- R.string.tile_coordinate_demo_label,
- R.string.tile_coordinate_demo_description,
- TileCoordinateDemoActivity::class.java
- ),
- DemoDetails(
- R.string.tile_overlay_demo_label,
- R.string.tile_overlay_demo_description,
- TileOverlayDemoActivity::class.java
- ),
- DemoDetails(
- R.string.ui_settings_demo_label,
- R.string.ui_settings_demo_details,
- UiSettingsDemoActivity::class.java
- ),
- DemoDetails(
- R.string.region_demo_label,
- R.string.region_demo_details,
- VisibleRegionDemoActivity::class.java
- )
- )
- }
-}
\ No newline at end of file
diff --git a/ApiDemos/kotlin/app/src/main/java/com/example/kotlindemos/ProgrammaticDemoActivity.kt b/ApiDemos/kotlin/app/src/main/java/com/example/kotlindemos/ProgrammaticDemoActivity.kt
deleted file mode 100644
index b19cf94c5..000000000
--- a/ApiDemos/kotlin/app/src/main/java/com/example/kotlindemos/ProgrammaticDemoActivity.kt
+++ /dev/null
@@ -1,55 +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.example.kotlindemos
-
-import android.R
-import android.os.Bundle
-import androidx.appcompat.app.AppCompatActivity
-import androidx.lifecycle.lifecycleScope
-import com.google.android.gms.maps.SupportMapFragment
-import com.google.android.gms.maps.model.LatLng
-import com.google.maps.android.ktx.addMarker
-import com.google.maps.android.ktx.awaitMap
-
-/**
- * Demonstrates how to instantiate a SupportMapFragment programmatically and add a marker to it.
- */
-class ProgrammaticDemoActivity : AppCompatActivity() {
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
-
- // It isn't possible to set a fragment's id programmatically so we set a tag instead and
- // search for it using that.
- val mapFragment =
- supportFragmentManager.findFragmentByTag(MAP_FRAGMENT_TAG) as SupportMapFragment? ?:
- SupportMapFragment.newInstance().also {
- // Then we add it using a FragmentTransaction.
- val fragmentTransaction = supportFragmentManager.beginTransaction()
- fragmentTransaction.add(R.id.content, it, MAP_FRAGMENT_TAG)
- fragmentTransaction.commit()
- }
-
- lifecycleScope.launchWhenCreated {
- val map = mapFragment.awaitMap()
- map.addMarker {
- position(LatLng(0.0, 0.0))
- title("Marker")
- }
- }
- }
-
- companion object {
- private const val MAP_FRAGMENT_TAG = "map"
- }
-}
\ No newline at end of file
diff --git a/ApiDemos/kotlin/app/src/main/java/com/example/kotlindemos/SnapshotDemoActivity.kt b/ApiDemos/kotlin/app/src/main/java/com/example/kotlindemos/SnapshotDemoActivity.kt
deleted file mode 100755
index f3bc0b06c..000000000
--- a/ApiDemos/kotlin/app/src/main/java/com/example/kotlindemos/SnapshotDemoActivity.kt
+++ /dev/null
@@ -1,78 +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.example.kotlindemos
-
-import android.os.Bundle
-import android.view.View
-import android.widget.Button
-import android.widget.CheckBox
-import android.widget.ImageView
-import androidx.appcompat.app.AppCompatActivity
-import androidx.lifecycle.lifecycleScope
-import com.google.android.gms.maps.GoogleMap
-import com.google.android.gms.maps.GoogleMap.SnapshotReadyCallback
-import com.google.android.gms.maps.SupportMapFragment
-import com.google.maps.android.ktx.awaitMap
-
-/**
- * This shows how to take a snapshot of the map.
- */
-class SnapshotDemoActivity : AppCompatActivity() {
- /**
- * Note that this may be null if the Google Play services APK is not available.
- */
- private lateinit var map: GoogleMap
- private lateinit var waitForMapLoadCheckBox: CheckBox
- private lateinit var snapshotHolder: ImageView
-
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- setContentView(R.layout.snapshot_demo)
- waitForMapLoadCheckBox = findViewById(R.id.wait_for_map_load)
- snapshotHolder = findViewById(R.id.snapshot_holder)
- val mapFragment = supportFragmentManager.findFragmentById(R.id.map) as SupportMapFragment
- lifecycleScope.launchWhenCreated {
- map = mapFragment.awaitMap()
- attachButtonListeners()
- }
- }
-
- private fun attachButtonListeners() {
- findViewById