更新CameraX至v1.2.2
This commit is contained in:
@@ -1,52 +1,46 @@
|
||||
apply plugin: 'com.android.library'
|
||||
//apply from: 'bintray.gradle'
|
||||
apply plugin: "com.vanniktech.maven.publish"
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'com.vanniktech.maven.publish'
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion build_versions.compileSdk
|
||||
buildToolsVersion build_versions.buildTools
|
||||
namespace 'com.king.zxing'
|
||||
compileSdk build_versions.compileSdk
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion build_versions.minSdk
|
||||
targetSdkVersion build_versions.targetSdk
|
||||
versionCode app_version.versionCode
|
||||
versionName app_version.versionName
|
||||
minSdk build_versions.minSdk
|
||||
targetSdk build_versions.targetSdk
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
consumerProguardFiles "consumer-rules.pro"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
abortOnError false
|
||||
warning 'InvalidPackage'
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
coreLibraryDesugaringEnabled true
|
||||
sourceCompatibility JavaVersion.VERSION_11
|
||||
targetCompatibility JavaVersion.VERSION_11
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
abortOnError false
|
||||
}
|
||||
}
|
||||
|
||||
//task javadoc(type: Javadoc) {
|
||||
// source = android.sourceSets.main.java.srcDirs
|
||||
// classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
|
||||
//}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
testImplementation deps.test.junit
|
||||
androidTestImplementation deps.test.runner
|
||||
androidTestImplementation deps.test.android_ext_junit
|
||||
androidTestImplementation deps.test.espresso
|
||||
|
||||
coreLibraryDesugaring deps.desugar_jdk
|
||||
|
||||
compileOnly deps.androidx.appcompat
|
||||
implementation deps.androidx.appcompat
|
||||
api deps.zxing
|
||||
api deps.camera_core
|
||||
api deps.camera_camera2
|
||||
|
||||
Reference in New Issue
Block a user