/
build.gradle
63 lines (55 loc) · 1.61 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
apply plugin: 'com.android.application'
repositories {
mavenCentral()
maven {
url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'
}
}
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.nolanlawson.demo"
minSdkVersion 18
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
withCrosswalkArmv7 {
ndk {
abiFilter "armeabi-v7a"
}
versionCode ((100 * computeVersionCode()) + 2)
}
withCrosswalkX86 {
ndk {
abiFilter "x86"
}
versionCode ((100 * computeVersionCode()) + 4)
}
withoutCrosswalk {
minSdkVersion 20 // the non-crosswalk version is only for post-lollipop
versionCode ((100 * computeVersionCode()) + 6)
}
}
sourceSets {
withCrosswalkArmv7.java.srcDirs = ['src/withCrosswalk/java']
withCrosswalkX86.java.srcDirs = ['src/withCrosswalk/java']
}
}
def computeVersionCode() {
return android.defaultConfig.versionCode
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
withCrosswalkArmv7Compile 'org.xwalk:xwalk_core_library_beta:11.40.277.1'
withCrosswalkX86Compile 'org.xwalk:xwalk_core_library_beta:11.40.277.1'
}