Skip to content

Commit b47aa49

Browse files
authored
chore: upgrade Example app to RN 0.81.1 (#780)
1 parent 8832302 commit b47aa49

File tree

33 files changed

+1627
-1141
lines changed

33 files changed

+1627
-1141
lines changed

.github/workflows/build-ios.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ jobs:
6161
env:
6262
RCT_NEW_ARCH_ENABLED: 1
6363
SODIUM_ENABLED: 1
64-
run: bun pods
64+
run: |
65+
sudo xcode-select --switch /Applications/Xcode_16.4.app
66+
bun pods
6567
6668
- name: Install xcpretty
6769
run: gem install xcpretty

bun.lock

Lines changed: 220 additions & 421 deletions
Large diffs are not rendered by default.
-5.43 KB
Loading

example/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ local.properties
3333
.cxx/
3434
*.keystore
3535
!debug.keystore
36+
.kotlin
3637

3738
# node.js
3839
#

example/Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
88
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
99
gem 'xcodeproj', '< 1.26.0'
1010
gem 'concurrent-ruby', '< 1.3.4'
11+
12+
# Ruby 3.4.0 has removed some libraries from the standard library.
13+
gem 'bigdecimal'
14+
gem 'logger'
15+
gem 'benchmark'
16+
gem 'mutex_m'

example/Gemfile.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ GEM
8282
logger (1.6.1)
8383
minitest (5.25.1)
8484
molinillo (0.8.0)
85+
mutex_m (0.3.0)
8586
nanaimo (0.3.0)
8687
nap (1.1.0)
8788
netrc (0.11.0)
@@ -107,8 +108,12 @@ PLATFORMS
107108

108109
DEPENDENCIES
109110
activesupport (>= 6.1.7.5, != 7.1.0)
111+
benchmark
112+
bigdecimal
110113
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
111114
concurrent-ruby (< 1.3.4)
115+
logger
116+
mutex_m
112117
xcodeproj (< 1.26.0)
113118

114119
RUBY VERSION

example/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ def enableProguardInReleaseBuilds = false
6363
* The preferred build flavor of JavaScriptCore (JSC)
6464
*
6565
* For example, to use the international variant, you can use:
66-
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
66+
* `def jscFlavor = o.github.react-native-community:jsc-android-intl:2026004.+`
6767
*
6868
* The international variant includes ICU i18n library and necessary data
6969
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
7070
* give correct results when using with locales other than en-US. Note that
7171
* this variant is about 6MiB larger per architecture than default.
7272
*/
73-
def jscFlavor = 'org.webkit:android-jsc:+'
73+
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
7474

7575
android {
7676
ndkVersion rootProject.ext.ndkVersion

example/android/app/src/main/java/com/quickcryptoexample/MainApplication.kt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ import android.app.Application
44
import com.facebook.react.PackageList
55
import com.facebook.react.ReactApplication
66
import com.facebook.react.ReactHost
7+
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
78
import com.facebook.react.ReactNativeHost
89
import com.facebook.react.ReactPackage
9-
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.soloader.OpenSourceMergedSoMapping
13-
import com.facebook.soloader.SoLoader
1412

1513
class MainApplication : Application(), ReactApplication {
1614

@@ -35,10 +33,6 @@ class MainApplication : Application(), ReactApplication {
3533

3634
override fun onCreate() {
3735
super.onCreate()
38-
SoLoader.init(this, OpenSourceMergedSoMapping)
39-
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
40-
// If you opted-in for the New Architecture, we load the native entry point for this app.
41-
load()
42-
}
36+
loadReactNative(this)
4337
}
4438
}

example/android/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
buildscript {
22
ext {
3-
buildToolsVersion = "35.0.0"
3+
buildToolsVersion = "36.0.0"
44
minSdkVersion = 24
5-
compileSdkVersion = 35
6-
targetSdkVersion = 34
7-
ndkVersion = "26.1.10909125"
8-
kotlinVersion = "1.9.25"
5+
compileSdkVersion = 36
6+
targetSdkVersion = 36
7+
ndkVersion = "27.1.12297006"
8+
kotlinVersion = "2.1.20"
99
}
1010
repositories {
1111
google()

example/android/gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,10 @@ newArchEnabled=true
4040
# If set to false, you will be using JSC instead.
4141
hermesEnabled=true
4242

43+
# Use this property to enable edge-to-edge display support.
44+
# This allows your app to draw behind system bars for an immersive UI.
45+
# Note: Only works with ReactActivity and should not be used with custom Activity.
46+
edgeToEdgeEnabled=false
47+
4348
# Use this property to enable or disable the libsodium support.
4449
sodiumEnabled=true

0 commit comments

Comments
 (0)