Skip to content

Commit

Permalink
RJS-2913: Supporting React Native v0.76.0 (#6912)
Browse files Browse the repository at this point in the history
* Upgraded React Native to 0.76.0

* Updated Android Cmake link configuration

* Add a note in the changelog

* Upgrade "@realm/react" dependencies

* Use Xcode 15.4 to built test app

* Increase timeout of "Test iOS" job to account for a cold ccache

* Patch test app's Info.plist
  • Loading branch information
kraenhansen authored Oct 29, 2024
1 parent a2e5ed8 commit 27f61ed
Show file tree
Hide file tree
Showing 12 changed files with 1,603 additions and 2,001 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pr-realm-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -489,12 +489,12 @@ jobs:
- generate-jsi
- prebuild-apple
env:
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app
DEVELOPER_DIR: /Applications/Xcode_15.4.app
IOS_DEVICE_NAME: iPhone 14
# See https://guides.cocoapods.org/using/faq.html#can-i-change-the-default-cocoapods-repositories-folder
CP_HOME_DIR: ${{ github.workspace }}/.cocoapods
runs-on: macos-latest-large
timeout-minutes: 60
timeout-minutes: 120
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -605,7 +605,11 @@ jobs:
working-directory: integration-tests/environments/react-native-test-app/ios
timeout-minutes: 15
run: pod install --verbose


- name: Patch test app's Info.plist to allow insecure connections to BaaSaaS server
working-directory: integration-tests/environments/react-native-test-app
run: sed -i '' 's/NSAllowsLocalNetworking/NSAllowsArbitraryLoads/g' node_modules/.generated/ios/Info.plist

- name: Build test app
working-directory: integration-tests/environments/react-native-test-app/ios
run: xcodebuild archive -workspace RealmTests.xcworkspace -configuration Release -scheme RealmTests -destination generic/platform="iOS Simulator" -archivePath ./build/realmtests.xcarchive | xcbeautify
Expand Down
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
* None

### Fixed
* <How to hit and notice issue? what was the impact?> ([#????](https://github.com/realm/realm-js/issues/????), since v?.?.?)
* None
* Fixed build error on React Native Android when used with React Native 0.76, due to the merge of dynamic libraries. ([#6908](https://github.com/realm/realm-js/issues/6908) since React Native v0.76.0).

### Compatibility
* React Native >= v0.71.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# particularly useful for configuring JVM memory settings for build performance.
# This does not affect the JVM settings for the Gradle client VM.
# The default is `-Xmx512m -XX:MaxMetaspaceSize=256m`.
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will fork up to org.gradle.workers.max JVMs to execute
# projects in parallel. To learn more about parallel task execution, see the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Loading

0 comments on commit 27f61ed

Please sign in to comment.