Skip to content

Commit eff5679

Browse files
WoLewickija1ns
authored andcommitted
feat: bring 0.74 support (software-mansion#2047)
PR with fixes for new arch in RN 0.74
1 parent c241c31 commit eff5679

Some content is hidden

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

47 files changed

+4025
-4435
lines changed

.github/workflows/ios-build-test-fabric.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
workflow_dispatch:
1818
jobs:
1919
build:
20-
runs-on: macos-12
20+
runs-on: macos-14
2121
timeout-minutes: 60
2222
env:
2323
WORKING_DIRECTORY: FabricTestExample
@@ -34,7 +34,10 @@ jobs:
3434
node-version: 18
3535
cache: 'yarn'
3636
cache-dependency-path: 'FabricTestExample/yarn.lock'
37-
37+
- name: Use latest stable Xcode
38+
uses: maxim-lobanov/setup-xcode@v1
39+
with:
40+
xcode-version: latest-stable
3841
- name: Install node dependencies
3942
working-directory: ${{ env.WORKING_DIRECTORY }}
4043
run: yarn

.github/workflows/ios-build-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
workflow_dispatch:
1717
jobs:
1818
build:
19-
runs-on: macos-12
19+
runs-on: macos-14
2020
timeout-minutes: 60
2121
env:
2222
WORKING_DIRECTORY: TestsExample
@@ -32,6 +32,10 @@ jobs:
3232
node-version: 18
3333
cache: 'yarn'
3434
cache-dependency-path: 'TestsExample/yarn.lock'
35+
- name: Use latest stable Xcode
36+
uses: maxim-lobanov/setup-xcode@v1
37+
with:
38+
xcode-version: latest-stable
3539
- name: Install node dependencies
3640
working-directory: ${{ env.WORKING_DIRECTORY }}
3741
run: yarn

.github/workflows/ios-e2e-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
workflow_dispatch:
1616
jobs:
1717
test:
18-
runs-on: macos-12
18+
runs-on: macos-14
1919
timeout-minutes: 60
2020
env:
2121
WORKING_DIRECTORY: Example
@@ -30,6 +30,10 @@ jobs:
3030
with:
3131
node-version: 18
3232
cache: 'yarn'
33+
- name: Use latest stable Xcode
34+
uses: maxim-lobanov/setup-xcode@v1
35+
with:
36+
xcode-version: latest-stable
3337
- name: Get Xcode version
3438
run: xcodebuild -version
3539
- name: Install AppleSimulatorUtils

FabricExample/.gitignore

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ DerivedData
2020
*.hmap
2121
*.ipa
2222
*.xcuserstate
23-
ios/.xcode.env.local
23+
**/.xcode.env.local
2424

2525
# Android/IntelliJ
2626
#
@@ -56,11 +56,19 @@ yarn-error.log
5656
*.jsbundle
5757

5858
# Ruby / CocoaPods
59-
/ios/Pods/
59+
**/Pods/
6060
/vendor/bundle/
6161

6262
# Temporary files created by Metro to check the health of the file watcher
6363
.metro-health-check*
6464

6565
# testing
6666
/coverage
67+
68+
# Yarn
69+
.yarn/*
70+
!.yarn/patches
71+
!.yarn/plugins
72+
!.yarn/releases
73+
!.yarn/sdks
74+
!.yarn/versions

FabricExample/Gemfile.lock

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.7)
5+
base64
6+
nkf
7+
rexml
8+
activesupport (7.0.8.1)
9+
concurrent-ruby (~> 1.0, >= 1.0.2)
10+
i18n (>= 1.6, < 2)
11+
minitest (>= 5.1)
12+
tzinfo (~> 2.0)
13+
addressable (2.8.6)
14+
public_suffix (>= 2.0.2, < 6.0)
15+
algoliasearch (1.27.5)
16+
httpclient (~> 2.8, >= 2.8.3)
17+
json (>= 1.5.1)
18+
atomos (0.1.3)
19+
base64 (0.2.0)
20+
claide (1.1.0)
21+
cocoapods (1.15.2)
22+
addressable (~> 2.8)
23+
claide (>= 1.0.2, < 2.0)
24+
cocoapods-core (= 1.15.2)
25+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
26+
cocoapods-downloader (>= 2.1, < 3.0)
27+
cocoapods-plugins (>= 1.0.0, < 2.0)
28+
cocoapods-search (>= 1.0.0, < 2.0)
29+
cocoapods-trunk (>= 1.6.0, < 2.0)
30+
cocoapods-try (>= 1.1.0, < 2.0)
31+
colored2 (~> 3.1)
32+
escape (~> 0.0.4)
33+
fourflusher (>= 2.3.0, < 3.0)
34+
gh_inspector (~> 1.0)
35+
molinillo (~> 0.8.0)
36+
nap (~> 1.0)
37+
ruby-macho (>= 2.3.0, < 3.0)
38+
xcodeproj (>= 1.23.0, < 2.0)
39+
cocoapods-core (1.15.2)
40+
activesupport (>= 5.0, < 8)
41+
addressable (~> 2.8)
42+
algoliasearch (~> 1.0)
43+
concurrent-ruby (~> 1.1)
44+
fuzzy_match (~> 2.0.4)
45+
nap (~> 1.0)
46+
netrc (~> 0.11)
47+
public_suffix (~> 4.0)
48+
typhoeus (~> 1.0)
49+
cocoapods-deintegrate (1.0.5)
50+
cocoapods-downloader (2.1)
51+
cocoapods-plugins (1.0.0)
52+
nap
53+
cocoapods-search (1.0.1)
54+
cocoapods-trunk (1.6.0)
55+
nap (>= 0.8, < 2.0)
56+
netrc (~> 0.11)
57+
cocoapods-try (1.2.0)
58+
colored2 (3.1.2)
59+
concurrent-ruby (1.2.3)
60+
escape (0.0.4)
61+
ethon (0.16.0)
62+
ffi (>= 1.15.0)
63+
ffi (1.16.3)
64+
fourflusher (2.3.1)
65+
fuzzy_match (2.0.4)
66+
gh_inspector (1.1.3)
67+
httpclient (2.8.3)
68+
i18n (1.14.1)
69+
concurrent-ruby (~> 1.0)
70+
json (2.7.1)
71+
minitest (5.22.2)
72+
molinillo (0.8.0)
73+
nanaimo (0.3.0)
74+
nap (1.1.0)
75+
netrc (0.11.0)
76+
nkf (0.2.0)
77+
public_suffix (4.0.7)
78+
rexml (3.2.6)
79+
ruby-macho (2.5.1)
80+
typhoeus (1.4.1)
81+
ethon (>= 0.9.0)
82+
tzinfo (2.0.6)
83+
concurrent-ruby (~> 1.0)
84+
xcodeproj (1.24.0)
85+
CFPropertyList (>= 2.3.3, < 4.0)
86+
atomos (~> 0.1.3)
87+
claide (>= 1.0.2, < 2.0)
88+
colored2 (~> 3.1)
89+
nanaimo (~> 0.3.0)
90+
rexml (~> 3.2.4)
91+
92+
PLATFORMS
93+
ruby
94+
95+
DEPENDENCIES
96+
activesupport (>= 6.1.7.5, < 7.1.0)
97+
cocoapods (~> 1.15.2)
98+
99+
RUBY VERSION
100+
ruby 3.2.1p31
101+
102+
BUNDLED WITH
103+
2.4.6

FabricExample/android/app/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def jscFlavor = 'org.webkit:android-jsc:+'
7171

7272
android {
7373
ndkVersion rootProject.ext.ndkVersion
74-
7574
buildToolsVersion rootProject.ext.buildToolsVersion
7675
compileSdk rootProject.ext.compileSdkVersion
7776

@@ -108,7 +107,6 @@ android {
108107
dependencies {
109108
// The version of react-native is set by the React Native Gradle Plugin
110109
implementation("com.facebook.react:react-android")
111-
implementation("com.facebook.react:flipper-integration")
112110

113111
if (hermesEnabled.toBoolean()) {
114112
implementation("com.facebook.react:hermes-android")

FabricExample/android/app/src/debug/AndroidManifest.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools">
44

5-
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
6-
75
<application
86
android:usesCleartextTraffic="true"
97
tools:targetApi="28"

FabricExample/android/app/src/main/java/com/fabricexample/MainApplication.kt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@ import com.facebook.react.ReactPackage
99
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
1010
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1111
import com.facebook.react.defaults.DefaultReactNativeHost
12-
import com.facebook.react.flipper.ReactNativeFlipper
1312
import com.facebook.soloader.SoLoader
1413

1514
class MainApplication : Application(), ReactApplication {
1615

1716
override val reactNativeHost: ReactNativeHost =
1817
object : DefaultReactNativeHost(this) {
19-
override fun getPackages(): List<ReactPackage> {
20-
// Packages that cannot be autolinked yet can be added manually here, for example:
21-
// packages.add(new MyReactNativePackage());
22-
return PackageList(this).packages
23-
}
18+
override fun getPackages(): List<ReactPackage> =
19+
PackageList(this).packages.apply {
20+
// Packages that cannot be autolinked yet can be added manually here, for example:
21+
// add(MyReactNativePackage())
22+
}
2423

2524
override fun getJSMainModuleName(): String = "index"
2625

@@ -31,15 +30,14 @@ class MainApplication : Application(), ReactApplication {
3130
}
3231

3332
override val reactHost: ReactHost
34-
get() = getDefaultReactHost(this.applicationContext, reactNativeHost)
33+
get() = getDefaultReactHost(applicationContext, reactNativeHost)
3534

3635
override fun onCreate() {
3736
super.onCreate()
38-
SoLoader.init(this, /* native exopackage */ false)
37+
SoLoader.init(this, false)
3938
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
4039
// If you opted-in for the New Architecture, we load the native entry point for this app.
4140
load()
4241
}
43-
ReactNativeFlipper.initializeFlipper(this, reactNativeHost.reactInstanceManager)
4442
}
4543
}

FabricExample/android/app/src/main/res/drawable/rn_edit_text_material.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
1818
android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
1919
android:insetTop="@dimen/abc_edit_text_inset_top_material"
20-
android:insetBottom="@dimen/abc_edit_text_inset_bottom_material">
20+
android:insetBottom="@dimen/abc_edit_text_inset_bottom_material"
21+
>
2122

2223
<selector>
2324
<!--

FabricExample/android/app/src/release/java/com/fabricexample/ReactNativeFlipper.java

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

0 commit comments

Comments
 (0)