-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
62 lines (53 loc) · 1.74 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
}
}
apply plugin: 'android'
ant.importBuild 'custom_rules.xml'
dependencies {
/*compile files('libs/svmp-protocol.jar','libs/armeabi-v7a/libwebrtc-video-demo-jni.so')*/
//compile files('libs/libjingle_peerconnection.jar', '../svmp-protocol-def/protobuf-2.5.0/protobuf-java-2.5.0.jar')
compile project(':MemorizingTrustManager')
compile project(':SecureWebSockets')
compile project(':svmp-protocol-def')
compile files('libs/libjingle_peerconnection.jar')
}
tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask ->
pkgTask.jniFolders = new HashSet<File>()
pkgTask.jniFolders.add(new File(projectDir, 'libs'))
}
// disable Manifest merger to allow compatibility with IDE/ant builds
android.applicationVariants.all { variant ->
variant.processResources.manifestFile = file('AndroidManifest.xml')
variant.processManifest.enabled=false
}
android {
compileSdkVersion 19
buildToolsVersion "19"
defaultConfig {
// Let these come from the AndroidManifest.xml
// minSdkVersion 13
// targetSdkVersion 17
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
//java.srcDirs = ['src','../svmp-protocol-def/src']
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
instrumentTest.setRoot('tests')
}
}
project.afterEvaluate {
preBuild.dependsOn import_client_truststore_certs
clean.dependsOn '-pre-clean'
}