Skip to content

Commit cbcd7d0

Browse files
committed
Add implementation for backward compatibility in new architecture
1 parent 8d0119a commit cbcd7d0

File tree

8 files changed

+213
-447
lines changed

8 files changed

+213
-447
lines changed

UXCamReactExample-Typescript/android/app/build.gradle

-6
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,6 @@ dependencies {
107107
// The version of react-native is set by the React Native Gradle Plugin
108108
implementation("com.facebook.react:react-android")
109109

110-
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
111-
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
112-
exclude group:'com.squareup.okhttp3', module:'okhttp'
113-
}
114-
115-
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
116110
if (hermesEnabled.toBoolean()) {
117111
implementation("com.facebook.react:hermes-android")
118112
} else {

UXCamReactExample-Typescript/android/app/src/debug/java/com/reacttypescriptsample/ReactNativeFlipper.java

-75
This file was deleted.

UXCamReactExample-Typescript/android/app/src/main/java/com/reacttypescriptsample/MainApplication.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ public void onCreate() {
5757
// If you opted-in for the New Architecture, we load the native entry point for this app.
5858
DefaultNewArchitectureEntryPoint.load();
5959
}
60-
ReactNativeFlipper.initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
60+
6161
}
6262
}

UXCamReactExample-Typescript/android/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
buildscript {
44
ext {
55
buildToolsVersion = "33.0.0"
6-
minSdkVersion = 21
7-
compileSdkVersion = 33
8-
targetSdkVersion = 33
6+
minSdkVersion = 23
7+
compileSdkVersion = 34
8+
targetSdkVersion = 34
99

1010
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
1111
ndkVersion = "23.1.7779620"

UXCamReactExample-Typescript/android/gradle.properties

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ android.useAndroidX=true
2424
# Automatically convert third-party libraries to use AndroidX
2525
android.enableJetifier=true
2626

27-
# Version of flipper SDK to use with React Native
28-
FLIPPER_VERSION=0.182.0
2927

3028
# Use this property to specify which architecture you want to build.
3129
# You can also override it from the CLI using
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

UXCamReactExample-Typescript/package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
"@react-native-async-storage/async-storage": "^1.23.1",
1414
"@react-navigation/bottom-tabs": "^6.5.8",
1515
"@react-navigation/native": "^6.1.7",
16-
"@react-navigation/native-stack": "^6.9.13",
16+
"@react-navigation/native-stack": "^6.9.26",
1717
"@reduxjs/toolkit": "^1.9.5",
18-
"react": "^18.2.0",
18+
"react": "^18.3.1",
1919
"react-native": "^0.74.0",
2020
"react-native-element-dropdown": "^2.9.0",
2121
"react-native-image-picker": "^5.6.0",
2222
"react-native-maps": "^1.7.1",
23-
"react-native-pager-view": "^6.2.0",
24-
"react-native-safe-area-context": "^4.6.3",
25-
"react-native-screens": "^3.22.0",
26-
"react-native-toast-message": "^2.1.6",
27-
"react-native-ux-cam": "^5.4.8",
28-
"react-native-video": "^5.2.1",
29-
"react-native-webview": "^13.2.2",
30-
"react-redux": "^8.1.1"
23+
"react-native-pager-view": "^6.3.3",
24+
"react-native-safe-area-context": "^4.10.5",
25+
"react-native-screens": "^3.32.0",
26+
"react-native-toast-message": "^2.2.0",
27+
"react-native-ux-cam": "../uxcam-react-wrapper",
28+
"react-native-video": "^6.3.0",
29+
"react-native-webview": "^13.10.4",
30+
"react-redux": "^9.1.2"
3131
},
3232
"devDependencies": {
3333
"@babel/core": "^7.20.0",

0 commit comments

Comments
 (0)