|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion rootProject.ext.versionCompiler
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.jiangdg.usbcamera"
|
|
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
|
|
targetSdkVersion rootProject.ext.versionTarget
|
|
|
|
versionCode 1
|
|
|
|
versionName rootProject.ext.versionNameString
|
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// solving com.android.tools.r8.CompilationFailedException: Compilation failed to complete
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility rootProject.ext.javaSourceCompatibility
|
|
|
|
targetCompatibility rootProject.ext.javaTargetCompatibility
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
|
|
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
|
|
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
|
|
})
|
|
|
|
implementation "com.android.support:appcompat-v7:${supportLibVersion}"
|
|
|
|
implementation "com.android.support:support-annotations:${supportLibVersion}"
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
implementation 'com.jakewharton:butterknife:8.8.1'
|
|
|
|
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
|
|
|
|
implementation project(':libusbcamera')
|
|
|
|
}
|