File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,16 @@ static int toVersionNumber(String version) {
68
68
ext {
69
69
apply(from : " ${ buildscript.sourceFile.getParent()} /test-app-util.gradle" )
70
70
71
+ reactNativeVersion = getPackageVersionNumber(" react-native" , rootDir)
72
+
71
73
compileSdkVersion = 34
72
74
minSdkVersion = 23
73
- targetSdkVersion = 33
74
75
75
- reactNativeVersion = getPackageVersionNumber(" react-native" , rootDir)
76
+ // A bug in an older version of OkHttp causes it to throw 'expected Android
77
+ // API level 21+ but was 33'.
78
+ // TODO: Remove when we drop support for 0.64
79
+ targetSdkVersion = reactNativeVersion > 0 && reactNativeVersion < 6500 ? 29 : 33
80
+
76
81
autodetectReactNativeVersion = reactNativeVersion == 0 || reactNativeVersion >= 7100
77
82
enableNewArchitecture = isNewArchitectureEnabled(project)
78
83
usePrefabs = reactNativeVersion == 0 || reactNativeVersion >= 7100
You can’t perform that action at this time.
0 commit comments