乐康守护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.

95 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'
android {
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
defaultConfig {
if (isDebug.toBoolean()) {
applicationId "com.lepeiban.deviceinfo"
}
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 {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
if (isDebug.toBoolean()) {
manifest.srcFile 'src/main/debug/AndroidManifest.xml'
} else {
manifest.srcFile 'src/main/release/AndroidManifest.xml'
java {
exclude 'debug/**'
}
}
}
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1'
}
dataBinding {
enabled = true
}
}
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:appcompat-v7:28.0.0'
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')
api project(':image-cropper')
api project(':MPChartLib')
// api project(':badgeviewlib')
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
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'
implementation files('libs/pinyin4j-2.5.0.jar')
api 'com.jzxiang.pickerview:TimePickerDialog:0.9.9'
// implementation 'q.rorbin:badgeview:1.1.3'
api 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0-alpha-14'
api 'com.scwang.smartrefresh:SmartRefreshHeader:1.1.0-alpha-14'//没有使用特殊Header,可以不加这行
}