diff --git a/app/build.gradle b/app/build.gradle index c01769cf..57aa29ab 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,5 +1,21 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget +buildscript { + def localProperties = new Properties() + def localPropertiesFile = rootProject.file('local.properties') + + if (localPropertiesFile.exists()) { + localPropertiesFile.withInputStream { stream -> + localProperties.load(stream) + } + } + + ext.daroAppKey = project.findProperty('daroAppKey') + ?: localProperties.getProperty('daroAppKey') + ?: System.getenv('DARO_APP_KEY') + ?: '' +} + plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' @@ -11,6 +27,7 @@ plugins { id 'org.jlleitschuh.gradle.ktlint' id 'com.google.firebase.crashlytics' + id 'so.daro.a' } android { @@ -128,6 +145,7 @@ android { } } compileOptions { + coreLibraryDesugaringEnabled true sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } @@ -156,7 +174,7 @@ dependencies { } // image library - implementation "io.coil-kt:coil:1.4.0" + implementation "io.coil-kt:coil:2.7.0" // Koin DI implementation "io.insert-koin:koin-android:3.1.3" @@ -249,6 +267,10 @@ dependencies { exclude group: "org.jetbrains.kotlin", module: "kotlin-android-extensions-runtime" } + // Daro + implementation 'so.daro:daro-a:1.5.3' + coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4' + // ----- Test dependencies ----- testImplementation 'junit:junit:4.13.2' testImplementation 'org.mockito:mockito-core:5.20.0' diff --git a/build.gradle b/build.gradle index 75aee422..5aa2fa14 100644 --- a/build.gradle +++ b/build.gradle @@ -12,6 +12,7 @@ buildscript { dependencies { classpath 'com.google.android.gms:oss-licenses-plugin:0.10.6' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath 'so.daro:daro-plugin:1.0.13' } } diff --git a/settings.gradle b/settings.gradle index 3d7d0d0d..303b3aed 100644 --- a/settings.gradle +++ b/settings.gradle @@ -12,6 +12,10 @@ dependencyResolutionManagement { mavenCentral() maven { url 'https://jitpack.io' } maven { url = "https://devrepo.kakao.com/nexus/content/groups/public/" } + maven { url 'https://artifact.bytedance.com/repository/pangle' } + maven { url 'https://cboost.jfrog.io/artifactory/chartboost-ads/' } + maven { url 'https://android-sdk.is.com/' } + maven { url 'https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea' } gradlePluginPortal() } }