-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (66 loc) · 1.78 KB
/
build.gradle
File metadata and controls
72 lines (66 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
jcenter()
google()
maven { url "https://plugins.gradle.org/m2/" }
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
dependencies {
//noinspection GradleDependency
classpath 'com.android.tools.build:gradle:3.4.2'
//noinspection GradleDynamicVersion
classpath 'com.ahasbini.tools:android-opencv-gradle-plugin:0.1.+'
}
}
repositories {
jcenter()
google()
mavenCentral()
}
apply plugin: 'com.android.application'
apply plugin: 'com.ahasbini.android-opencv-gradle-plugin'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0.0-SNAPSHOT"
externalNativeBuild {
cmake {
cppFlags "-std=c++14"
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
arguments "-DANDROID_STL=c++_shared"
}
}
}
externalNativeBuild {
cmake {
//noinspection GroovyAssignabilityCheck
path "CMakeLists.txt"
}
}
buildTypes {
debug {
minifyEnabled false
debuggable true
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
androidOpenCV {
version '3.4.9'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
}