aboutsummaryrefslogtreecommitdiff
path: root/java/android/OlmLibSdk/olm-sdk/build.gradle
diff options
context:
space:
mode:
authorpedroGitt <pedro.contreiras@amdocs.com>2016-10-06 19:55:03 +0200
committerpedroGitt <pedro.contreiras@amdocs.com>2016-10-06 19:55:03 +0200
commit655c841cc3720d1bb9892d60a2d7ca136c90cfbd (patch)
treee598da0ee20e90620873e7c13d36c9b32a3fe8d4 /java/android/OlmLibSdk/olm-sdk/build.gradle
parent0393ad68438669f60a6679c9e0f8010c7366c5ed (diff)
- Update Unit tests for OlmAccount
- new file olm_utility.cpp to have a stand alone function to initialize/alloc a random buffer - new class OlmMessage - complete OlmSession API with encryptMessage() - comments review - OlmAccount unit tests are green - new gradle to compile the shared lib according to debug mode
Diffstat (limited to 'java/android/OlmLibSdk/olm-sdk/build.gradle')
-rw-r--r--java/android/OlmLibSdk/olm-sdk/build.gradle24
1 files changed, 21 insertions, 3 deletions
diff --git a/java/android/OlmLibSdk/olm-sdk/build.gradle b/java/android/OlmLibSdk/olm-sdk/build.gradle
index 96eaaf7..2f92151 100644
--- a/java/android/OlmLibSdk/olm-sdk/build.gradle
+++ b/java/android/OlmLibSdk/olm-sdk/build.gradle
@@ -24,9 +24,16 @@ android {
jni.srcDirs = []
}
- task ndkBuildNative(type: Exec, description: 'NDK building..') {
+ task ndkBuildNativeRelease(type: Exec, description: 'NDK building..') {
+ println 'ndkBuildNativeRelease starts..'
workingDir file('src/main')
- commandLine getNdkBuildCmd() //, '-B', 'NDK_DEBUG=1'
+ commandLine getNdkBuildCmd(), 'NDK_DEBUG=0'
+ }
+
+ task ndkBuildNativeDebug(type: Exec, description: 'NDK building..') {
+ println 'ndkBuildNativeDebug starts..'
+ workingDir file('src/main')
+ commandLine getNdkBuildCmd(), 'NDK_DEBUG=1'
}
task cleanNative(type: Exec, description: 'Clean NDK build') {
@@ -34,10 +41,21 @@ android {
commandLine getNdkBuildCmd(), 'clean'
}
- tasks.withType(JavaCompile) {
+ /*tasks.withType(JavaCompile) {
compileTask -> compileTask.dependsOn ndkBuildNative
+ }*/
+
+ tasks.withType(JavaCompile) {
+ compileTask -> if (compileTask.name.startsWith('compileDebugJava')) {
+ println 'test compile: Debug'
+ compileTask.dependsOn ndkBuildNativeDebug
+ } else if (compileTask.name.startsWith('compileReleaseJava')) {
+ println 'test compile: Release'
+ compileTask.dependsOn ndkBuildNativeRelease
+ }
}
+
clean.dependsOn cleanNative
}