mirror of
https://github.com/opencv/opencv.git
synced 2024-11-30 22:40:17 +08:00
37 lines
1.1 KiB
Groovy
37 lines
1.1 KiB
Groovy
|
apply plugin: 'com.android.application'
|
||
|
|
||
|
android {
|
||
|
namespace 'org.opencv.samples.qrdetection'
|
||
|
compileSdkVersion @ANDROID_COMPILE_SDK_VERSION@
|
||
|
defaultConfig {
|
||
|
applicationId "org.opencv.samples.qrdetection"
|
||
|
minSdkVersion @ANDROID_MIN_SDK_VERSION@
|
||
|
targetSdkVersion @ANDROID_TARGET_SDK_VERSION@
|
||
|
versionCode 301
|
||
|
versionName "3.01"
|
||
|
}
|
||
|
buildTypes {
|
||
|
release {
|
||
|
minifyEnabled false
|
||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||
|
}
|
||
|
}
|
||
|
sourceSets {
|
||
|
main {
|
||
|
java.srcDirs = @ANDROID_SAMPLE_JAVA_PATH@
|
||
|
aidl.srcDirs = @ANDROID_SAMPLE_JAVA_PATH@
|
||
|
res.srcDirs = @ANDROID_SAMPLE_RES_PATH@
|
||
|
manifest.srcFile '@ANDROID_SAMPLE_MANIFEST_PATH@'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
//implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||
|
if (gradle.opencv_source == "sdk_path") {
|
||
|
implementation project(':opencv')
|
||
|
} else if (gradle.opencv_source == "maven_local" || gradle.opencv_source == "maven_cenral") {
|
||
|
implementation 'org.opencv:opencv:@OPENCV_VERSION_PLAIN@'
|
||
|
}
|
||
|
}
|