diff --git a/android/build.gradle b/android/build.gradle index 4a3e823..20d4c9d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,13 +1,13 @@ buildscript { - ext.kotlinVersion = "1.5.30" + def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['ExperimentReactNativeClient_kotlinVersion'] repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:3.5.3' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" + classpath 'com.android.tools.build:gradle:7.2.2' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } @@ -19,11 +19,11 @@ def safeExtGet(prop, fallback) { } android { - compileSdkVersion safeExtGet('ExperimentReactNativeClient_compileSdkVersion', 29) - buildToolsVersion safeExtGet('ExperimentReactNativeClient_buildToolsVersion', '29.0.2') + compileSdkVersion safeExtGet('ExperimentReactNativeClient_compileSdkVersion', 31) + buildToolsVersion safeExtGet('ExperimentReactNativeClient_buildToolsVersion', '31.0.0') defaultConfig { - minSdkVersion safeExtGet('ExperimentReactNativeClient_minSdkVersion', 16) - targetSdkVersion safeExtGet('ExperimentReactNativeClient_targetSdkVersion', 29) + minSdkVersion safeExtGet('ExperimentReactNativeClient_minSdkVersion', 21) + targetSdkVersion safeExtGet('ExperimentReactNativeClient_targetSdkVersion', 31) versionCode 1 versionName "1.0" diff --git a/android/gradle.properties b/android/gradle.properties index 0695add..aeefd0f 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,3 +1,7 @@ +ExperimentReactNativeClient_kotlinVersion=1.6.21 +ExperimentReactNativeClient_compileSdkVersion=31 +ExperimentReactNativeClient_buildToolsVersion=31.0.0 +ExperimentReactNativeClient_targetSdkVersion=31 android.useAndroidX=true android.enableJetifier=true kotlin.code.style=official