73 lines
2.1 KiB
Groovy
73 lines
2.1 KiB
Groovy
apply plugin: 'com.android.library'
|
|
repositories {
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
}
|
|
android {
|
|
compileSdkVersion 29
|
|
buildToolsVersion "29.0.1"
|
|
defaultConfig {
|
|
minSdkVersion 21
|
|
targetSdkVersion 26
|
|
javaCompileOptions {
|
|
annotationProcessorOptions {
|
|
arguments = [moduleName: project.getName()]
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
minifyEnabled false
|
|
}
|
|
}
|
|
sourceSets {
|
|
main.res.srcDirs = ['src/main/res',
|
|
'src/main/res/lc',
|
|
'src/main/res/lc/drawable',
|
|
'src/main/res/lc/drawable-hdpi',
|
|
'src/main/res/lc/drawable-xhdpi',
|
|
'src/main/res/lc/drawable-xxhdpi',
|
|
'src/main/res/lc/anim',
|
|
'src/main/res/lc/color',
|
|
'src/main/res/lc/values',
|
|
'src/main/res/lc/values-en',
|
|
'src/main/res/lc/layout']
|
|
}
|
|
android {
|
|
lintOptions {
|
|
abortOnError false
|
|
}
|
|
resourcePrefix "demo_"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
provided fileTree(include: ['*.jar'], dir: 'libs')
|
|
// provided fileTree(include: ['*.aar'], dir: 'libs')
|
|
|
|
api project(':third-zxing')
|
|
api "org.greenrobot:eventbus:3.0.0"
|
|
api 'com.google.code.gson:gson:2.8.1'
|
|
|
|
api "com.android.support:recyclerview-v7:27.1.1"
|
|
api "com.android.support:support-v4:27.1.1"
|
|
api "com.android.support:appcompat-v7:27.1.1"
|
|
api "com.android.support:cardview-v7:27.1.1"
|
|
api "com.android.support:design:27.1.1"
|
|
api 'com.android.support.constraint:constraint-layout:1.1.0'
|
|
|
|
api files('libs/PullToRefreshListView-release.aar')
|
|
api files('libs/DHMobileToolset-1.1.1.aar')
|
|
api files('libs/DHScanner-1.0.7.aar')
|
|
|
|
}
|
|
configurations {
|
|
all*.exclude group: 'com.google.zxing'
|
|
}
|