jni: Upgrade underlying NFD to version 0.6.2-11-gd657d53
This change replaces in-project JNI compilation of ndn-cxx and NFD with
packaged versions of ndn-cxx and NFD using a customized
android-crew-staging (https://github.com/named-data-mobile/android-crew-staging).
Refer to README-dev.md for more detail.
This commit also drops Logcat views
Refs: #4661
Change-Id: Id981689475d9da3aea63bea38d925f335c25b46e
diff --git a/README.md b/README.md
index af28fd9..2ccb0a7 100644
--- a/README.md
+++ b/README.md
@@ -26,28 +26,39 @@
export PATH=${PATH}:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools
echo "y" | sdkmanager "platform-tools"
- sdkmanager "platforms;android-26" "build-tools;26.0.3" "ndk-bundle"
+ sdkmanager "platforms;android-28" "ndk-bundle"
cd ndk-bundle
- git clone https://github.com/cawka/android-crew-staging.git crew.dir
+ git clone https://github.com/named-data-mobile/android-crew-staging crew.dir
- CREW_OWNER=cawka crew.dir/crew install target/sqlite:3.18.0 target/openssl:1.0.2m target/boost:1.65.1
+ CREW_OWNER=named-data-mobile crew.dir/crew install target/sqlite target/openssl target/boost
+ CREW_OWNER=named-data-mobile crew.dir/crew install target/ndn_cxx target/nfd
cd ..
The above `crew` scripts will install pre-compiled versions of sqlite, openssl, and boost libraries.
-To compile them instead, replace `install` with `build`.
+For more details about the crew tool, refer to README-dev.md.
## Building
-
git clone --recursive http://gerrit.named-data.net/NFD-android
echo sdk.dir=`pwd`/android-sdk-linux > NFD-android/local.properties
echo ndk.dir=`pwd`/android-sdk-linux/ndk-bundle >> NFD-android/local.properties
cd NFD-android
+ # Build in release mode (you will need to have proper signing keys configured, see README-dev.md)
./gradlew assembleRelease
+ # Build in debug mode
+ ./gradlew assembleDebug
+
+You can also automatically install debug/release NDN-android to the connected phone
+
+ # build and install release version (will require signing key configuration)
+ ./gradlew installRelease
+
+ # build and install debug version
+ ./gradlew installDebug
Note that you can limit architectures being built using `NDK_BUILD_ABI` variable. For example,
@@ -58,6 +69,10 @@
By default, the build script will try to parallelize build to the number of CPUs. This can be
overridden using `NDK_BUILD_PARALLEL` variable.
+To upload `.apk` files to Google Play (need configuration of keys and Google Play credentials, see README-dev.md):
+
+ ./gradlew publishRelease
+
## Setting up environment using Vagrant
The development setup can be set up with [Vagrant](https://www.vagrantup.com/) and scripts provided