diff --git a/native/android/build.gradle b/native/android/build.gradle index bf4cd87c8..701a756bb 100644 --- a/native/android/build.gradle +++ b/native/android/build.gradle @@ -1,59 +1,59 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { - buildToolsVersion = "33.0.0" + buildToolsVersion = "34.0.0" minSdkVersion = 23 - compileSdkVersion = 33 - targetSdkVersion = 33 + compileSdkVersion = 34 + targetSdkVersion = 34 if (System.properties['os.arch'] == "aarch64") { // For M1 Users we need to use the NDK 24 which added support for aarch64 ndkVersion = "24.0.8215888" } else { // Otherwise we default to the side-by-side NDK version from AGP. ndkVersion = "21.4.7075529" } } repositories { google() mavenCentral() } dependencies { classpath("com.android.tools.build:gradle:7.2.2") classpath("com.facebook.react:react-native-gradle-plugin") classpath("de.undercouch:gradle-download-task:5.0.1") classpath("com.google.gms:google-services:4.3.14") classpath('org.ajoberstar:grgit:1.7.2') // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } ext { ffmpegKitPackage = "min-lts" } allprojects { repositories { maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url(new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../android")) } maven { // Android JSC is installed from npm url(new File(["node", "--print", "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), "../dist")) } mavenCentral { // We don't want to fetch react-native from Maven Central as there are // older versions over there. content { excludeGroup "com.facebook.react" } } google() gradlePluginPortal() maven { url 'https://www.jitpack.io' } jcenter() } } diff --git a/native/expo-modules/comm-expo-package/android/build.gradle b/native/expo-modules/comm-expo-package/android/build.gradle index 03469f872..299ec524f 100644 --- a/native/expo-modules/comm-expo-package/android/build.gradle +++ b/native/expo-modules/comm-expo-package/android/build.gradle @@ -1,96 +1,96 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'maven-publish' group = 'app.comm.android.expo' version = '0.0.1' buildscript { def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle") if (expoModulesCorePlugin.exists()) { apply from: expoModulesCorePlugin applyKotlinExpoModulesCorePlugin() } // Simple helper that allows the root project to override versions declared by this library. ext.safeExtGet = { prop, fallback -> rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback } // Ensures backward compatibility ext.getKotlinVersion = { if (ext.has("kotlinVersion")) { ext.kotlinVersion() } else { ext.safeExtGet("kotlinVersion", "1.6.10") } } repositories { mavenCentral() } dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${getKotlinVersion()}") } } // Creating sources with comments task androidSourcesJar(type: Jar) { classifier = 'sources' from android.sourceSets.main.java.srcDirs } afterEvaluate { publishing { publications { release(MavenPublication) { from components.release // Add additional sourcesJar to artifacts artifact(androidSourcesJar) } } repositories { maven { url = mavenLocal().url } } } } android { - compileSdkVersion safeExtGet("compileSdkVersion", 33) + compileSdkVersion safeExtGet("compileSdkVersion", 34) compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } kotlinOptions { jvmTarget = JavaVersion.VERSION_11.majorVersion } defaultConfig { minSdkVersion safeExtGet("minSdkVersion", 23) - targetSdkVersion safeExtGet("targetSdkVersion", 33) + targetSdkVersion safeExtGet("targetSdkVersion", 34) versionCode 1 versionName "0.1.0" } lintOptions { abortOnError false } } repositories { mavenCentral() } dependencies { implementation project(':expo-modules-core') implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}" implementation 'com.facebook.react:react-native:+' // dependencies of AndroidLifecycleModule implementation "androidx.lifecycle:lifecycle-runtime:2.5.1" implementation "androidx.lifecycle:lifecycle-process:2.5.1" }