blob: ba1bf60987cfeeb57a0f71c6f6bf3de7f88fb4ff (
plain)
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
73
74
75
76
77
78
79
|
// **********************************************************************
//
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
apply plugin: 'com.android.application'
apply from: "$rootProject.projectDir/../gradle/ice.gradle"
apply from: "$rootProject.projectDir/gradle/tests.gradle"
slice {
java {
files = fileTree(dir: "$rootProject.projectDir/../../scripts/", includes: ['*.ice'])
}
}
android {
compileSdkVersion ice_compileSdkVersion.toInteger()
buildToolsVersion ice_buildToolsVersion
defaultConfig {
applicationId "com.zeroc.testcontroller"
minSdkVersion ice_minSdkVersion.toInteger()
targetSdkVersion ice_targetSdkVersion.toInteger()
multiDexEnabled true // Necessary otherwise we'd exceed the 64K DEX limit.
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
buildTypes {
debug {
//
// Set minifyEnabled to false because the test app loads classes dynamically.
//
minifyEnabled false
}
release {
//
// Set minifyEnabled to false because the test app loads classes dynamically.
//
minifyEnabled false
}
}
}
idea.module {
excludeDirs -= file(buildDir)
buildDir.listFiles({d, f ->f != 'generated-src'} as FilenameFilter).each { excludeDirs += it }
}
task copyBksTask(type: Copy) {
from "${rootProject.projectDir}/../../certs/client.bks"
from "${rootProject.projectDir}/../../certs/server.bks"
into "src/main/res/raw"
}
preBuild.dependsOn(copyBksTask)
clean {
delete("src/main/res/raw/client.bks")
delete("src/main/res/raw/server.bks")
}
dependencies {
compile localDependency('ice')
compile localDependency('icessl')
compile localDependency('icediscovery')
compile localDependency('icebt')
compile project(':test')
tests.each {
def name = it.replace('/', '_')
compile project(":test_${name}")
}
}
|