Skip to content

Commit bb335da

Browse files
committed
feat!: drop support for react-native 0.64, 0.65
BREAKING CHANGE: Dropped support for `react-native` 0.64, 0.65
1 parent a684433 commit bb335da

21 files changed

+44
-142
lines changed

ReactTestApp-DevSupport.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
1919
version = package['version']
2020

2121
Pod::Spec.new do |s|
22-
s.name = 'ReactTestApp-DevSupport'
22+
s.name = File.basename(__FILE__, '.podspec')
2323
s.version = version
2424
s.author = { package['author']['name'] => package['author']['email'] }
2525
s.license = package['license']

android/app/build.gradle

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,6 @@ repositories {
4545
mavenCentral()
4646
google()
4747

48-
// TODO: Remove this block when we drop support for 0.64.
49-
if (reactNativeVersion > 0 && reactNativeVersion < v(0, 65, 0)) {
50-
// Artifacts for 0.65+ are published to Maven Central. If we're on an
51-
// older version, we still need to use JCenter.
52-
// noinspection JcenterRepositoryObsolete
53-
jcenter() {
54-
content {
55-
includeGroup("com.facebook.fbjni")
56-
includeGroup("com.facebook.flipper")
57-
includeGroup("com.facebook.fresco")
58-
includeGroup("com.facebook.yoga")
59-
}
60-
}
61-
}
62-
6348
// https://github.com/AzureAD/microsoft-authentication-library-for-android#step-1-declare-dependency-on-msal
6449
maven {
6550
url = uri("https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1")
@@ -310,9 +295,6 @@ android {
310295
// TODO: Remove this block when we drop support for 0.67
311296
project.ext.react.enableFabric ? "src/fabric/java" : "src/no-fabric/java",
312297

313-
// TODO: Remove this block when we drop support for 0.65
314-
enableNewArchitecture ? "src/turbomodule/java" : "src/no-turbomodule/java",
315-
316298
// TODO: Remove this block when we drop support for 0.67
317299
// https://github.com/facebook/react-native/commit/ce74aa4ed335d4c36ce722d47937b582045e05c4
318300
reactNativeVersion > 0 && reactNativeVersion < v(0, 68, 0)
File renamed without changes.
File renamed without changes.
File renamed without changes.

android/app/src/no-turbomodule/java/com/microsoft/reacttestapp/compat/ReactNativeHostCompat.kt

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

android/app/src/no-turbomodule/java/com/microsoft/reacttestapp/fabric/ComponentsRegistry.kt

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

android/dependencies.gradle

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,9 @@ static String getKspVersion(String kotlinVersion) {
3030
ext {
3131
apply(from: "${buildscript.sourceFile.getParent()}/test-app-util.gradle")
3232

33-
reactNativeVersion = getPackageVersionNumber("react-native", rootDir)
34-
3533
compileSdkVersion = 34
3634
minSdkVersion = 23
37-
38-
// A bug in an older version of OkHttp causes it to throw 'expected Android
39-
// API level 21+ but was 33'.
40-
// TODO: Remove when we drop support for 0.64
41-
targetSdkVersion = reactNativeVersion > 0 && reactNativeVersion < v(0, 65, 0) ? 29 : 33
35+
targetSdkVersion = 33
4236

4337
/**
4438
* Returns the recommended Gradle plugin version for the specified React Native
@@ -70,6 +64,7 @@ ext {
7064
}
7165
}
7266

67+
reactNativeVersion = getPackageVersionNumber("react-native", rootDir)
7368
autodetectReactNativeVersion = reactNativeVersion == 0 || reactNativeVersion >= v(0, 71, 0)
7469
enableNewArchitecture = isNewArchitectureEnabled(project)
7570
usePrefabs = reactNativeVersion == 0 || reactNativeVersion >= v(0, 71, 0)
@@ -86,7 +81,7 @@ ext {
8681
} else if (System.properties["os.arch"] == "aarch64" && androidPluginVersion == "7.2.2") {
8782
// NDK r23c has been patched to support Apple M1 and is default in AGP
8883
// 7.3.0. Prior to 0.71, we still need to set `ndkVersion` because we'll
89-
// be using AGP 7.2.2 (see `androidPluginVersion` below).
84+
// be using AGP 7.2.2 (see `androidPluginVersion` above).
9085
// Note that even though newer 23.x versions exist, we'll stick to AGP's
9186
// default. See also
9287
// https://developer.android.com/studio/releases/gradle-plugin#compatibility-7-3-0

example/Example-Tests.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ require 'json'
33
package = JSON.parse(File.read(File.join('..', 'package.json')))
44

55
Pod::Spec.new do |s|
6-
s.name = 'Example-Tests'
6+
s.name = File.basename(__FILE__, '.podspec')
77
s.version = package['version']
88
s.author = { package['author']['name'] => package['author']['email'] }
99
s.license = package['license']

example/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,6 @@ SPEC CHECKSUMS:
589589
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
590590
Yoga: b76f1acfda8212aa16b7e26bcce3983230c82603
591591

592-
PODFILE CHECKSUM: a0a692acf4827473693e5d8de3ca917e2e2df417
592+
PODFILE CHECKSUM: 870582483dda68180ae1f996147f31dc3551ce31
593593

594594
COCOAPODS: 1.13.0

0 commit comments

Comments
 (0)