Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support React Native 0.76 #753

Merged
merged 44 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
bdd1046
chore: upgrade to RN 0.76.0-rc.1
artus9033 Sep 18, 2024
ced14a8
fix: patch react-native (broken flow annotations)
artus9033 Sep 18, 2024
dbcc4fc
fix: make native code compatible with RN 0.76 reduction of .so librar…
artus9033 Sep 18, 2024
1b5eb14
fix: make DevServerClient comply with all required exports
artus9033 Sep 18, 2024
c086a48
fix: upgrade deps in tester-federation (react-native-screens still in…
artus9033 Sep 19, 2024
4673a00
chore: updated pods in tester-app iOS project
artus9033 Sep 19, 2024
f0a7e80
Merge branch 'main' into chore/upgrade-to-rn-76-rc1
artus9033 Sep 19, 2024
2cdf847
chore: updated dependencies of tester apps
artus9033 Sep 19, 2024
8c885b1
fix: proper CMakeLists.txt linkage
artus9033 Sep 19, 2024
3fde821
chore: remove redundant babel plugins
jbroma Sep 19, 2024
efb0c92
chore: pnpm dedupe
jbroma Sep 19, 2024
e677b85
chore: strip unnecessary dependencies
artus9033 Sep 19, 2024
b5ca9db
Merge branch 'chore/upgrade-to-rn-76-rc1' of github.com:callstack/rep…
artus9033 Sep 19, 2024
c5a780a
fix: adjust CMakeLists as REACTNATIVE_MERGED_SO is not set for now
artus9033 Sep 19, 2024
30b2e91
fix: sanitize test asset path when react-native is patched
artus9033 Sep 19, 2024
b25ffb5
fix: simplify regex, move configs to a separate dir
jbroma Sep 23, 2024
03744f2
fix: add babel-plugin-syntax-hermes-parser for now
jbroma Sep 23, 2024
5c1db81
fix: path to config for start tests
jbroma Sep 23, 2024
ae81bdc
chore: track issue fixing REACTNATIVE_MERGED_SO
artus9033 Sep 26, 2024
e0b668e
Merge branch 'chore/upgrade-to-rn-76-rc1' of github.com:callstack/rep…
artus9033 Sep 26, 2024
5580fe2
chore: upgrade to RN 0.76.0-rc.2, remove to-be-unneeded patch for RN
artus9033 Sep 28, 2024
1a8e502
chore: upgrade flow-remove-types
artus9033 Sep 29, 2024
2e988ca
chore: update Podfile.lock files for tester apps
artus9033 Sep 29, 2024
138cc67
Merge remote-tracking branch 'origin/main' into chore/upgrade-to-rn-7…
jbroma Oct 2, 2024
89e51d8
chore: upgrade to RN to 76 rc3
jbroma Oct 2, 2024
83fc6e3
chore: cleanup in bundle tests
jbroma Oct 2, 2024
0c6afb5
chore: update podfile locks
jbroma Oct 2, 2024
8e66d32
chore: upgrade related packages to rc.3
jbroma Oct 2, 2024
6d6dc39
fix: use hermes parser for codegen
jbroma Oct 2, 2024
048c9da
chore: remove Cmake workaround
jbroma Oct 2, 2024
617ecb5
Merge remote-tracking branch 'origin/main' into chore/upgrade-to-rn-7…
jbroma Oct 15, 2024
4f57ef8
chore: update flow-remove-types
jbroma Oct 17, 2024
44499bb
chore: upgrade to RN to rc5
jbroma Oct 17, 2024
fd13cff
refactor: remove unnecessary config from codegenRule
jbroma Oct 17, 2024
a6e3e6a
chore: downgrade RNScreens to stable version, update requiredVersions…
jbroma Oct 17, 2024
ce8f67f
fix: use version check instead of REACT_NATIVE_MERGED_SO flag
jbroma Oct 17, 2024
017e3ae
chore: patch RNScreens
jbroma Oct 17, 2024
cbd1109
chore: fix RNScreens patch
jbroma Oct 17, 2024
c7c8f1b
chore: upgrade to rc6
jbroma Oct 17, 2024
2e49eed
Merge remote-tracking branch 'origin/main' into chore/upgrade-to-rn-7…
jbroma Oct 17, 2024
9866563
chore: pnpm dedupe
jbroma Oct 17, 2024
5590c4c
chore: upgrade flow-remove-types to 2.250.0
jbroma Oct 18, 2024
1bc7e48
chore: fix rnscreens patch
jbroma Oct 18, 2024
4618622
chore: add changset
jbroma Oct 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion apps/tester-app/__tests__/bundle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ const RELATIVE_REACT_NATIVE_PATH = path.relative(
const REACT_NATIVE_ANDROID_ASSET_PATH = RELATIVE_REACT_NATIVE_PATH.replaceAll(
path.sep,
'_'
).replaceAll(/[-.@+]/g, '');
)
.replaceAll(/[-.@+]/g, '')
// when a module is patched with pnpm, its node_modules' path changes
.replaceAll(/patch_hash=/g, 'patch_hash');
jbroma marked this conversation as resolved.
Show resolved Hide resolved

describe('bundle command', () => {
describe.each([
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.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
7 changes: 5 additions & 2 deletions apps/tester-app/android/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#

##############################################################################
#
Expand Down Expand Up @@ -55,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand Down Expand Up @@ -84,7 +86,8 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
2 changes: 2 additions & 0 deletions apps/tester-app/android/gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem

@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
Expand Down
Loading
Loading