Browse Source

Android : Updated path to pEpEngine zip bundle, removed hard coded reference to ndk in local.properties, use ANDROID_NDK env var instead.

JNI-44
Edouard Tisserant 10 years ago
parent
commit
584167b587
  1. 8
      android/build.gradle
  2. 1
      android/local.properties

8
android/build.gradle

@ -58,7 +58,7 @@ android {
// unzip some of the dependencies // unzip some of the dependencies
task unzipDeps(type: Copy) { task unzipDeps(type: Copy) {
from zipTree(file('../../pEpEngine/android/pEpEngine-android-1.zip')) from zipTree(file('../../pEpEngine/build-android/pEpEngine-android-1.zip'))
from zipTree(file('../../libetpan/build-android/libetpan-android-1.zip')) from zipTree(file('../../libetpan/build-android/libetpan-android-1.zip'))
from zipTree(file('../../libetpan/build-android/dependencies/openssl/openssl-android-1.zip')) from zipTree(file('../../libetpan/build-android/dependencies/openssl/openssl-android-1.zip'))
from zipTree(file('../../libetpan/build-android/dependencies/cyrus-sasl/cyrus-sasl-android-1.zip')) from zipTree(file('../../libetpan/build-android/dependencies/cyrus-sasl/cyrus-sasl-android-1.zip'))
@ -86,14 +86,14 @@ android {
} }
def getNdkDir() { def getNdkDir() {
if (System.env.ANDROID_NDK_ROOT != null) if (System.env.ANDROID_NDK != null)
return System.env.ANDROID_NDK_ROOT return System.env.ANDROID_NDK
Properties properties = new Properties() Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream()) properties.load(project.rootProject.file('local.properties').newDataInputStream())
def ndkdir = properties.getProperty('ndk.dir', null) def ndkdir = properties.getProperty('ndk.dir', null)
if (ndkdir == null) if (ndkdir == null)
throw new GradleException("NDK location not found. Define location with ndk.dir in the local.properties file or with an ANDROID_NDK_ROOT environment variable.") throw new GradleException("NDK location not found. Define location with ndk.dir in the local.properties file or with an ANDROID_NDK environment variable.")
return ndkdir return ndkdir
} }

1
android/local.properties

@ -5,4 +5,3 @@
# #
#Wed Apr 15 10:58:28 EDT 2015 #Wed Apr 15 10:58:28 EDT 2015
sdk.dir=/home/pepdev/Android/Sdk sdk.dir=/home/pepdev/Android/Sdk
ndk.dir=/home/pepdev/Android/android-ndk-r10d

Loading…
Cancel
Save