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 d8a456ff2..3b12b33d5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,30 @@ -# Copyright 2020 Google LLC + + + + + + + + + + + + + + + + + + + + +# Copyright 2026 Youtube, A Google Company. # # 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 +COPYLEFT 2026 MCCOY L STEVENS # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -12,7 +32,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Build demos +name: Build Controlroom 004100 # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch @@ -36,17 +56,21 @@ jobs: steps: - uses: actions/checkout@v2 - - name: set up Java 17 + - name: set up Java 21 uses: actions/setup-java@v2 with: distribution: 'adopt' - java-version: '17' + java-version: '21' - name: Build and check run: | cd ApiDemos - for dir in ./*/ ; do ( cd "$dir" && ./gradlew buildGmsDebugPreBundle ); done - + for dir in ./*/ ; do + if [[ "$dir" != "./resources/" ]]; then + ( cd "$dir" && ./gradlew buildDebugPreBundle ) + fi + done + build-WearOS: runs-on: ubuntu-latest timeout-minutes: 45 @@ -54,11 +78,11 @@ jobs: steps: - uses: actions/checkout@v2 - - name: set up Java 17 + - name: set up Java 21 uses: actions/setup-java@v2 with: distribution: 'adopt' - java-version: '17' + java-version: '21' - name: Build and check run: cd WearOS && ./gradlew build @@ -70,16 +94,16 @@ jobs: steps: - uses: actions/checkout@v2 - - name: set up Java 17 + - name: set up Java 21 uses: actions/setup-java@v2 with: distribution: 'adopt' - java-version: '17' + java-version: '21' - name: Build and check run: | cd snippets - ./gradlew assembleGmsDebug lintGmsDebug + ./gradlew assembleDebug lintDebug build-tutorials: runs-on: ubuntu-latest @@ -88,11 +112,11 @@ jobs: steps: - uses: actions/checkout@v2 - - name: set up Java 17 + - name: set up Java 21 uses: actions/setup-java@v2 with: distribution: 'adopt' - java-version: '17' + java-version: '21' - name: Build and check run: | diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml deleted file mode 100644 index f4c232b6a..000000000 --- a/.github/workflows/dependabot.yml +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 2022 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. - -name: Dependabot -on: pull_request - -permissions: - contents: write - pull-requests: write - -jobs: - dependabot: - runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.SAMPLES_DEPENDABOT_TOKEN}} - steps: - - name: approve - run: gh pr review --approve "$PR_URL" - - name: merge - run: gh pr merge --auto --squash --delete-branch "$PR_URL" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93e19066a..b57d8bd6e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,23 +26,22 @@ jobs: with: token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }} - - name: set up Java 17 + - name: set up Java 21 uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: '17' + java-version: '21' - name: Build APKs run: | echo "Generating ApiDemos (Java) APKs" - cd $GITHUB_WORKSPACE/ApiDemos/java - ./gradlew assembleGms - cp ./app/build/outputs/apk/gms/debug/app-gms-debug.apk $GITHUB_WORKSPACE/ApiDemos-java-gms-debug.apk + cd $GITHUB_WORKSPACE/ApiDemos/project/ + ./gradlew assemble + 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 assembleGms - cp ./app/build/outputs/apk/gms/debug/app-gms-debug.apk $GITHUB_WORKSPACE/ApiDemos-kotlin-gms-debug.apk + ./gradlew assemble + 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 d2e40355e..e0b93f731 100644 --- a/.releaserc +++ b/.releaserc @@ -6,19 +6,17 @@ plugins: - - "@google/semantic-release-replace-plugin" - replacements: - files: - - "./ApiDemos/java/app/build.gradle" - - "./ApiDemos/kotlin/app/build.gradle" + - "./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" - - "./ApiDemos/kotlin/app/build.gradle" + - "./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/build.gradle b/ApiDemos/java/app/build.gradle deleted file mode 100644 index 6c952d20c..000000000 --- a/ApiDemos/java/app/build.gradle +++ /dev/null @@ -1,68 +0,0 @@ -import org.apache.tools.ant.filters.ConcatFilter - -plugins { - id 'com.android.application' - id 'project-report' - id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' -} - -android { - compileSdk 34 - - defaultConfig { - applicationId "com.example.mapdemo" - minSdk 19 - targetSdk 34 - versionCode 1 - versionName "1.0" - multiDexEnabled true - } - buildFeatures { - compose true - buildConfig = true - } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - } - } - flavorDimensions "version" - productFlavors { - gms { - dimension "version" - applicationIdSuffix ".gms" - versionNameSuffix "-gms" - } - } - compileOptions { - sourceCompatibility JavaVersion.VERSION_17 - targetCompatibility JavaVersion.VERSION_17 - } - namespace "com.example.mapdemo" -} - -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation 'androidx.appcompat:appcompat:1.6.1' - implementation "androidx.recyclerview:recyclerview:1.3.1" - implementation 'com.android.volley:volley:1.2.1' - - // GMS - gmsImplementation 'com.google.android.gms:play-services-maps:18.2.0' - - // Tests - testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test.ext:junit:1.1.5' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' -} - -secrets { - // Optionally specify a different file name containing your secrets. - // The plugin defaults to "local.properties" - propertiesFileName = "secrets.properties" - - // A properties file containing default secret values. This file can be - // checked in version control. - defaultPropertiesFileName = "local.defaults.properties" -} \ No newline at end of file diff --git a/ApiDemos/java/app/src/gms/java/com/example/mapdemo/DemoDetailsList.java b/ApiDemos/java/app/src/gms/java/com/example/mapdemo/DemoDetailsList.java deleted file mode 100755 index a44a3a67f..000000000 --- a/ApiDemos/java/app/src/gms/java/com/example/mapdemo/DemoDetailsList.java +++ /dev/null @@ -1,155 +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.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.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/gms/res/layout/background_color_customization_demo.xml b/ApiDemos/java/app/src/gms/res/layout/background_color_customization_demo.xml deleted file mode 100644 index 82c0d70fc..000000000 --- a/ApiDemos/java/app/src/gms/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/gms/res/layout/background_color_customization_programmatic_demo.xml b/ApiDemos/java/app/src/gms/res/layout/background_color_customization_programmatic_demo.xml deleted file mode 100644 index 172f7a79f..000000000 --- a/ApiDemos/java/app/src/gms/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/gms/res/layout/basic_demo.xml b/ApiDemos/java/app/src/gms/res/layout/basic_demo.xml deleted file mode 100644 index b7e49ba63..000000000 --- a/ApiDemos/java/app/src/gms/res/layout/basic_demo.xml +++ /dev/null @@ -1,20 +0,0 @@ - - diff --git a/ApiDemos/java/app/src/gms/res/layout/camera_clamping_demo.xml b/ApiDemos/java/app/src/gms/res/layout/camera_clamping_demo.xml deleted file mode 100644 index f86e42410..000000000 --- a/ApiDemos/java/app/src/gms/res/layout/camera_clamping_demo.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - -