乐康守护APP代码仓库
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.

114 lines
3.3 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: 'org.greenrobot.greendao'
android {
signingConfigs {
lekong {
keyAlias 'lekong'
keyPassword '16263088'
storeFile file('lekong.jks')
storePassword '16263088'
}
flavorDimensions "channel"
}
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
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"
}
flavorDimensions "channel"
buildTypes {
debug {
signingConfig signingConfigs.lekong
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.lekong
}
}
sourceSets {
main {
if (isDebug.toBoolean()) {
manifest.srcFile 'src/main/debug/AndroidManifest.xml'
} else {
manifest.srcFile 'src/main/release/AndroidManifest.xml'
java {
exclude 'debug/**'
}
}
assets.srcDirs = ['src/main/assets', 'src/main/assets/']
}
}
resourcePrefix 'module_location_'
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1'
}
publishNonDefault true
productFlavors {
yisai {
dimension "channel"
}
}
}
repositories {
flatDir {
dirs project(':baselibrary').file('libs')
}
}
greendao {
schemaVersion 6
daoPackage 'com.cyrus.location.dao.gen'
targetGenDir 'src/main/java'
}
dependencies {
// compile fileTree(include: ['*.jar'], dir: 'libs')
api project(':baselibrary')
api project(':chatlibrary')
api 'com.amap.api:3dmap:7.9.1'
//定位功能
api 'com.amap.api:location:3.7.0'
//搜索功能
api 'com.amap.api:search:6.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
api 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-14'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-all:1.10.19'
androidTestImplementation 'org.mockito:mockito-core:1.10.19'
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0'
implementation 'com.jakewharton:butterknife:9.0.0'
annotationProcessor 'com.google.dagger:dagger-compiler:2.10'
// compile 'com.android.support.constraint:constraint-layout:2.0.0-alpha2'
// compile 'com.github.LRH1993:AutoFlowLayout:1.0.5'
}