1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/theoneee-TheBase

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
core.gradle 2.2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
theoneee Отправлено 17.11.2020 09:13 6a02802
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 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/theoneee-TheBase.git
git@api.gitlife.ru:oschina-mirror/theoneee-TheBase.git
oschina-mirror
theoneee-TheBase
theoneee-TheBase
master