Skip to content

Commit

Permalink
React native maps master (#2)
Browse files Browse the repository at this point in the history
* chore(deps): bump dev deps

* chore(android): rename android package

* chore(android): remove redundant class prefix

* chore(android): cleanup MapsPackage

* chore(android): bump compileSdkVersion and targetSdkVersion to 31

* feat(android): pin androidx.work version

Starting this november, all android apps (including updates) will require targetSdkVersion 31
and as a result compileSdkVersion 31, therefore not marking as a breaking change

* ci(pullRequest): stop linting pr titles

* chore(release): 1.4.0-beta.1 [skip ci]

# [1.4.0-beta.1](react-native-maps/react-native-maps@v1.3.2...v1.4.0-beta.1) (2022-10-10)

### Features

* **android:** pin androidx.work version ([73f21c7](react-native-maps@73f21c7))

* ci(pullRequest): stop linting pr title

* chore(deps): bump dev deps

* ci(pullRequest): check formatting

* style(prettier): fix formatting

* chore(husky): check formatting on pre-commit

* build(deps): bump @sideway/formula from 3.0.0 to 3.0.1 in /example

Bumps [@sideway/formula](https://github.com/sideway/formula) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/sideway/formula/releases)
- [Commits](hapijs/formula@v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: "@sideway/formula"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump dev-deps

* chore(release): 1.5.0-beta.1 [skip ci]

# [1.5.0-beta.1](react-native-maps/react-native-maps@v1.4.0...v1.5.0-beta.1) (2023-04-15)

### Features

* **android:** pin androidx.work version ([73f21c7](react-native-maps@73f21c7))

* chore(release): 1.5.0 [skip ci]

# [1.5.0](react-native-maps/react-native-maps@v1.4.0...v1.5.0) (2023-04-15)

### Features

* **android:** pin androidx.work version ([73f21c7](react-native-maps@73f21c7))

* chore(example): bump to react-native 0.70.8 (react-native-maps#4673)

* fix(types): missing PolygonPressEvent type export (react-native-maps#4410)

* chore(release): 1.5.1-beta.1 [skip ci]

## [1.5.1-beta.1](react-native-maps/react-native-maps@v1.5.0...v1.5.1-beta.1) (2023-04-16)

### Bug Fixes

* **types:** missing PolygonPressEvent type export ([react-native-maps#4410](react-native-maps#4410)) ([d3557a3](react-native-maps@d3557a3))

* fix(ios): crash on Apple Maps when loading large polylines (react-native-maps#4468)

Switch to using heap allocation to prevent corrupting the stack.

* chore(release): 1.5.1-beta.2 [skip ci]

## [1.5.1-beta.2](react-native-maps/react-native-maps@v1.5.1-beta.1...v1.5.1-beta.2) (2023-04-16)

### Bug Fixes

* **ios:** crash on Apple Maps when loading large polylines ([react-native-maps#4468](react-native-maps#4468)) ([e48e1af](react-native-maps@e48e1af))

* chore: stop updating version in package.json

Updating the version requires the Podfile.lock to update after each release.

* chore(example): use ruby bundler

* chore(example): update gemfile.lock

* test(detox): add basic setup

* chore(example): default to using patched Google-Maps-iOS-Utils

* ci: add build workflow for android and ios

* ci: rename build jobs

* ci: build ios using frameworks

* ci(stale): specify permissions

* fix(ios): support for use_frameworks! :linkage => :static

react-native-google-maps relies on headers from react-native-maps.
When using frameworks, headers from react-native-maps are no longer found, as the framework search
path for react-native-maps isn't added to the react-native-google-maps framework.

Likewise, removing the import prefix from Google-Maps-iOS-Utils resolves the imports
both with and without use_frameworks.

Note: this only brings support for `use_frameworks!` with `:linkage => :static.

* chore: rename example app

* chore(example): migrate to recommended api key setup

* ci: add placeholder google maps api key

* ci: fix xcworkspace name

* chore(release): 1.5.1-beta.3 [skip ci]

## [1.5.1-beta.3](react-native-maps/react-native-maps@v1.5.1-beta.2...v1.5.1-beta.3) (2023-04-18)

### Bug Fixes

* **ios:** support for use_frameworks! :linkage => :static ([b0c2d42](react-native-maps@b0c2d42))

* feat(ios): bump googlemaps to 7.4.0 (react-native-maps#4679)

According to the release notes, this version is functionally identical to v.7.3.0

* chore(release): 1.6.0-beta.1 [skip ci]

# [1.6.0-beta.1](react-native-maps/react-native-maps@v1.5.1-beta.3...v1.6.0-beta.1) (2023-04-18)

### Features

* **ios:** bump googlemaps to 7.4.0 ([react-native-maps#4679](react-native-maps#4679)) ([661cddb](react-native-maps@661cddb))

* fix(marker): remove spamming warning from MapMarker (react-native-maps#4644)

Resolves react-native-maps#4536

* chore(release): 1.6.0-beta.2 [skip ci]

# [1.6.0-beta.2](react-native-maps/react-native-maps@v1.6.0-beta.1...v1.6.0-beta.2) (2023-04-18)

### Bug Fixes

* **marker:** remove spamming warning from MapMarker ([react-native-maps#4644](react-native-maps#4644)) ([8825312](react-native-maps@8825312)), closes [react-native-maps#4536](react-native-maps#4536)

* ci: make reproducible exempt (react-native-maps#4681)

* feat: enable npm provenance (react-native-maps#4686)

* chore(release): 1.6.0-beta.3 [skip ci]

# [1.6.0-beta.3](react-native-maps/react-native-maps@v1.6.0-beta.2...v1.6.0-beta.3) (2023-04-20)

### Features

* enable npm provenance ([react-native-maps#4686](react-native-maps#4686)) ([3498c3f](react-native-maps@3498c3f))

* ci(push): add id-token write permissions (react-native-maps#4687)

Needed for npm provenance

* chore(release): 1.6.0-beta.3 [skip ci]

# [1.6.0-beta.3](react-native-maps/react-native-maps@v1.6.0-beta.2...v1.6.0-beta.3) (2023-04-20)

### Features

* enable npm provenance ([react-native-maps#4686](react-native-maps#4686)) ([3498c3f](react-native-maps@3498c3f))

* chore: update security policy (react-native-maps#4688)

* chore(release): 1.6.0 [skip ci]

# [1.6.0](react-native-maps/react-native-maps@v1.5.0...v1.6.0) (2023-04-20)

### Bug Fixes

* **ios:** crash on Apple Maps when loading large polylines ([react-native-maps#4468](react-native-maps#4468)) ([e48e1af](react-native-maps@e48e1af))
* **ios:** support for use_frameworks! :linkage => :static ([b0c2d42](react-native-maps@b0c2d42))
* **marker:** remove spamming warning from MapMarker ([react-native-maps#4644](react-native-maps#4644)) ([8825312](react-native-maps@8825312)), closes [react-native-maps#4536](react-native-maps#4536)
* **types:** missing PolygonPressEvent type export ([react-native-maps#4410](react-native-maps#4410)) ([d3557a3](react-native-maps@d3557a3))

### Features

* enable npm provenance ([react-native-maps#4686](react-native-maps#4686)) ([3498c3f](react-native-maps@3498c3f))
* **ios:** bump googlemaps to 7.4.0 ([react-native-maps#4679](react-native-maps#4679)) ([661cddb](react-native-maps@661cddb))

* build(android): bump gradle to 7.2

7.2 adds support for java 17 which is now the default version bundled with android studio

* docs(readme): onRegionChangeComplete called infinitely (react-native-maps#4574)

* fix(ios): followsUserLocation changes zoom level (react-native-maps#4696)

Resolves react-native-maps#4585

* chore(release): 1.6.1-beta.1 [skip ci]

## [1.6.1-beta.1](react-native-maps/react-native-maps@v1.6.0...v1.6.1-beta.1) (2023-04-21)

### Bug Fixes

* **ios:** followsUserLocation changes zoom level ([react-native-maps#4696](react-native-maps#4696)) ([3b9491e](react-native-maps@3b9491e)), closes [react-native-maps#4585](react-native-maps#4585)

* chore(react-native): bump to 0.70.9 (react-native-maps#4697)

* feat(android): bump android-maps-utils to 3.4.0 (react-native-maps#4699)

* chore(release): 1.7.0-beta.1 [skip ci]

# [1.7.0-beta.1](react-native-maps/react-native-maps@v1.6.1-beta.1...v1.7.0-beta.1) (2023-04-21)

### Features

* **android:** bump android-maps-utils to 3.4.0 ([react-native-maps#4699](react-native-maps#4699)) ([6b26c23](react-native-maps@6b26c23))

* chore(prettier): ignore ios/DerivedData (react-native-maps#4702)

* chore(release): 1.7.0 [skip ci]

# [1.7.0](react-native-maps/react-native-maps@v1.6.0...v1.7.0) (2023-04-23)

### Bug Fixes

* **ios:** followsUserLocation changes zoom level ([react-native-maps#4696](react-native-maps#4696)) ([3b9491e](react-native-maps@3b9491e)), closes [react-native-maps#4585](react-native-maps#4585)

### Features

* **android:** bump android-maps-utils to 3.4.0 ([react-native-maps#4699](react-native-maps#4699)) ([6b26c23](react-native-maps@6b26c23))

* fix(android): crash when removing feature belonging to collection (react-native-maps#4707)

Resolves react-native-maps#4706

* chore(release): 1.7.1 [skip ci]

## [1.7.1](react-native-maps/react-native-maps@v1.7.0...v1.7.1) (2023-04-23)

### Bug Fixes

* **android:** crash when removing feature belonging to collection ([react-native-maps#4707](react-native-maps#4707)) ([ae6fe90](react-native-maps@ae6fe90)), closes [react-native-maps#4706](react-native-maps#4706)

* chore: merge

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Simon-TechForm <73996878+Simon-TechForm@users.noreply.github.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maxim Artyukhov <artukhov@fastmail.com>
Co-authored-by: Andrew Scherkus <ascherkus@gmail.com>
Co-authored-by: sharvilak11 <sharvilakt@gmail.com>
Co-authored-by: Bilal Abdeen <Bilal-Abdeen@users.noreply.github.com>
  • Loading branch information
8 people committed Aug 31, 2023
1 parent 1478490 commit fe3e32f
Show file tree
Hide file tree
Showing 134 changed files with 6,608 additions and 3,304 deletions.
88 changes: 88 additions & 0 deletions .detoxrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
/** @type {Detox.DetoxConfig} */
module.exports = {
testRunner: {
args: {
$0: 'jest',
config: 'e2e/jest.config.js',
},
jest: {
setupTimeout: 120000,
},
},
apps: {
'ios.debug': {
type: 'ios.app',
binaryPath:
'example/ios/build/Build/Products/Debug-iphonesimulator/example.app',
build:
'xcodebuild -workspace example/ios/example.xcworkspace -scheme example -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build',
},
'ios.release': {
type: 'ios.app',
binaryPath:
'example/ios/build/Build/Products/Release-iphonesimulator/example.app',
build:
'xcodebuild -workspace example/ios/example.xcworkspace -scheme example -configuration Release -sdk iphonesimulator -derivedDataPath ios/build',
},
'android.debug': {
type: 'android.apk',
binaryPath: 'example/android/app/build/outputs/apk/debug/app-debug.apk',
build:
'cd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug',
reversePorts: [8081],
},
'android.release': {
type: 'android.apk',
binaryPath:
'example/android/app/build/outputs/apk/release/app-release.apk',
build:
'cd example/android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release',
},
},
devices: {
simulator: {
type: 'ios.simulator',
device: {
type: 'iPhone 14',
},
},
attached: {
type: 'android.attached',
device: {
adbName: '.*',
},
},
emulator: {
type: 'android.emulator',
device: {
avdName: 'Pixel_3a_API_30_x86',
},
},
},
configurations: {
'ios.sim.debug': {
device: 'simulator',
app: 'ios.debug',
},
'ios.sim.release': {
device: 'simulator',
app: 'ios.release',
},
'android.att.debug': {
device: 'attached',
app: 'android.debug',
},
'android.att.release': {
device: 'attached',
app: 'android.release',
},
'android.emu.debug': {
device: 'emulator',
app: 'android.debug',
},
'android.emu.release': {
device: 'emulator',
app: 'android.release',
},
},
};
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ body:
attributes:
label: What version of Expo are you using?
options:
- "Not using Expo"
- "SDK 45"
- "SDK 46"
- "SDK 47"
- "SDK 48"
- 'Not using Expo'
- 'SDK 45'
- 'SDK 46'
- 'SDK 47'
- 'SDK 48'
validations:
required: true

Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/androidBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Android build

on:
pull_request:

jobs:
build-android:
runs-on: ubuntu-latest

steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: yarn

- name: Install dependencies
run: yarn --cwd example --frozen-lockfile

- name: Write local.properties
run: echo MAPS_API_KEY=your_api_key_here >> example/android/local.properties

- name: Build Android
run: cd example/android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug
37 changes: 37 additions & 0 deletions .github/workflows/iosBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: iOS build

on:
pull_request:

jobs:
build-ios:
runs-on: macos-latest

steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: yarn

- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.2'
bundler-cache: true
working-directory: example

- name: Install dependencies
run: yarn --cwd example --frozen-lockfile

- name: Install pods
run: yarn pod-install

- name: Write Config.xcconfig
run: echo MAPS_API_KEY=your_api_key_here >> example/ios/Config.xcconfig

- name: Build iOS
run: xcodebuild -workspace example/ios/rnmshowcase.xcworkspace -scheme rnmshowcase -configuration Debug -sdk iphonesimulator
40 changes: 40 additions & 0 deletions .github/workflows/iosFrameworksBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: iOS frameworks build

on:
pull_request:

jobs:
build-ios-frameworks:
runs-on: macos-latest

steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: yarn

- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.2'
bundler-cache: true
working-directory: example

- name: Install dependencies
run: yarn --cwd example --frozen-lockfile

- name: Use frameworks
run: mv example/ios/PodfileFrameworks example/ios/Podfile

- name: Install pods
run: yarn pod-install

- name: Write Config.xcconfig
run: echo MAPS_API_KEY=your_api_key_here >> example/ios/Config.xcconfig

- name: Build iOS
run: xcodebuild -workspace example/ios/rnmshowcase.xcworkspace -scheme rnmshowcase -configuration Debug -sdk iphonesimulator
14 changes: 3 additions & 11 deletions .github/workflows/pullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ name: Pull Request

on:
pull_request:
types:
- opened # default
- reopened # default
- synchronize # default
- edited # used to check pr title
branches:
- master
- beta

jobs:
lint-test:
Expand All @@ -28,14 +20,14 @@ jobs:
- name: Install dependencies
run: yarn --frozen-lockfile

- name: Lint PR title
run: echo "${{ github.event.pull_request.title }}" | yarn commitlint

- name: Lint
run: yarn lint

- name: TsCheck
run: yarn tscheck

- name: Check formatting
run: yarn format-check

- name: Test
run: yarn test
8 changes: 8 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
env:
HUSKY: 0
steps:
Expand All @@ -29,8 +32,13 @@ jobs:
- name: Build
run: yarn build

# Latest version of npm needed for provenance
- name: Install latest npm
run: npm install -g npm@latest

- name: Release
env:
GITHUB_TOKEN: ${{secrets.CI_GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true
run: yarn release
4 changes: 4 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ on:
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v7
with:
exempt-issue-labels: reproducible
days-before-stale: 90
days-before-close: 14
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If the issue remains relevant, simply comment `Still relevant` and the issue will remain open. Thank you for your contributions.'
Expand Down
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@ yarn-error.log
.vscode

# ts outDir
# lib/
example/
lib/

example/vendor/bundle/

example/ios/Config.xcconfig
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@

yarn lint
yarn tscheck
yarn format-check
yarn test
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Add files here to ignore them from prettier formatting

CHANGELOG.md
example/ios
example/android
android/build
example/vendor/bundle/
ios/DerivedData
8 changes: 7 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
}
],
"@semantic-release/npm",
"@semantic-release/git",
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}

0 comments on commit fe3e32f

Please sign in to comment.