apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'maven-publish' group = 'host.exp.exponent' version = '1.4.0' def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle") if (expoModulesCorePlugin.exists()) { apply from: expoModulesCorePlugin applyKotlinExpoModulesCorePlugin() } buildscript { // 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.8.10") } } repositories { mavenCentral() } dependencies { classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${getKotlinVersion()}") } } afterEvaluate { publishing { publications { release(MavenPublication) { from components.release } } repositories { maven { url = mavenLocal().url } } } } android { // Remove this if and it's contents, when support for SDK49 is dropped if (!safeExtGet("expoProvidesDefaultConfig", false)) { compileSdkVersion safeExtGet("compileSdkVersion", 33) defaultConfig { minSdkVersion safeExtGet("minSdkVersion", 23) targetSdkVersion safeExtGet("targetSdkVersion", 33) } lintOptions { abortOnError false } } def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION if (agpVersion.tokenize('.')[0].toInteger() < 8) { compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } kotlinOptions { jvmTarget = JavaVersion.VERSION_11.majorVersion } } namespace "expo.interfaces.devmenu" defaultConfig { versionCode 6 versionName '1.4.0' } publishing { singleVariant("release") { withSourcesJar() } } } dependencies { //noinspection GradleDynamicVersion implementation 'com.facebook.react:react-native:+' implementation 'com.squareup.okhttp3:okhttp:3.14.9' implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3" }