chore(INJI-303): update android target and compile sdk to API level 33 (#790) (#797)

* bump up react-native-gesture-handler version to 2.5.0
   * remove RNGestureHandlerEnabledRootView as it is not needed in new version of react-native-gesture-handler

Co-authored-by: Sreenadh S <32409698+sree96@users.noreply.github.com>
This commit is contained in:
Swati Goel
2023-09-06 13:19:31 +05:30
committed by GitHub
parent fddc16de6a
commit d5d1c25bfb
4 changed files with 14 additions and 24 deletions

View File

@@ -13,7 +13,6 @@ import androidx.core.content.ContextCompat;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.ReactRootView;
import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
import expo.modules.ReactActivityDelegateWrapper;
/**
@@ -109,17 +108,4 @@ public class MainActivity extends ReactActivity {
}
recreate();
}
@Override
protected ReactActivityDelegate createReactActivityDelegate() {
return new ReactActivityDelegateWrapper(
this,
new ReactActivityDelegate(this, getMainComponentName()) {
@Override
protected ReactRootView createRootView() {
return new RNGestureHandlerEnabledRootView(MainActivity.this);
}
}
);
}
}

View File

@@ -4,8 +4,8 @@ buildscript {
ext {
buildToolsVersion = "29.0.3"
minSdkVersion = 23
compileSdkVersion = 31
targetSdkVersion = 31
compileSdkVersion = 33
targetSdkVersion = 33
}
repositories {
google()

18
package-lock.json generated
View File

@@ -59,7 +59,7 @@
"react-native-dotenv": "^3.3.1",
"react-native-elements": "3.4.2",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "~2.1.0",
"react-native-gesture-handler": "2.5.0",
"react-native-keychain": "^8.0.0",
"react-native-linear-gradient": "^2.6.2",
"react-native-location": "^2.5.0",
@@ -21629,15 +21629,19 @@
}
},
"node_modules/react-native-gesture-handler": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/react-native-gesture-handler/-/react-native-gesture-handler-2.1.3.tgz",
"integrity": "sha512-y5W2MVB+J6vjIT/mUidDv0BqVRbWXn0cP7R2o6fsSYsHh9M0btT979+bCI7nPuhmRHjkhg5xCm4HNMIH0IQO4w==",
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/react-native-gesture-handler/-/react-native-gesture-handler-2.5.0.tgz",
"integrity": "sha512-djZdcprFf08PZC332D+AeG5wcGeAPhzfCJtB3otUgOgTlvjVXmg/SLFdPJSpzLBqkRAmrC77tM79QgKbuLxkfw==",
"dependencies": {
"@egjs/hammerjs": "^2.0.17",
"hoist-non-react-statics": "^3.3.0",
"invariant": "^2.2.4",
"lodash": "^4.17.21",
"prop-types": "^15.7.2"
},
"peerDependencies": {
"react": "*",
"react-native": "*"
}
},
"node_modules/react-native-keychain": {
@@ -45521,9 +45525,9 @@
}
},
"react-native-gesture-handler": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/react-native-gesture-handler/-/react-native-gesture-handler-2.1.3.tgz",
"integrity": "sha512-y5W2MVB+J6vjIT/mUidDv0BqVRbWXn0cP7R2o6fsSYsHh9M0btT979+bCI7nPuhmRHjkhg5xCm4HNMIH0IQO4w==",
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/react-native-gesture-handler/-/react-native-gesture-handler-2.5.0.tgz",
"integrity": "sha512-djZdcprFf08PZC332D+AeG5wcGeAPhzfCJtB3otUgOgTlvjVXmg/SLFdPJSpzLBqkRAmrC77tM79QgKbuLxkfw==",
"requires": {
"@egjs/hammerjs": "^2.0.17",
"hoist-non-react-statics": "^3.3.0",

View File

@@ -64,7 +64,7 @@
"react-native-dotenv": "^3.3.1",
"react-native-elements": "3.4.2",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "~2.1.0",
"react-native-gesture-handler": "2.5.0",
"react-native-keychain": "^8.0.0",
"react-native-linear-gradient": "^2.6.2",
"react-native-location": "^2.5.0",