SubwayTooter-Android-App/base/build.gradle

155 lines
6.5 KiB
Groovy
Raw Normal View History

plugins {
2023-01-15 06:04:37 +01:00
id "com.android.library"
id "org.jetbrains.kotlin.android"
2023-01-15 06:04:37 +01:00
// apply plugin: "kotlin-android"
// apply plugin: "kotlin-kapt"
// 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"
}
android {
2023-01-15 06:04:37 +01:00
namespace "jp.juggler.base"
compileSdk stCompileSdkVersion
defaultConfig {
minSdk stMinSdkVersion
targetSdk stTargetSdkVersion
consumerProguardFiles "consumer-rules.pro"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
2023-01-15 06:04:37 +01:00
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
coreLibraryDesugaringEnabled true
}
kotlinOptions {
jvmTarget = kotlinJvmTarget
}
packagingOptions {
2023-01-26 16:54:04 +01:00
jniLibs {
excludes += ["META-INF/LICENSE*"]
2023-01-26 16:54:04 +01:00
}
resources {
excludes += ["META-INF/LICENSE*"]
2023-01-26 16:54:04 +01:00
}
}
}
dependencies {
// desugar_jdk_libs 2.0.0 は AGP 7.4.0-alpha10 以降を要求する
//noinspection GradleDependency
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:$desugarLibVersion"
def emoji2Version = "1.2.0"
api "androidx.appcompat:appcompat:$appcompatVersion"
2023-01-15 06:04:37 +01:00
api "androidx.browser:browser:1.4.0"
api "androidx.core:core-ktx:$coreKtxVersion"
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"
api "androidx.exifinterface:exifinterface:1.3.5"
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"
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"
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"
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"
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"
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"
// Koin main features for Android
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"
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"
}
androidTestApi "androidx.test.espresso:espresso-core:$androidxTestEspressoCoreVersion"
androidTestApi "androidx.test.ext:junit-ktx:1.1.5"
androidTestApi "androidx.test.ext:junit:$androidxTestExtJunitVersion"
androidTestApi "androidx.test.ext:truth:1.5.0"
androidTestApi "androidx.test:core-ktx:$testKtxVersion"
androidTestApi "androidx.test:core:$androidxTestVersion"
androidTestApi "androidx.test:runner:1.5.2"
2023-01-15 06:04:37 +01:00
androidTestApi "org.jetbrains.kotlin:kotlin-test"
androidTestApi "org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinxCoroutinesVersion"
testApi "androidx.arch.core:core-testing:$archVersion"
testApi "junit:junit:$junitVersion"
testApi "org.jetbrains.kotlin:kotlin-test"
testApi "org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinxCoroutinesVersion"
// To use android test orchestrator
androidTestUtil "androidx.test:orchestrator:1.4.2"
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"
}
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"
}
// conscrypt をUnitテストするための指定
// https://github.com/google/conscrypt/issues/649
2023-02-01 19:07:26 +01:00
api "org.conscrypt:conscrypt-android:$conscryptVersion"
}