diff --git a/android/build.gradle b/android/build.gradle index e159cc8..c78180e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,65 +1,65 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim()) buildscript { ext.kotlin_version = '1.6.0' ext { minSdkVersion = 26 compileSdkVersion = 30 - targetSdkVersion = 31 + targetSdkVersion = 33 supportLibVersion = "30.0.0" } repositories { google() jcenter() } dependencies { classpath('com.android.tools.build:gradle:4.2.2') // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files classpath 'com.google.gms:google-services:4.2.0' // Google Services plugin classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } subprojects { subproject -> afterEvaluate { project -> if (project.hasProperty("android")) { android { compileSdkVersion = 30 } } } } allprojects { configurations.all { resolutionStrategy { // Remove this override in 0.66, as a proper fix is included in react-native itself. force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION } } repositories { mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } maven { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") } maven { url 'https://repo.sovrin.org/repository/maven-public' } google() jcenter() maven { url 'https://maven.google.com' } maven { url 'https://jitpack.io' } } }