From 1288fc3878f20c018fceb2fc28d5bfd85b81528f Mon Sep 17 00:00:00 2001 From: klaus Date: Mon, 20 Apr 2026 11:46:21 +0900 Subject: [PATCH] =?UTF-8?q?build(ads):=20Daro=20=EC=A0=80=EC=9E=A5?= =?UTF-8?q?=EC=86=8C=EC=99=80=20=EC=9D=98=EC=A1=B4=EC=84=B1=20=EA=B5=AC?= =?UTF-8?q?=EC=84=B1=EC=9D=84=20=EC=B6=94=EA=B0=80=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 24 +++++++++++++++++++++++- build.gradle | 1 + settings.gradle | 4 ++++ 3 files changed, 28 insertions(+), 1 deletion(-) 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() } }