1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2024-12-22 23:28:15 +01:00

firebase-messagingのDuplicatePlatformClasses対策を見直す

This commit is contained in:
tateisu 2022-03-14 09:16:44 +09:00
parent 1c876dd739
commit f8f964cbfb
2 changed files with 10 additions and 11 deletions

View File

@ -42,8 +42,8 @@ android {
"-Xopt-in=kotlin.ExperimentalStdlibApi",
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi",
"-Xopt-in=androidx.compose.foundation.ExperimentalFoundationApi",
"-Xopt-in=androidx.compose.animation.ExperimentalAnimationApi",
// "-Xopt-in=androidx.compose.foundation.ExperimentalFoundationApi",
// "-Xopt-in=androidx.compose.animation.ExperimentalAnimationApi",
]
}
@ -103,6 +103,10 @@ android {
useLibrary 'android.test.base'
useLibrary 'android.test.mock'
lintOptions {
warning 'DuplicatePlatformClasses'
}
}
static def gitBranch() {
@ -166,12 +170,7 @@ dependencies {
kapt 'androidx.annotation:annotation:1.3.0'
// https://firebase.google.com/support/release-notes/android
implementation("com.google.firebase:firebase-messaging:23.0.1") {
//noinspection DuplicatePlatformClasses,DuplicatePlatformClasses
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
//noinspection DuplicatePlatformClasses,DuplicatePlatformClasses
exclude group: 'commons-logging', module: 'commons-logging'
}
implementation "com.google.firebase:firebase-messaging:23.0.1"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"

View File

@ -39,9 +39,9 @@ android {
freeCompilerArgs += [
"-Xopt-in=kotlin.ExperimentalStdlibApi",
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi",
"-Xopt-in=androidx.compose.foundation.ExperimentalFoundationApi",
"-Xopt-in=androidx.compose.animation.ExperimentalAnimationApi",
// "-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi",
// "-Xopt-in=androidx.compose.foundation.ExperimentalFoundationApi",
// "-Xopt-in=androidx.compose.animation.ExperimentalAnimationApi",
]
}
}