Skip to content

Commit

Permalink
update rn 73 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTrunk committed Mar 6, 2024
1 parent 8d4802c commit 2b56067
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 42 deletions.
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ source 'https://rubygems.org'
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby ">= 2.6.10"

gem 'cocoapods', '~> 1.12'
# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
# bound in the template on Cocoapods with next React Native release.
gem 'cocoapods', '>= 1.13', '< 1.15'
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ react {
// The name of the generated asset file containing your JS bundle
// bundleAssetName = "MyApplication.android.bundle"
//
// The entry file for bundle generation. Default is 'index.android.js' or 'index.ts'
// The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
// entryFile = file("../js/MyApplication.android.js")
//
// A list of extra flags to pass to the 'bundle' commands.
Expand Down
6 changes: 0 additions & 6 deletions android/app/src/main/java/com/sspkey/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.runonflux.sspkey

import android.os.Bundle
import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
Expand All @@ -20,9 +19,4 @@ class MainActivity : ReactActivity() {
*/
override fun createReactActivityDelegate(): ReactActivityDelegate =
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)

override fun onCreate(savedInstance: Bundle?) {
super.onCreate(savedInstance)
setTheme(com.runonflux.sspkey.R.style.AppTheme)
}
}
10 changes: 5 additions & 5 deletions android/app/src/main/java/com/sspkey/MainApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class MainApplication : Application(), ReactApplication {

override val reactNativeHost: ReactNativeHost =
object : DefaultReactNativeHost(this) {
override fun getPackages(): List<ReactPackage> {
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
return PackageList(this).packages
}
override fun getPackages(): List<ReactPackage> =
PackageList(this).packages.apply {
// Packages that cannot be autolinked yet can be added manually here, for example:
// add(MyReactNativePackage())
}

override fun getJSMainModuleName(): String = "index"

Expand Down
1 change: 1 addition & 0 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 2 additions & 0 deletions ios/SSPKey.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
USE_HERMES = true;
};
name = Debug;
};
Expand Down Expand Up @@ -729,6 +730,7 @@
);
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
SDKROOT = iphoneos;
USE_HERMES = true;
VALIDATE_PRODUCT = YES;
};
name = Release;
Expand Down
58 changes: 29 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"@react-native-firebase/app": "^18.7.3",
"@react-native-firebase/messaging": "^18.7.3",
"@react-native-picker/picker": "^2.6.1",
"@react-navigation/native": "^6.1.9",
"@react-navigation/stack": "^6.3.20",
"@reduxjs/toolkit": "^2.0.1",
"@react-navigation/native": "^6.1.14",
"@react-navigation/stack": "^6.3.25",
"@reduxjs/toolkit": "^2.2.1",
"@runonflux/react-native-step-indicator": "^1.0.0",
"@runonflux/utxo-lib": "^1.0.0",
"@scure/bip32": "^1.3.3",
Expand All @@ -34,52 +34,52 @@
"crypto-js": "^4.2.0",
"events": "^3.3.0",
"fastestsmallesttextencoderdecoder": "^1.0.22",
"i18next": "^23.7.11",
"i18next": "^23.10.0",
"postinstall-postinstall": "^2.1.0",
"process": "^0.11.10",
"react": "~18.2.0",
"react-i18next": "^13.2.0",
"react-native": "~0.73.1",
"react-i18next": "^14.0.5",
"react-native": "~0.73.5",
"react-native-biometrics": "^3.0.1",
"react-native-camera-kit": "13.0.0",
"react-native-device-info": "^10.12.0",
"react-native-device-info": "^10.13.1",
"react-native-encrypted-storage": "^4.0.3",
"react-native-gesture-handler": "^2.14.0",
"react-native-gesture-handler": "^2.15.0",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-mmkv": "^2.11.0",
"react-native-mmkv": "^2.12.1",
"react-native-permissions": "^3.10.1",
"react-native-popup-menu": "^0.16.1",
"react-native-quick-base64": "^2.0.8",
"react-native-quick-crypto": "^0.6.1",
"react-native-randombytes": "^3.6.1",
"react-native-reanimated": "^3.6.1",
"react-native-safe-area-context": "^4.8.1",
"react-native-reanimated": "^3.7.2",
"react-native-safe-area-context": "^4.9.0",
"react-native-screens": "^3.29.0",
"react-native-svg": "^14.1.0",
"react-native-toast-message": "^2.2.0",
"react-native-vector-icons": "^10.0.3",
"react-redux": "^9.0.4",
"readable-stream": "^4.5.1",
"react-redux": "^9.1.0",
"readable-stream": "^4.5.2",
"redux-persist": "^6.0.0",
"socket.io-client": "^4.7.2",
"socket.io-client": "^4.7.4",
"stream-browserify": "^3.0.0",
"util": "^0.12.5"
},
"devDependencies": {
"@babel/core": "^7.23.6",
"@babel/preset-env": "^7.23.6",
"@babel/runtime": "^7.23.6",
"@react-native/babel-preset": "^0.73.18",
"@babel/core": "^7.24.0",
"@babel/preset-env": "^7.24.0",
"@babel/runtime": "^7.24.0",
"@react-native/babel-preset": "^0.73.21",
"@react-native/eslint-config": "^0.74.0",
"@react-native/metro-config": "^0.73.2",
"@react-native/typescript-config": "^0.73.1",
"@react-navigation/devtools": "^6.0.20",
"@react-native/typescript-config": "^0.74.0",
"@react-navigation/devtools": "^6.0.23",
"@testing-library/jest-native": "^5.4.3",
"@testing-library/react-native": "^12.4.2",
"@types/jest": "^29.5.11",
"@testing-library/react-native": "^12.4.3",
"@types/jest": "^29.5.12",
"@types/metro-config": "^0.76.3",
"@types/node": "^20.10.5",
"@types/react": "^18.2.45",
"@types/node": "^20.11.24",
"@types/react": "^18.2.63",
"@types/react-native": "^0.73.0",
"@types/react-native-vector-icons": "^6.4.18",
"@types/react-test-renderer": "^18.0.7",
Expand All @@ -88,15 +88,15 @@
"babel-plugin-module-resolver": "^5.0.0",
"babel-plugin-rewrite-require": "^1.14.5",
"babel-plugin-root-import": "^6.6.0",
"dotenv": "^16.3.1",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^5.1.0",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"patch-package": "^8.0.0",
"prettier": "^3.1.1",
"prettier": "^3.2.5",
"react-native-svg-transformer": "^1.3.0",
"react-test-renderer": "18.2.0",
"redux-flipper": "^2.0.2",
"redux-flipper": "^2.0.3",
"rn-nodeify": "^10.3.0",
"typescript": "^5.3.3"
},
Expand Down

0 comments on commit 2b56067

Please sign in to comment.