Skip to content

Commit

Permalink
feat!: drop support for react-native 0.64, 0.65
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Dropped support for `react-native` 0.64, 0.65
  • Loading branch information
tido64 committed Oct 24, 2023
1 parent 88c2144 commit d307e16
Show file tree
Hide file tree
Showing 20 changed files with 217 additions and 315 deletions.
2 changes: 1 addition & 1 deletion ReactTestApp-DevSupport.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
version = package['version']

Pod::Spec.new do |s|
s.name = 'ReactTestApp-DevSupport'
s.name = File.basename(__FILE__, '.podspec')
s.version = version
s.author = { package['author']['name'] => package['author']['email'] }
s.license = package['license']
Expand Down
18 changes: 0 additions & 18 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,6 @@ repositories {
mavenCentral()
google()

// TODO: Remove this block when we drop support for 0.64.
if (reactNativeVersion > 0 && reactNativeVersion < v(0, 65, 0)) {
// Artifacts for 0.65+ are published to Maven Central. If we're on an
// older version, we still need to use JCenter.
// noinspection JcenterRepositoryObsolete
jcenter() {
content {
includeGroup("com.facebook.fbjni")
includeGroup("com.facebook.flipper")
includeGroup("com.facebook.fresco")
includeGroup("com.facebook.yoga")
}
}
}

// https://github.com/AzureAD/microsoft-authentication-library-for-android#step-1-declare-dependency-on-msal
maven {
url = uri("https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1")
Expand Down Expand Up @@ -310,9 +295,6 @@ android {
// TODO: Remove this block when we drop support for 0.67
project.ext.react.enableFabric ? "src/fabric/java" : "src/no-fabric/java",

// TODO: Remove this block when we drop support for 0.65
enableNewArchitecture ? "src/turbomodule/java" : "src/no-turbomodule/java",

// TODO: Remove this block when we drop support for 0.67
// https://github.com/facebook/react-native/commit/ce74aa4ed335d4c36ce722d47937b582045e05c4
reactNativeVersion > 0 && reactNativeVersion < v(0, 68, 0)
Expand Down

This file was deleted.

This file was deleted.

11 changes: 3 additions & 8 deletions android/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,9 @@ static String getKspVersion(String kotlinVersion) {
ext {
apply(from: "${buildscript.sourceFile.getParent()}/test-app-util.gradle")

reactNativeVersion = getPackageVersionNumber("react-native", rootDir)

compileSdkVersion = 34
minSdkVersion = 23

// A bug in an older version of OkHttp causes it to throw 'expected Android
// API level 21+ but was 33'.
// TODO: Remove when we drop support for 0.64
targetSdkVersion = reactNativeVersion > 0 && reactNativeVersion < v(0, 65, 0) ? 29 : 33
targetSdkVersion = 33

/**
* Returns the recommended Gradle plugin version for the specified React Native
Expand Down Expand Up @@ -70,6 +64,7 @@ ext {
}
}

reactNativeVersion = getPackageVersionNumber("react-native", rootDir)
autodetectReactNativeVersion = reactNativeVersion == 0 || reactNativeVersion >= v(0, 71, 0)
enableNewArchitecture = isNewArchitectureEnabled(project)
usePrefabs = reactNativeVersion == 0 || reactNativeVersion >= v(0, 71, 0)
Expand All @@ -86,7 +81,7 @@ ext {
} else if (System.properties["os.arch"] == "aarch64" && androidPluginVersion == "7.2.2") {
// NDK r23c has been patched to support Apple M1 and is default in AGP
// 7.3.0. Prior to 0.71, we still need to set `ndkVersion` because we'll
// be using AGP 7.2.2 (see `androidPluginVersion` below).
// be using AGP 7.2.2 (see `androidPluginVersion` above).
// Note that even though newer 23.x versions exist, we'll stick to AGP's
// default. See also
// https://developer.android.com/studio/releases/gradle-plugin#compatibility-7-3-0
Expand Down
2 changes: 1 addition & 1 deletion example/Example-Tests.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require 'json'
package = JSON.parse(File.read(File.join('..', 'package.json')))

Pod::Spec.new do |s|
s.name = 'Example-Tests'
s.name = File.basename(__FILE__, '.podspec')
s.version = package['version']
s.author = { package['author']['name'] => package['author']['email'] }
s.license = package['license']
Expand Down
Loading

0 comments on commit d307e16

Please sign in to comment.