Migrate to open source firebase-crashlytics
This commit is contained in:
@@ -1,20 +1,11 @@
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'com.google.firebase.crashlytics'
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
|
||||
if (!getGradle().getStartParameter().getTaskRequests().toString().contains("Fdroid")) {
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
apply plugin: 'io.fabric'
|
||||
}
|
||||
|
||||
def javaVersion = JavaVersion.VERSION_1_8
|
||||
def aux = [
|
||||
'com.crashlytics.sdk.android:crashlytics:2.10.1',
|
||||
'com.google.firebase:firebase-analytics:17.2.2',
|
||||
]
|
||||
def lifecycleVersion = '2.2.0'
|
||||
def roomVersion = '2.2.3'
|
||||
|
||||
android {
|
||||
compileSdkVersion 29
|
||||
@@ -29,8 +20,8 @@ android {
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 29
|
||||
resConfigs 'it', 'ru', 'zh-rCN'
|
||||
versionCode 220
|
||||
versionName '2.7.1'
|
||||
versionCode 221
|
||||
versionName '2.7.2'
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
javaCompileOptions.annotationProcessorOptions.arguments = [
|
||||
"room.incremental": "true",
|
||||
@@ -55,12 +46,8 @@ android {
|
||||
flavorDimensions("freedom")
|
||||
packagingOptions.exclude '**/*.kotlin_*'
|
||||
productFlavors {
|
||||
fdroid {
|
||||
dimension "freedom"
|
||||
}
|
||||
freedom {
|
||||
dimension "freedom"
|
||||
isDefault = true
|
||||
}
|
||||
google {
|
||||
dimension "freedom"
|
||||
@@ -76,6 +63,8 @@ androidExtensions {
|
||||
experimental = true
|
||||
}
|
||||
|
||||
def lifecycleVersion = '2.2.0'
|
||||
def roomVersion = '2.2.3'
|
||||
dependencies {
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.4'
|
||||
kapt "androidx.room:room-compiler:$roomVersion"
|
||||
@@ -93,6 +82,8 @@ dependencies {
|
||||
implementation 'com.android.billingclient:billing-ktx:2.1.0'
|
||||
implementation 'com.github.topjohnwu.libsu:core:2.5.1'
|
||||
implementation 'com.google.android.material:material:1.1.0-rc02'
|
||||
implementation 'com.google.firebase:firebase-analytics:17.2.2'
|
||||
implementation 'com.google.firebase:firebase-crashlytics:17.0.0-beta01'
|
||||
implementation 'com.google.zxing:core:3.4.0'
|
||||
implementation 'com.jakewharton.timber:timber:4.7.1'
|
||||
implementation 'com.linkedin.dexmaker:dexmaker:2.25.1'
|
||||
@@ -100,10 +91,6 @@ dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3'
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.3'
|
||||
for (dep in aux) {
|
||||
freedomImplementation dep
|
||||
googleImplementation dep
|
||||
}
|
||||
testImplementation 'junit:junit:4.13'
|
||||
androidTestImplementation "androidx.room:room-testing:$roomVersion"
|
||||
androidTestImplementation 'androidx.test:runner:1.2.0'
|
||||
|
||||
Reference in New Issue
Block a user