diff --git a/modules/background-downloader/android/build.gradle b/modules/background-downloader/android/build.gradle index 1b273d728..f2987348e 100644 --- a/modules/background-downloader/android/build.gradle +++ b/modules/background-downloader/android/build.gradle @@ -1,46 +1,20 @@ -plugins { - id 'com.android.library' - id 'kotlin-android' -} +apply plugin: 'expo-module-gradle-plugin' group = 'expo.modules.backgrounddownloader' version = '1.0.0' -def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle") -def kotlinVersion = findProperty('android.kotlinVersion') ?: '1.9.25' - -apply from: expoModulesCorePlugin - -applyKotlinExpoModulesCorePlugin() -useDefaultAndroidSdkVersions() -useCoreDependencies() -useExpoPublishing() +expoModule { + canBePublished false +} android { namespace "expo.modules.backgrounddownloader" - - compileOptions { - sourceCompatibility JavaVersion.VERSION_17 - targetCompatibility JavaVersion.VERSION_17 - } - - kotlinOptions { - jvmTarget = "17" - } - - lintOptions { - abortOnError false + defaultConfig { + versionCode 1 + versionName "1.0.0" } } dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion" implementation "com.squareup.okhttp3:okhttp:4.12.0" } - -tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach { - kotlinOptions { - jvmTarget = "17" - } -} -