Skip to content

Commit 69748cd

Browse files
committed
Update to react-native 0.82
1 parent 3af8d85 commit 69748cd

29 files changed

+4864
-5773
lines changed

.eslintignore

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

.eslintrc.js

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

.oxlintrc.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"ignorePatterns": ["fetchWindowsCapabilites.js"],
4+
"plugins": ["typescript", "react"],
5+
"categories": {
6+
"correctness": "error",
7+
"perf": "error",
8+
"restriction": "error",
9+
"suspicious": "error"
10+
},
11+
"env": {
12+
"builtin": true
13+
},
14+
"rules": {
15+
"no-await-in-loop": "off",
16+
"no-empty-function": "off",
17+
"no-eq-null": "off",
18+
"no-undefined": "off",
19+
20+
"no-unused-vars": [
21+
"error",
22+
{
23+
"argsIgnorePattern": "^_",
24+
"ignoreRestSiblings": true
25+
}
26+
],
27+
28+
"react/jsx-filename-extension": "off",
29+
"react/react-in-jsx-scope": "off",
30+
31+
"@typescript-eslint/ban-ts-comment": "off",
32+
"@typescript-eslint/ban-types": "off",
33+
"@typescript-eslint/explicit-function-return-type": "off",
34+
"@typescript-eslint/explicit-module-boundary-types": "off",
35+
"@typescript-eslint/no-explicit-any": "off",
36+
"@typescript-eslint/no-require-imports": "off",
37+
"@typescript-eslint/no-var-requires": "off",
38+
"@typescript-eslint/no-wrapper-object-types": "off",
39+
40+
"react-hooks/rules-of-hooks": "error",
41+
"react-hooks/exhaustive-deps": "error"
42+
},
43+
"overrides": [
44+
{
45+
"files": ["example/**"],
46+
"rules": {
47+
"no-console": "off"
48+
}
49+
}
50+
]
51+
}

RNPermissions.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Pod::Spec.new do |s|
1717
s.source = { :git => package["repository"]["url"], :tag => s.version }
1818
s.resource_bundles = { 'RNPermissionsPrivacyInfo' => 'ios/PrivacyInfo.xcprivacy' }
1919

20-
s.source_files = "ios/*.{h,mm}"
21-
# s.frameworks = <frameworks>
20+
s.source_files = "ios/*.{h,mm}", "ios/StoreKit/*.{h,mm}", "ios/FaceID/*.{h,mm}", "ios/Calendars/*.{h,mm}", "ios/LocationAlways/*.{h,mm}", "ios/PhotoLibraryAddOnly/*.{h,mm}", "ios/Microphone/*.{h,mm}", "ios/SpeechRecognition/*.{h,mm}", "ios/LocationWhenInUse/*.{h,mm}", "ios/PhotoLibrary/*.{h,mm}", "ios/Camera/*.{h,mm}", "ios/Contacts/*.{h,mm}", "ios/Motion/*.{h,mm}", "ios/CalendarsWriteOnly/*.{h,mm}", "ios/AppTrackingTransparency/*.{h,mm}", "ios/LocationAccuracy/*.{h,mm}", "ios/Bluetooth/*.{h,mm}", "ios/MediaLibrary/*.{h,mm}", "ios/Notifications/*.{h,mm}", "ios/Reminders/*.{h,mm}"
21+
s.frameworks = "StoreKit", "LocalAuthentication", "EventKit", "CoreLocation", "Photos", "AVFoundation", "Speech", "PhotosUI", "Contacts", "CoreMotion", "AdSupport", "AppTrackingTransparency", "CoreBluetooth", "MediaPlayer", "UserNotifications"
2222

