Commit 157d8d2c authored by wanglei's avatar wanglei

...

parent 7cebf40b
plugins {
alias(libs.plugins.androidApplication)
alias(libs.plugins.jetbrainsKotlinAndroid)
id("com.google.gms.google-services")
id("com.google.firebase.crashlytics")
}
android {
......@@ -34,9 +36,9 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.realse
// 设置是否要自动上传
// firebaseCrashlytics {
// mappingFileUploadEnabled true
// }
firebaseCrashlytics {
mappingFileUploadEnabled true
}
}
}
compileOptions {
......@@ -51,15 +53,22 @@ android {
buildConfig true
aidl true
}
lintOptions {
// 配置lint规则文件的路径
lintConfig file("lint.xml")
// 忽略lint错误
checkReleaseBuilds false
}
}
//gradle.taskGraph.whenReady {
// tasks.each { task ->
// if (task.name.contains("uploadCrashlyticsMappingFile")) {
// task.enabled = false
// }
// }
//}
gradle.taskGraph.whenReady {
tasks.each { task ->
if (task.name.contains("uploadCrashlyticsMappingFile")) {
task.enabled = false
}
}
}
dependencies {
......
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<!-- 配置需要忽略的lint规则 -->
<issue id="KotlinApiVersion" severity="ignore" />
</lint>
\ No newline at end of file
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
dependencies {
// Add the dependency for the Crashlytics Gradle plugin
// classpath 'com.google.gms:google-services:4.3.15'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.5'
}
}
plugins {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.jetbrainsKotlinAndroid) apply false
id("com.google.gms.google-services") version "4.3.15" apply false
}
\ No newline at end of file
......@@ -20,4 +20,4 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
\ No newline at end of file
android.nonTransitiveRClass=true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment