Skip to content

Commit 54ecc22

Browse files
docs: add deprecation note for Maps SDK V3 BETA samples
Adds a note to the root README and ApiDemos/project/README to inform developers that the Maps SDK for Android V3 BETA is deprecated and its code samples will be removed in the future. Co-authored-by: antonsurya <4560253+antonsurya@users.noreply.github.com>
1 parent d08ad9f commit 54ecc22

986 files changed

Lines changed: 42749 additions & 40804 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414

1515
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
1616

17-
.github/ @googlemaps/admin
17+
.github/ @googlemaps/googlemaps-admin

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
version: 2
1616
updates:
1717
- package-ecosystem: gradle
18-
directory: "/./ApiDemos/java"
18+
directory: "/./ApiDemos/project/java-app"
1919
schedule:
2020
interval: "weekly"
2121
open-pull-requests-limit: 10
2222
commit-message:
2323
prefix: chore(deps)
2424
- package-ecosystem: gradle
25-
directory: "/./ApiDemos/kotlin"
25+
directory: "/./ApiDemos/project/kotlin-app"
2626
schedule:
2727
interval: "weekly"
2828
open-pull-requests-limit: 10

.github/header-checker-lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ sourceFileExtensions:
2727
- 'ts'
2828
- 'js'
2929
- 'java'
30-
- 'html'
3130
- 'txt'
3231
- 'kt'
3332
- 'kts'

.github/workflows/build.yml

Lines changed: 68 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020 Google LLC
1+
# Copyright 2026 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -23,8 +23,6 @@ on:
2323
branches: [ '*' ]
2424
repository_dispatch:
2525
types: [ build ]
26-
schedule:
27-
- cron: '0 0 * * 1'
2826
workflow_dispatch:
2927

3028
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
@@ -34,86 +32,126 @@ jobs:
3432
timeout-minutes: 45
3533

3634
steps:
37-
- uses: actions/checkout@v2
35+
- uses: actions/checkout@v4
3836

3937
- name: set up Java 21
40-
uses: actions/setup-java@v2
38+
uses: actions/setup-java@v4
4139
with:
4240
distribution: 'adopt'
4341
java-version: '21'
4442

