Слияние кода завершено, страница обновится автоматически
apply from: "../base.gradle"
// 通用配置
android {
defaultConfig {
multiDexEnabled true
javaCompileOptions {
annotationProcessorOptions {
arguments = [
rxhttp_rxjava: parent.ext.rxJava, // RxJava 版本 可传入rxjava2、rxjava3
rxhttp_package: 'rxhttp.wrapper.param'
]
}
}
}
applicationVariants.all { variant ->
variant.outputs.all { output -> // each 改为 all
def fileName = android.defaultConfig.applicationId+"_release.apk"
fileName = fileName.replaceAll("the.one.","")
def outFile = output.outputFile
if (outFile != null && outFile.name.endsWith('.apk')) {
outputFileName = fileName // output.outputFile 改为 outputFileName
}
}
}
signingConfigs {
release {
storeFile file("..\\keystore\\theone.jks")
storePassword "areyoutheone"
keyAlias "areyou"
keyPassword "areyoutheone"
}
}
buildTypes {
debug {
debuggable false
minifyEnabled false
signingConfig signingConfigs.release
}
release {
signingConfig signingConfigs.release
minifyEnabled true
// 移除无用的resource文件
shrinkResources true
// Zipalign优化
zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
configurations.all {
resolutionStrategy {
force "com.github.bumptech.glide:glide:$glideVersion"
force "com.squareup.okhttp3:okhttp:$okhttpVersion"
force "io.reactivex.rxjava3:rxjava:$rxjavaVersion"
force "io.reactivex.rxjava3:rxandroid:$rxandroidVersion"
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation fileTree(include: ['*.aar'], dir: 'libs')
implementation project(':base')
kapt "com.jakewharton:butterknife-compiler:$butterknifeVersion"
kapt "com.ljx.rxhttp:rxhttp-compiler:$rxhttpVersion" //生成RxHttp类
}
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )