2023-01-13 13:22:25 +01:00
|
|
|
plugins {
|
2023-01-15 06:04:37 +01:00
|
|
|
id "com.android.library"
|
|
|
|
id "org.jetbrains.kotlin.android"
|
2023-01-13 13:22:25 +01:00
|
|
|
|
2023-01-15 06:04:37 +01:00
|
|
|
// apply plugin: "kotlin-android"
|
|
|
|
// apply plugin: "kotlin-kapt"
|
2023-01-14 11:19:01 +01:00
|
|
|
// import java.text.SimpleDateFormat
|
2023-01-15 06:04:37 +01:00
|
|
|
// apply plugin: "com.android.application"
|
|
|
|
// apply plugin: "org.jetbrains.kotlin.plugin.serialization"
|
|
|
|
// apply plugin: "com.google.gms.google-services"
|
2023-01-13 13:22:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2023-01-15 06:04:37 +01:00
|
|
|
namespace "jp.juggler.base"
|
2023-02-01 17:11:39 +01:00
|
|
|
compileSdk stCompileSdkVersion
|
2023-01-13 13:22:25 +01:00
|
|
|
|
|
|
|
defaultConfig {
|
2023-02-01 17:11:39 +01:00
|
|
|
minSdk stMinSdkVersion
|
|
|
|
targetSdk stTargetSdkVersion
|
2023-01-13 13:22:25 +01:00
|
|
|
|
|
|
|
consumerProguardFiles "consumer-rules.pro"
|
2023-01-17 13:42:47 +01:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2023-01-13 13:22:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
2023-01-15 06:04:37 +01:00
|
|
|
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
|
2023-01-13 13:22:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
coreLibraryDesugaringEnabled true
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlinOptions {
|
2023-02-01 17:11:39 +01:00
|
|
|
jvmTarget = kotlinJvmTarget
|
2023-01-13 13:22:25 +01:00
|
|
|
}
|
2023-01-17 13:42:47 +01:00
|
|
|
packagingOptions {
|
2023-01-26 16:54:04 +01:00
|
|
|
jniLibs {
|
2023-02-01 17:11:39 +01:00
|
|
|
excludes += ["META-INF/LICENSE*"]
|
2023-01-26 16:54:04 +01:00
|
|
|
}
|
|
|
|
resources {
|
2023-02-01 17:11:39 +01:00
|
|
|
excludes += ["META-INF/LICENSE*"]
|
2023-01-26 16:54:04 +01:00
|
|
|
}
|
2023-01-17 13:42:47 +01:00
|
|
|
}
|
2023-01-13 13:22:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// desugar_jdk_libs 2.0.0 は AGP 7.4.0-alpha10 以降を要求する
|
|
|
|
//noinspection GradleDependency
|
2023-02-01 17:11:39 +01:00
|
|
|
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:$desugarLibVersion"
|
2023-01-13 13:22:25 +01:00
|
|
|
|
2023-01-14 12:20:24 +01:00
|
|
|
def emoji2Version = "1.2.0"
|
|
|
|
|
2023-02-01 17:11:39 +01:00
|
|
|
api "androidx.appcompat:appcompat:$appcompatVersion"
|
2023-01-15 06:04:37 +01:00
|
|
|
api "androidx.browser:browser:1.4.0"
|
2023-02-01 17:11:39 +01:00
|
|
|
api "androidx.core:core-ktx:$coreKtxVersion"
|
2023-01-14 12:20:24 +01:00
|
|
|
api "androidx.drawerlayout:drawerlayout:1.1.1"
|
2023-01-15 06:04:37 +01:00
|
|
|
api "androidx.emoji2:emoji2-bundled:$emoji2Version"
|
|
|
|
api "androidx.emoji2:emoji2-views-helper:$emoji2Version"
|
|
|
|
api "androidx.emoji2:emoji2-views:$emoji2Version"
|
|
|
|
api "androidx.emoji2:emoji2:$emoji2Version"
|
2023-01-14 12:20:24 +01:00
|
|
|
api "androidx.exifinterface:exifinterface:1.3.5"
|
2023-02-01 17:11:39 +01:00
|
|
|
api "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"
|
|
|
|
api "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
|
|
|
|
api "androidx.lifecycle:lifecycle-process:$lifecycleVersion"
|
|
|
|
api "androidx.lifecycle:lifecycle-reactivestreams-ktx:$lifecycleVersion"
|
|
|
|
api "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion"
|
|
|
|
api "androidx.lifecycle:lifecycle-service:$lifecycleVersion"
|
|
|
|
api "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
|
|
|
|
api "androidx.lifecycle:lifecycle-viewmodel-savedstate:$lifecycleVersion"
|
2023-01-15 06:04:37 +01:00
|
|
|
api "androidx.recyclerview:recyclerview:1.2.1"
|
2023-02-01 17:11:39 +01:00
|
|
|
api "androidx.startup:startup-runtime:$startupVersion"
|
2023-01-15 06:04:37 +01:00
|
|
|
api "androidx.work:work-runtime-ktx:$workVersion"
|
|
|
|
api "androidx.work:work-runtime:$workVersion"
|
|
|
|
api "com.astuetz:pagerslidingtabstrip:1.0.1"
|
|
|
|
api "com.caverock:androidsvg-aar:1.4"
|
|
|
|
api "com.github.hadilq:live-event:1.3.0"
|
|
|
|
api "com.github.kenglxn.QRGen:android:2.5.0"
|
|
|
|
api "com.github.omadahealth:swipy:1.2.3@aar"
|
|
|
|
api "com.github.woxthebox:draglistview:1.6.6"
|
|
|
|
api "com.google.android.exoplayer:exoplayer:2.18.2"
|
|
|
|
api "com.google.android.flexbox:flexbox:3.0.0"
|
2023-02-01 17:11:39 +01:00
|
|
|
api "com.google.android.material:material:$materialVersion"
|
2023-01-15 06:04:37 +01:00
|
|
|
api "com.google.firebase:firebase-messaging:23.1.1"
|
|
|
|
api "com.otaliastudios:transcoder:0.10.4"
|
|
|
|
api "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
|
|
|
api "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
2023-02-01 17:11:39 +01:00
|
|
|
api "commons-codec:commons-codec:1.15"
|
2023-01-15 06:04:37 +01:00
|
|
|
api "io.github.inflationx:calligraphy3:3.1.1"
|
|
|
|
api "io.github.inflationx:viewpump:2.0.3"
|
2023-02-01 19:07:26 +01:00
|
|
|
api "org.bouncycastle:bcprov-jdk15on:1.70"
|
2023-02-01 17:11:39 +01:00
|
|
|
api "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
|
|
|
|
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinxCoroutinesVersion"
|
|
|
|
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion"
|
|
|
|
api "org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$kotlinxCoroutinesVersion"
|
2023-02-04 21:52:26 +01:00
|
|
|
api "org.jetbrains.kotlinx:kotlinx-datetime:0.4.0"
|
2023-01-26 16:54:04 +01:00
|
|
|
api "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1"
|
2023-01-15 06:04:37 +01:00
|
|
|
api "ru.gildor.coroutines:kotlin-coroutines-okhttp:1.0"
|
2023-01-14 12:20:24 +01:00
|
|
|
|
2023-02-01 17:11:39 +01:00
|
|
|
|
2023-01-14 12:20:24 +01:00
|
|
|
// Koin main features for Android
|
2023-02-01 17:11:39 +01:00
|
|
|
api "io.insert-koin:koin-android:$koinVersion"
|
|
|
|
api "io.insert-koin:koin-android-compat:$koinVersion"
|
|
|
|
api "io.insert-koin:koin-androidx-workmanager:$koinVersion"
|
|
|
|
// api "io.insert-koin:koin-androidx-navigation:$koinVersion"
|
|
|
|
// api "io.insert-koin:koin-androidx-compose:$koinVersion"
|
2023-01-14 12:20:24 +01:00
|
|
|
|
|
|
|
api "com.github.bumptech.glide:glide:$glideVersion"
|
|
|
|
api "com.github.bumptech.glide:annotations:$glideVersion"
|
|
|
|
api("com.github.bumptech.glide:okhttp3-integration:$glideVersion") {
|
2023-01-15 06:04:37 +01:00
|
|
|
exclude group: "com.squareup.okhttp3", module: "okhttp"
|
2023-01-14 12:20:24 +01:00
|
|
|
}
|
|
|
|
|
2023-02-01 17:11:39 +01:00
|
|
|
androidTestApi "androidx.test.espresso:espresso-core:$androidxTestEspressoCoreVersion"
|
2023-01-15 08:51:13 +01:00
|
|
|
androidTestApi "androidx.test.ext:junit-ktx:1.1.5"
|
2023-02-01 17:11:39 +01:00
|
|
|
androidTestApi "androidx.test.ext:junit:$androidxTestExtJunitVersion"
|
2023-01-15 08:51:13 +01:00
|
|
|
androidTestApi "androidx.test.ext:truth:1.5.0"
|
2023-02-01 17:11:39 +01:00
|
|
|
androidTestApi "androidx.test:core-ktx:$testKtxVersion"
|
|
|
|
androidTestApi "androidx.test:core:$androidxTestVersion"
|
2023-01-15 08:51:13 +01:00
|
|
|
androidTestApi "androidx.test:runner:1.5.2"
|
2023-01-15 06:04:37 +01:00
|
|
|
androidTestApi "org.jetbrains.kotlin:kotlin-test"
|
2023-02-01 17:11:39 +01:00
|
|
|
androidTestApi "org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinxCoroutinesVersion"
|
|
|
|
testApi "androidx.arch.core:core-testing:$archVersion"
|
|
|
|
testApi "junit:junit:$junitVersion"
|
2023-01-17 13:42:47 +01:00
|
|
|
testApi "org.jetbrains.kotlin:kotlin-test"
|
2023-02-01 17:11:39 +01:00
|
|
|
testApi "org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinxCoroutinesVersion"
|
2023-01-14 12:20:24 +01:00
|
|
|
|
2023-01-15 08:51:13 +01:00
|
|
|
// To use android test orchestrator
|
|
|
|
androidTestUtil "androidx.test:orchestrator:1.4.2"
|
|
|
|
|
2023-01-14 12:20:24 +01:00
|
|
|
testApi("com.squareup.okhttp3:mockwebserver:$okhttpVersion") {
|
2023-01-15 06:04:37 +01:00
|
|
|
exclude group: "com.squareup.okio", module: "okio"
|
|
|
|
exclude group: "com.squareup.okhttp3", module: "okhttp"
|
|
|
|
exclude group: "org.jetbrains.kotlin", module: "kotlin-stdlib-common"
|
|
|
|
exclude group: "org.jetbrains.kotlin", module: "kotlin-stdlib"
|
|
|
|
exclude group: "org.jetbrains.kotlin", module: "kotlin-stdlib-jdk8"
|
2023-01-14 12:20:24 +01:00
|
|
|
}
|
|
|
|
androidTestApi("com.squareup.okhttp3:mockwebserver:$okhttpVersion") {
|
2023-01-15 06:04:37 +01:00
|
|
|
exclude group: "com.squareup.okio", module: "okio"
|
|
|
|
exclude group: "com.squareup.okhttp3", module: "okhttp"
|
|
|
|
exclude group: "org.jetbrains.kotlin", module: "kotlin-stdlib-common"
|
|
|
|
exclude group: "org.jetbrains.kotlin", module: "kotlin-stdlib"
|
|
|
|
exclude group: "org.jetbrains.kotlin", module: "kotlin-stdlib-jdk8"
|
2023-01-14 12:20:24 +01:00
|
|
|
}
|
2023-02-01 17:11:39 +01:00
|
|
|
|
|
|
|
// conscrypt をUnitテストするための指定
|
|
|
|
// https://github.com/google/conscrypt/issues/649
|
|
|
|
|
2023-02-01 19:07:26 +01:00
|
|
|
api "org.conscrypt:conscrypt-android:$conscryptVersion"
|
2023-01-14 12:20:24 +01:00
|
|
|
}
|