43+
- name: Setup Gradle
44+
uses: gradle/actions/setup-gradle@v5
45+
4546
- name: Build and check
4647
run: |
47-
cd ApiDemos
48-
for dir in ./*/ ; do ( cd "$dir" && ./gradlew buildDebugPreBundle ); done
48+
./gradlew :ApiDemos:java-app:assembleDebug
49+
./gradlew :ApiDemos:kotlin-app:assembleDebug
50+
./gradlew :ApiDemos:common-ui:assembleDebug
51+
4952
5053
build-WearOS:
5154
runs-on: ubuntu-latest
5255
timeout-minutes: 45
5356

5457
steps:
55-
- uses: actions/checkout@v2
58+
- uses: actions/checkout@v4
5659

5760
- name: set up Java 21
58-
uses: actions/setup-java@v2
61+
uses: actions/setup-java@v4
5962
with:
6063
distribution: 'adopt'
6164
java-version: '21'
6265

66+
- name: Setup Gradle
67+
uses: gradle/actions/setup-gradle@v5
68+
6369
- name: Build and check
64-
run: cd WearOS && ./gradlew build
70+
run: ./gradlew :WearOS:Wearable:assembleDebug
71+
72+
build-FireMarkers:
73+
runs-on: ubuntu-latest
74+
timeout-minutes: 45
75+
76+
steps:
77+
- uses: actions/checkout@v4
78+
79+
- name: set up Java 21
80+
uses: actions/setup-java@v4
81+
with:
82+
distribution: 'adopt'
83+
java-version: '21'
84+
85+
- name: Setup Gradle
86+
uses: gradle/actions/setup-gradle@v5
87+
88+
- name: Build and check
89+
run: ./gradlew :FireMarkers:app:assembleDebug
6590

6691
build-Snippets:
6792
runs-on: ubuntu-latest
6893
timeout-minutes: 45
6994

7095
steps:
71-
- uses: actions/checkout@v2
96+
- uses: actions/checkout@v4
7297

7398
- name: set up Java 21
74-
uses: actions/setup-java@v2
99+
uses: actions/setup-java@v4
75100
with:
76101
distribution: 'adopt'
77102
java-version: '21'
78103

104+
- name: Setup Gradle
105+
uses: gradle/actions/setup-gradle@v5
106+
79107
- name: Build and check
80108
run: |
81-
cd snippets
82-
./gradlew assembleDebug lintGmsDebug
109+
./gradlew :snippets:app:assembleDebug
110+
./gradlew :snippets:app-ktx:assembleDebug
111+
./gradlew :snippets:app-utils-ktx:assembleDebug
112+
./gradlew :snippets:app-compose:assembleDebug
113+
./gradlew :snippets:app-places-ktx:assembleDebug
114+
./gradlew :snippets:app-utils:assembleDebug
83115
84116
build-tutorials:
85117
runs-on: ubuntu-latest
86118
timeout-minutes: 45
87119

88120
steps:
89-
- uses: actions/checkout@v2
121+
- uses: actions/checkout@v4
90122

91123
- name: set up Java 21
92-
uses: actions/setup-java@v2
124+
uses: actions/setup-java@v4
93125
with:
94126
distribution: 'adopt'
95127
java-version: '21'
96128

129+
- name: Setup Gradle
130+
uses: gradle/actions/setup-gradle@v5
131+
97132
- name: Build and check
98133
run: |
99-
cd tutorials
100-
for dir in ./*/
101-
do
102-
cd "$dir"
103-
for tutorial in ./*/
104-
do
105-
cd "$tutorial" && ./gradlew buildDebug
106-
cd ..
107-
done
108-
cd ..
109-
done
110-
111-
test: # used as required status check
134+
./gradlew :tutorials:kotlin:Polygons:assembleDebug
135+
136+
test:
112137
runs-on: ubuntu-latest
138+
timeout-minutes: 60
113139
needs:
114140
- build-ApiDemos
115141
- build-WearOS
142+
- build-FireMarkers
116143
- build-Snippets
117144
- build-tutorials
118145
steps:
119-
- run: echo "Fail if all other steps are not successful"
146+
- uses: actions/checkout@v4
147+
- name: set up Java 21
148+
uses: actions/setup-java@v4
149+
with:
150+
distribution: 'adopt'
151+
java-version: '21'
152+
153+
- name: Run Unit Tests
154+
run: ./gradlew testDebugUnitTest
155+
156+
- name: Run Lint
157+
run: ./gradlew lintDebug

.github/workflows/generate-v3.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,30 @@ jobs:
2525
timeout-minutes: 45
2626

2727
steps:
28-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v4
2929

30-
- name: set up JDK 1.8
31-
uses: actions/setup-java@v1
30+
- name: set up JDK 17
31+
uses: actions/setup-java@v4
3232
with:
33-
java-version: 1.8
33+
distribution: 'adopt'
34+
java-version: 17
35+
36+
- name: Setup Gradle
37+
uses: gradle/actions/setup-gradle@v5
3438

3539
- name: Install NDK
3640
run: |
37-
sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570"
41+
sudo ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --install "ndk;20.0.5594570"
3842
3943
- name: Generate V3
4044
id: gradlew-generate-v3
4145
run: |
42-
cd ApiDemos/java
43-
./gradlew generateV3 generateV3Layout
44-
cd ../kotlin
45-
./gradlew generateV3 generateV3Layout
46-
echo "::set-output name=files-changed::$(git status -s | wc -l)"
46+
./gradlew :ApiDemos:java-app:generateV3 :ApiDemos:java-app:generateV3Layout
47+
./gradlew :ApiDemos:kotlin-app:generateV3 :ApiDemos:kotlin-app:generateV3Layout
48+
echo "files-changed=$(git status -s | wc -l)" >> $GITHUB_OUTPUT
4749
4850
- name: PR Changes
49-
uses: peter-evans/create-pull-request@v2
51+
uses: peter-evans/create-pull-request@v6
5052
if: steps.gradlew-generate-v3.outputs.files-changed > 0
5153
with:
5254
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
@@ -57,6 +59,7 @@ jobs:
5759
body: |
5860
Generating V3 code via `./gradlew generateV3 generateV3Layout`
5961
branch: googlemaps-bot/generate-v3
62+
6063
- name: Uninstall NDK
6164
run: |
62-
${ANDROID_HOME}/tools/bin/sdkmanager --uninstall 'ndk-bundle'
65+
${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall 'ndk;20.0.5594570'

.github/workflows/lint.yml

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Lint and Upload SARIF
16+
17+
on:
18+
pull_request:
19+
branches:
20+
- main
21+
22+
jobs:
23+
lint:
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
30+
- name: Set up JDK 17
31+
uses: actions/setup-java@v4
32+
with:
33+
distribution: 'adopt'
34+
java-version: '21'
35+
36+
- name: Set up Python
37+
uses: actions/setup-python@v5
38+
with:
39+
python-version: '3.x'
40+
41+
- name: Check documentation versions
42+
run: python3 scripts/update_docs_versions.py --check
43+
44+
- name: Setup Gradle
45+
uses: gradle/actions/setup-gradle@v5
46+
47+
- name: Run Android Lint
48+
run: |
49+
./gradlew :ApiDemos:kotlin-app:lintDebug
50+
./gradlew :ApiDemos:java-app:lintDebug
51+
./gradlew :ApiDemos:common-ui:lintDebug
52+
./gradlew :snippets:app:lintGmsDebug
53+
./gradlew :snippets:app-utils:lintDebug
54+
./gradlew :snippets:app-utils-ktx:lintDebug
55+
./gradlew :snippets:app-places-ktx:lintDebug
56+
./gradlew :snippets:app-ktx:lintDebug
57+
./gradlew :snippets:app-compose:lintDebug
58+
./gradlew :WearOS:Wearable:lintDebug
59+
./gradlew :FireMarkers:app:lintDebug
60+
61+
- name: Upload SARIF for ApiDemos:kotlin-app
62+
uses: github/codeql-action/upload-sarif@v3
63+
with:
64+
sarif_file: ApiDemos/project/kotlin-app/build/reports/lint-results-debug.sarif
65+
category: ApiDemos-kotlin-app
66+
67+
- name: Upload SARIF for ApiDemos:java-app
68+
uses: github/codeql-action/upload-sarif@v3
69+
with:
70+
sarif_file: ApiDemos/project/java-app/build/reports/lint-results-debug.sarif
71+
category: ApiDemos-java-app
72+
73+
- name: Upload SARIF for ApiDemos:common-ui
74+
uses: github/codeql-action/upload-sarif@v3
75+
with:
76+
sarif_file: ApiDemos/project/common-ui/build/reports/lint-results-debug.sarif
77+
category: ApiDemos-common-ui
78+
79+
- name: Upload SARIF for snippets:app
80+
uses: github/codeql-action/upload-sarif@v3
81+
with:
82+
sarif_file: snippets/app/build/reports/lint-results-debug.sarif
83+
category: snippets-app
84+
85+
- name: Upload SARIF for snippets:app-utils
86+
uses: github/codeql-action/upload-sarif@v3
87+
with:
88+
sarif_file: snippets/app-utils/build/reports/lint-results-debug.sarif
89+
category: snippets-app-utils
90+
91+
- name: Upload SARIF for snippets:app-utils-ktx
92+
uses: github/codeql-action/upload-sarif@v3
93+
with:
94+
sarif_file: snippets/app-utils-ktx/build/reports/lint-results-debug.sarif
95+
category: snippets-app-utils-ktx
96+
97+
- name: Upload SARIF for snippets:app-places-ktx
98+
uses: github/codeql-action/upload-sarif@v3
99+
with:
100+
sarif_file: snippets/app-places-ktx/build/reports/lint-results-debug.sarif
101+
category: snippets-app-places-ktx
102+
103+
- name: Upload SARIF for snippets:app-ktx
104+
uses: github/codeql-action/upload-sarif@v3
105+
with:
106+
sarif_file: snippets/app-ktx/build/reports/lint-results-debug.sarif
107+
category: snippets-app-ktx
108+
109+
- name: Upload SARIF for snippets:app-compose
110+
uses: github/codeql-action/upload-sarif@v3
111+
with:
112+
sarif_file: snippets/app-compose/build/reports/lint-results-debug.sarif
113+
category: snippets-app-compose
114+
115+
- name: Upload SARIF for WearOS:Wearable
116+
uses: github/codeql-action/upload-sarif@v3
117+
with:
118+
sarif_file: WearOS/Wearable/build/reports/lint-results-debug.sarif
119+
category: WearOS-Wearable
120+
121+
- name: Upload SARIF for FireMarkers:app
122+
uses: github/codeql-action/upload-sarif@v3
123+
with:
124+
sarif_file: FireMarkers/app/build/reports/lint-results-debug.sarif
125+
category: FireMarkers-app

0 commit comments

Comments
 (0)