2323
if ENV['RCT_NEW_ARCH_ENABLED'] == "1" then
2424
install_modules_dependencies(s)

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: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ GEM
55
base64
66
nkf
77
rexml
8-
activesupport (7.2.2.1)
8+
activesupport (7.2.2.2)
99
base64
1010
benchmark (>= 0.3)
1111
bigdecimal
@@ -24,8 +24,8 @@ GEM
2424
json (>= 1.5.1)
2525
atomos (0.1.3)
2626
base64 (0.3.0)
27-
benchmark (0.4.1)
28-
bigdecimal (3.2.2)
27+
benchmark (0.5.0)
28+
bigdecimal (3.3.1)
2929
claide (1.1.0)
3030
cocoapods (1.15.2)
3131
addressable (~> 2.8)
@@ -66,10 +66,10 @@ GEM
6666
cocoapods-try (1.2.0)
6767
colored2 (3.1.2)
6868
concurrent-ruby (1.3.3)
69-
connection_pool (2.5.3)
69+
connection_pool (2.5.4)
7070
drb (2.2.3)
7171
escape (0.0.4)
72-
ethon (0.16.0)
72+
ethon (0.17.0)
7373
ffi (>= 1.15.0)
7474
ffi (1.17.2)
7575
fourflusher (2.3.1)
@@ -79,17 +79,17 @@ GEM
7979
mutex_m
8080
i18n (1.14.7)
8181
concurrent-ruby (~> 1.0)
82-
json (2.13.0)
82+
json (2.15.2)
8383
logger (1.7.0)
84-
minitest (5.25.5)
84+
minitest (5.26.0)
8585
molinillo (0.8.0)
8686
mutex_m (0.3.0)
8787
nanaimo (0.3.0)
8888
nap (1.1.0)
8989
netrc (0.11.0)
9090
nkf (0.2.0)
9191
public_suffix (4.0.7)
92-
rexml (3.4.1)
92+
rexml (3.4.4)
9393
ruby-macho (2.5.1)
9494
securerandom (0.4.1)
9595
typhoeus (1.4.1)
@@ -109,8 +109,12 @@ PLATFORMS
109109

110110
DEPENDENCIES
111111
activesupport (>= 6.1.7.5, != 7.1.0)
112+
benchmark
113+
bigdecimal
112114
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
113115
concurrent-ruby (< 1.3.4)
116+
logger
117+
mutex_m
114118
xcodeproj (< 1.26.0)
115119

116120
RUBY VERSION

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

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

example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
android:roundIcon="@mipmap/ic_launcher_round"
5454
android:allowBackup="false"
5555
android:theme="@style/AppTheme"
56+
android:usesCleartextTraffic="${usesCleartextTraffic}"
5657
android:supportsRtl="true">
5758
<activity
5859
android:name=".MainActivity"

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

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,24 @@ 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.ReactNativeHost
8-
import com.facebook.react.ReactPackage
9-
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
7+
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
108
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
11-
import com.facebook.react.defaults.DefaultReactNativeHost
12-
import com.facebook.react.soloader.OpenSourceMergedSoMapping
13-
import com.facebook.soloader.SoLoader
149

1510
class MainApplication : Application(), ReactApplication {
1611

17-
override val reactNativeHost: ReactNativeHost =
18-
object : DefaultReactNativeHost(this) {
19-
override fun getPackages(): List<ReactPackage> =
20-
PackageList(this).packages.apply {
21-
// Packages that cannot be autolinked yet can be added manually here, for example:
22-
// add(MyReactNativePackage())
23-
}
24-
25-
override fun getJSMainModuleName(): String = "index"
26-
27-
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
28-
29-
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
30-
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
31-
}
32-
33-
override val reactHost: ReactHost
34-
get() = getDefaultReactHost(applicationContext, reactNativeHost)
12+
override val reactHost: ReactHost by lazy {
13+
getDefaultReactHost(
14+
context = applicationContext,
15+
packageList =
16+
PackageList(this).packages.apply {
17+
// Packages that cannot be autolinked yet can be added manually here, for example:
18+
// add(MyReactNativePackage())
19+
},
20+
)
21+
}
3522

3623
override fun onCreate() {
3724
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-
}
25+
loadReactNative(this)
4326
}
4427
}

example/android/build.gradle

Lines changed: 4 additions & 4 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 = 35
5+
compileSdkVersion = 36
6+
targetSdkVersion = 36
77
ndkVersion = "27.1.12297006"
8-
kotlinVersion = "2.0.21"
8+
kotlinVersion = "2.1.20"
99
}
1010
repositories {
1111
google()

0 commit comments

Comments
 (0)