You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
2.8 KiB
98 lines
2.8 KiB
3 years ago
|
if (isDebug.toBoolean()) {
|
||
|
apply plugin: 'com.android.application'
|
||
|
} else {
|
||
|
apply plugin: 'com.android.library'
|
||
|
}
|
||
|
apply plugin: 'com.jakewharton.butterknife'
|
||
|
apply plugin: 'com.jakewharton.hugo'
|
||
|
apply plugin: 'com.mob.sdk'
|
||
|
|
||
|
android {
|
||
|
signingConfigs {
|
||
|
lekong {
|
||
|
keyAlias 'lekong'
|
||
|
keyPassword '16263088'
|
||
|
storeFile file('lekong.jks')
|
||
|
storePassword '16263088'
|
||
|
}
|
||
|
flavorDimensions "channel"
|
||
|
}
|
||
|
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
|
||
|
|
||
|
defaultConfig {
|
||
|
if (isDebug.toBoolean()) {
|
||
|
applicationId "com.lpb.lekongyun"
|
||
|
}
|
||
|
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
|
||
|
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
|
||
|
versionCode Integer.parseInt(project.VERSION_CODE)
|
||
|
versionName project.VERSION_NAME
|
||
|
|
||
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||
|
}
|
||
|
buildTypes {
|
||
|
// TODO 删
|
||
|
debug {
|
||
|
signingConfig signingConfigs.lekong
|
||
|
}
|
||
|
release {
|
||
|
minifyEnabled false
|
||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
|
// TODO 删
|
||
|
signingConfig signingConfigs.lekong
|
||
|
}
|
||
|
}
|
||
|
|
||
|
MobSDK {
|
||
|
appKey "322987b7e73df"
|
||
|
appSecret "5ef55039c3d46dbc347f71607dae4a0f"
|
||
|
SMSSDK {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
configurations.all {
|
||
|
resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1'
|
||
|
}
|
||
|
compileOptions {
|
||
|
targetCompatibility 1.8
|
||
|
sourceCompatibility 1.8
|
||
|
}
|
||
|
publishNonDefault true
|
||
|
productFlavors {
|
||
|
yisai {
|
||
|
dimension "channel"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
ext {
|
||
|
supportLibraryVersion = project.ANDROID_SUPPORT_LIBRARY_VERSION
|
||
|
}
|
||
|
|
||
|
repositories {
|
||
|
flatDir {
|
||
|
dirs project(':baselibrary').file('libs')
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
api fileTree(include: ['*.jar'], dir: 'libs')
|
||
|
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
|
||
|
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
|
||
|
exclude group: 'com.android.support', module: 'support-annotations'
|
||
|
})
|
||
|
api project(':baselibrary')
|
||
|
api project(':lib-zxing')
|
||
|
//rxpermission2
|
||
|
testImplementation 'junit:junit:4.12'
|
||
|
api 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.1@aar'
|
||
|
implementation 'com.afollestad.material-dialogs:core:0.9.1.0'
|
||
|
testImplementation 'junit:junit:4.12'
|
||
|
annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0'
|
||
|
implementation 'com.jakewharton:butterknife:9.0.0'
|
||
|
implementation 'com.kaopiz:kprogresshud:1.2.0'
|
||
|
|
||
|
annotationProcessor 'com.google.dagger:dagger-compiler:2.10'
|
||
|
api project(':deviceinfo')
|
||
|
}
|