forked from alibaba/GCanvas
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathbuild.gradle
70 lines (57 loc) · 1.64 KB
/
build.gradle
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
apply plugin: 'com.android.library'
apply from: "../../build.gradle"
group = localExtensions.groups.Main
version = "1.2.0"
android {
compileSdkVersion localExtensions.sdks.CompileSDK
buildToolsVersion localExtensions.sdks.BuildTool
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
}
}
lintOptions {
abortOnError false
}
buildTypes {
debug {
debuggable true
}
release {
debuggable false
}
}
defaultConfig {
minSdkVersion localExtensions.sdks.MinSDK
targetSdkVersion localExtensions.sdks.TargetSDK
consumerProguardFiles 'proguard-rules.txt'
externalNativeBuild {
cmake {
arguments '-DGCANVAS_WEEX=1'
}
ndk {
abiFilters = []
abiFilters.addAll(localExtensions.sdks.ABIs)
}
}
}
externalNativeBuild {
cmake {
path file('../../CMakeLists.txt')
}
}
if (localExtensions.sdks.EXCLUDE_CPP_SHARED) {
packagingOptions {
exclude '**/libc++_shared.so'
exclude '**/**/libc++_shared.so'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.alibaba:fastjson:1.1.54.android'
}
project.ext.id = localExtensions.artifacts.Core
project.ext.meta.labels = ['Weex', 'ReactNative', 'GPU', 'OpenGL', 'GCanvas', "canvas", 'WebGL', 'Rendering', 'High Performance']
project.ext.meta.description = 'This package defines GCanvas main library.'
// apply from: "../../publish.gradle"