Skip to content

Commit c154878

Browse files
Merge pull request #199 from googlemaps/release/0.4.0
feat: release/1.0.0-beta
2 parents 9b8d010 + b91cc72 commit c154878

File tree

155 files changed

+20071
-28099
lines changed

Some content is hidden

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

155 files changed

+20071
-28099
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
9+
indent_style = space
10+
indent_size = 2
11+
12+
end_of_line = lf
13+
charset = utf-8
14+
trim_trailing_whitespace = true
15+
insert_final_newline = true

.eslintrc.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.pbxproj -text
2+
# specific for windows script files
3+
*.bat text eol=crlf

.github/actions/setup/action.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright 2024 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+
# https://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: Setup
16+
description: Setup Node.js and install dependencies
17+
18+
runs:
19+
using: composite
20+
steps:
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version-file: .nvmrc
25+
26+
- name: Cache dependencies
27+
id: yarn-cache
28+
uses: actions/cache@v3
29+
with:
30+
path: |
31+
**/node_modules
32+
.yarn/install-state.gz
33+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
34+
restore-keys: |
35+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
36+
${{ runner.os }}-yarn-
37+
38+
- name: Install dependencies
39+
if: steps.yarn-cache.outputs.cache-hit != 'true'
40+
run: yarn install --immutable
41+
shell: bash

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2024 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+
# https://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+
115
version: 2
216
updates:
317
- package-ecosystem: "npm"

.github/workflows/ci.yml

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
# Copyright 2024 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+
# https://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: CI
16+
on:
17+
push:
18+
branches:
19+
- main
20+
pull_request:
21+
branches:
22+
- main
23+
24+
jobs:
25+
lint:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v3
30+
31+
- name: Setup
32+
uses: ./.github/actions/setup
33+
34+
- name: Lint files
35+
run: yarn lint
36+
37+
- name: Typecheck files
38+
run: yarn test:types
39+
40+
test:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout
44+
uses: actions/checkout@v3
45+
46+
- name: Setup
47+
uses: ./.github/actions/setup
48+
49+
- name: Run unit tests
50+
run: yarn test --maxWorkers=2 --coverage
51+
52+
build-library:
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Checkout
56+
uses: actions/checkout@v3
57+
58+
- name: Setup
59+
uses: ./.github/actions/setup
60+
61+
- name: Build package
62+
run: yarn prepare
63+
64+
build-android:
65+
runs-on: ubuntu-latest
66+
env:
67+
TURBO_CACHE_DIR: .turbo/android
68+
steps:
69+
- name: Checkout
70+
uses: actions/checkout@v3
71+
72+
- name: Setup
73+
uses: ./.github/actions/setup
74+
75+
- name: Cache turborepo for Android
76+
uses: actions/cache@v3
77+
with:
78+
path: ${{ env.TURBO_CACHE_DIR }}
79+
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
80+
restore-keys: |
81+
${{ runner.os }}-turborepo-android-
82+
83+
- name: Check turborepo cache for Android
84+
run: |
85+
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status")
86+
87+
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
88+
echo "turbo_cache_hit=1" >> $GITHUB_ENV
89+
fi
90+
91+
- name: Install JDK
92+
if: env.turbo_cache_hit != 1
93+
uses: actions/setup-java@v3
94+
with:
95+
distribution: 'zulu'
96+
java-version: '17'
97+
98+
- name: Finalize Android SDK
99+
if: env.turbo_cache_hit != 1
100+
run: |
101+
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
102+
103+
- name: Cache Gradle
104+
if: env.turbo_cache_hit != 1
105+
uses: actions/cache@v3
106+
with:
107+
path: |
108+
~/.gradle/wrapper
109+
~/.gradle/caches
110+
key: ${{ runner.os }}-gradle-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }}
111+
restore-keys: |
112+
${{ runner.os }}-gradle-
113+
114+
- name: Build example for Android
115+
env:
116+
JAVA_OPTS: '-XX:MaxHeapSize=6g'
117+
run: |
118+
echo "MAPS_API_KEY=FAKE_API_KEY" > example/android/local.properties
119+
yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
120+
121+
build-ios:
122+
runs-on: macos-14
123+
env:
124+
TURBO_CACHE_DIR: .turbo/ios
125+
steps:
126+
- name: Checkout
127+
uses: actions/checkout@v3
128+
129+
- name: Setup
130+
uses: ./.github/actions/setup
131+
132+
- name: Cache turborepo for iOS
133+
uses: actions/cache@v3
134+
with:
135+
path: ${{ env.TURBO_CACHE_DIR }}
136+
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
137+
restore-keys: |
138+
${{ runner.os }}-turborepo-ios-
139+
140+
- name: Check turborepo cache for iOS
141+
run: |
142+
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
143+
144+
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
145+
echo "turbo_cache_hit=1" >> $GITHUB_ENV
146+
fi
147+
148+
- name: Cache cocoapods
149+
if: env.turbo_cache_hit != 1
150+
id: cocoapods-cache
151+
uses: actions/cache@v3
152+
with:
153+
path: |
154+
**/ios/Pods
155+
key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
156+
restore-keys: |
157+
${{ runner.os }}-cocoapods-
158+
159+
- name: Install cocoapods
160+
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
161+
run: |
162+
cd example/ios
163+
pod install
164+
env:
165+
NO_FLIPPER: 1
166+
167+
- name: Build example for iOS
168+
run: |
169+
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"

.github/workflows/licence-check.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Copyright 2023 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+
# https://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: Check license headers
16+
on:
17+
pull_request:
18+
push:
19+
branches:
20+
- main
21+
22+
jobs:
23+
check-files-license-headers:
24+
runs-on: ubuntu-latest
25+
timeout-minutes: 30
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753
29+
with:
30+
go-version: '^1.13.1'
31+
- name: Install addlicense
32+
run: go install github.com/google/addlicense@latest
33+
- name: Check license header
34+
run: ./scripts/addlicense.sh --check

0 commit comments

Comments
 (0)