Skip to content

Commit d240a87

Browse files
committed
chore: initial commit
0 parents  commit d240a87

File tree

119 files changed

+25774
-0
lines changed

Some content is hidden

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

119 files changed

+25774
-0
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

.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
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: 🐛 Bug report
2+
description: Report a reproducible bug or regression in this library.
3+
labels: [bug]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
# Bug report
9+
10+
👋 Hi!
11+
12+
**Please fill the following carefully before opening a new issue ❗**
13+
*(Your issue may be closed if it doesn't provide the required pieces of information)*
14+
- type: checkboxes
15+
attributes:
16+
label: Before submitting a new issue
17+
description: Please perform simple checks first.
18+
options:
19+
- label: I tested using the latest version of the library, as the bug might be already fixed.
20+
required: true
21+
- label: I tested using a [supported version](https://github.com/reactwg/react-native-releases/blob/main/docs/support.md) of react native.
22+
required: true
23+
- label: I checked for possible duplicate issues, with possible answers.
24+
required: true
25+
- type: textarea
26+
id: summary
27+
attributes:
28+
label: Bug summary
29+
description: |
30+
Provide a clear and concise description of what the bug is.
31+
If needed, you can also provide other samples: error messages / stack traces, screenshots, gifs, etc.
32+
validations:
33+
required: true
34+
- type: input
35+
id: library-version
36+
attributes:
37+
label: Library version
38+
description: What version of the library are you using?
39+
placeholder: 'x.x.x'
40+
validations:
41+
required: true
42+
- type: textarea
43+
id: react-native-info
44+
attributes:
45+
label: Environment info
46+
description: Run `react-native info` in your terminal and paste the results here.
47+
render: shell
48+
validations:
49+
required: true
50+
- type: textarea
51+
id: steps-to-reproduce
52+
attributes:
53+
label: Steps to reproduce
54+
description: |
55+
You must provide a clear list of steps and code to reproduce the problem.
56+
value: |
57+
1. …
58+
2. …
59+
validations:
60+
required: true
61+
- type: input
62+
id: reproducible-example
63+
attributes:
64+
label: Reproducible example repository
65+
description: Please provide a link to a repository on GitHub with a reproducible example.
66+
validations:
67+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Feature Request 💡
4+
url: https://github.com/pinpong/react-native-google-maps-plus/discussions/new?category=ideas
5+
about: If you have a feature request, please create a new discussion on GitHub.
6+
- name: Discussions on GitHub 💬
7+
url: https://github.com/pinpong/react-native-google-maps-plus/discussions
8+
about: If this library works as promised but you need help, please ask questions there.

.github/actions/setup/action.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Setup
2+
description: Setup Node.js and install dependencies
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Setup Node.js
8+
uses: actions/[email protected]
9+
with:
10+
node-version-file: .nvmrc
11+
12+
- name: Restore dependencies
13+
id: yarn-cache
14+
uses: actions/cache/[email protected]
15+
with:
16+
path: |
17+
**/node_modules
18+
.yarn/install-state.gz
19+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
20+
restore-keys: |
21+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
22+
${{ runner.os }}-yarn-
23+
24+
- name: Install dependencies
25+
if: steps.yarn-cache.outputs.cache-hit != 'true'
26+
run: yarn install --immutable
27+
shell: bash
28+
29+
- name: Cache dependencies
30+
if: steps.yarn-cache.outputs.cache-hit != 'true'
31+
uses: actions/cache/[email protected]
32+
with:
33+
path: |
34+
**/node_modules
35+
.yarn/install-state.gz
36+
key: ${{ steps.yarn-cache.outputs.cache-primary-key }}

.github/workflows/pull_request.yml

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
name: pull_request.yml
2+
on:
3+
pull_request:
4+
branches: [dev, main]
5+
6+
jobs:
7+
lint:
8+
runs-on: macos-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/[email protected]
12+
13+
- name: Setup
14+
uses: ./.github/actions/setup
15+
16+
- name: Install ktlint & swiftlint
17+
run: |
18+
brew install ktlint
19+
brew install swiftlint
20+
21+
- name: Lint files
22+
run: yarn lint
23+
24+
- name: Typecheck files
25+
run: yarn typecheck
26+
27+
test:
28+
runs-on: macos-latest
29+
needs: [lint]
30+
steps:
31+
- name: Checkout
32+
uses: actions/[email protected]
33+
34+
- name: Setup
35+
uses: ./.github/actions/setup
36+
37+
- name: Run unit tests
38+
run: yarn test --maxWorkers=2 --coverage
39+
40+
build-android:
41+
runs-on: macos-latest
42+
needs: [lint, test]
43+
steps:
44+
- name: Checkout
45+
uses: actions/[email protected]
46+
47+
- name: Setup
48+
uses: ./.github/actions/setup
49+
50+
- name: Generate nitrogen code
51+
run: yarn nitrogen
52+
53+
- name: Install JDK
54+
uses: actions/[email protected]
55+
with:
56+
distribution: 'zulu'
57+
java-version: '17'
58+
59+
- name: Finalize Android SDK
60+
run: |
61+
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
62+
63+
- name: Cache Gradle
64+
uses: actions/[email protected]
65+
with:
66+
path: |
67+
~/.gradle/wrapper
68+
~/.gradle/caches
69+
key: ${{ runner.os }}-gradle-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }}
70+
restore-keys: |
71+
${{ runner.os }}-gradle-
72+
73+
- name: Create secrets.properties
74+
run: |
75+
echo MAPS_API_KEY="API_KEY" >> example/android/secrets.properties
76+
77+
- name: Build example for Android
78+
env:
79+
JAVA_OPTS: '-XX:MaxHeapSize=6g'
80+
run: yarn build:android
81+
build-ios:
82+
runs-on: macos-latest
83+
needs: [lint, test]
84+
env:
85+
XCODE_VERSION: latest-stable
86+
steps:
87+
- name: Checkout
88+
uses: actions/[email protected]
89+
90+
- name: Setup
91+
uses: ./.github/actions/setup
92+
93+
- name: Generate nitrogen code
94+
run: yarn nitrogen
95+
96+
- name: Use appropriate Xcode version
97+
uses: maxim-lobanov/[email protected]
98+
with:
99+
xcode-version: ${{ env.XCODE_VERSION }}
100+
101+
- name: Cache Pods
102+
id: pods-cache
103+
uses: actions/[email protected]
104+
with:
105+
path: example/ios/Pods
106+
key: ${{ runner.os }}-pods-${{ hashFiles('example/ios/Podfile.lock')}}
107+
restore-keys: |
108+
${{ runner.os }}-pods-
109+
110+
- name: Install cocoapods
111+
if: steps.pods-cache.outputs.cache-hit != 'true'
112+
working-directory: example
113+
run: yarn ios:pods
114+
115+
- name: Create Secrets.xcconfig
116+
run: echo MAPS_API_KEY="API_KEY" >> example/ios/Secrets.xcconfig
117+
118+
- name: Build example for iOS
119+
run: yarn build:ios

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: release.yml
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
build-library:
9+
runs-on: macos-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/[email protected]
13+
14+
- name: Setup
15+
uses: ./.github/actions/setup
16+
17+
- name: Build package
18+
run: yarn build
19+
20+
release:
21+
runs-on: macos-latest
22+
needs: [build-library]
23+
permissions:
24+
contents: write
25+
issues: write
26+
pull-requests: write
27+
steps:
28+
- name: Checkout
29+
uses: actions/[email protected]
30+
with:
31+
ref: main
32+
fetch-depth: 0
33+
34+
- name: Setup
35+
uses: ./.github/actions/setup
36+
37+
- name: Build tarball
38+
run: |
39+
mkdir -p release
40+
npm pack --pack-destination release
41+
42+
- name: Run semantic-release
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
run: yarn release

