diff --git a/android/build.gradle b/android/build.gradle index 25039597..d535e54e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,9 +1,9 @@ buildscript { ext { - buildToolsVersion = "35.0.0" + buildToolsVersion = "37.0.0" minSdkVersion = 24 - compileSdkVersion = 35 - targetSdkVersion = 35 + compileSdkVersion = 37 + targetSdkVersion = 37 kotlinVersion = "1.9.24" excludeAppGlideModule = true androidx_lifecycle_version = "2.8.6" @@ -77,6 +77,17 @@ allprojects { maven { url "https://packages.rnd.mendix.com/jcenter" } } + // android.hardware.fingerprint was removed from the SDK 37 android.jar. + // react-native-touch-id 4.4.1 still compiles against it, so pin that module to SDK 36. + if (project.name == 'react-native-touch-id') { + project.afterEvaluate { + if (project.extensions.findByName('android')) { + project.android.compileSdkVersion 36 + project.android.buildToolsVersion '36.0.0' + } + } + } + // Build all modules with Android 16KB pages enabled plugins.withId('com.android.application') { android { diff --git a/android/gradle.properties b/android/gradle.properties index 5242dcc4..6fc525ca 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -21,7 +21,7 @@ android.enableJetifier=true org.gradle.configureondemand=true android.disableResourceValidation=true android.nonTransitiveRClass=true -android.suppressUnsupportedCompileSdk=33 +android.suppressUnsupportedCompileSdk=33,37 # enabled by default in RN 0.76 so we need to disable it explicitly newArchEnabled=false hermesEnabled=true