.gitignore

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# XDE
6+
.expo/
7+
8+
# VSCode
9+
.vscode/
10+
jsconfig.json
11+
12+
# Xcode
13+
#
14+
build/
15+
*.pbxuser
16+
!default.pbxuser
17+
*.mode1v3
18+
!default.mode1v3
19+
*.mode2v3
20+
!default.mode2v3
21+
*.perspectivev3
22+
!default.perspectivev3
23+
xcuserdata
24+
*.xccheckout
25+
*.moved-aside
26+
DerivedData
27+
*.hmap
28+
*.ipa
29+
*.xcuserstate
30+
project.xcworkspace
31+
**/.xcode.env.local
32+
33+
# Android/IJ
34+
#
35+
.classpath
36+
.cxx
37+
.gradle
38+
.idea
39+
.project
40+
.settings
41+
local.properties
42+
android.iml
43+
44+
# Cocoapods
45+
#
46+
example/ios/Pods
47+
48+
# Ruby
49+
example/vendor/
50+
51+
# node.js
52+
#
53+
node_modules/
54+
npm-debug.log
55+
yarn-debug.log
56+
yarn-error.log
57+
58+
# BUCK
59+
buck-out/
60+
\.buckd/
61+
android/app/libs
62+
android/keystores/debug.keystore
63+
64+
# Yarn
65+
.yarn/*
66+
!.yarn/patches
67+
!.yarn/plugins
68+
!.yarn/releases
69+
!.yarn/sdks
70+
!.yarn/versions
71+
72+
# Expo
73+
.expo/
74+
75+
# Turborepo
76+
.turbo/
77+
78+
# generated by bob
79+
lib/
80+
81+
# React Native Codegen
82+
ios/generated
83+
android/generated
84+
85+
# React Native Nitro Modules
86+
nitrogen/
87+
88+
# APi Keys
89+
example/ios/Secrets.xcconfig
90+
example/android/secrets.properties
91+
92+
tsconfig.tsbuildinfo

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20.19.0

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHANGELOG.md

0 commit comments

Comments
 (0)