diff --git a/.gitignore b/.gitignore index f5251bf..b7306c2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ /react-native-pushy-cli/node_modules /react-native-pushy-cli/lib /android/build +/android/obj *.iml # OSX diff --git a/android/jni/Android.mk b/android/jni/Android.mk new file mode 100644 index 0000000..6871e9f --- /dev/null +++ b/android/jni/Android.mk @@ -0,0 +1,17 @@ +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_MODULE := rnupdate +LOCAL_SRC_FILES := \ + DownloadTask.c \ + blocksort.c \ + bspatch.c \ + bzlib.c \ + crctable.c \ + compress.c \ + decompress.c \ + huffman.c \ + randtable.c + +include $(BUILD_SHARED_LIBRARY) \ No newline at end of file diff --git a/android/lib/arm64-v8a/librnupdate.so b/android/lib/arm64-v8a/librnupdate.so new file mode 100755 index 0000000..ff8f7fd Binary files /dev/null and b/android/lib/arm64-v8a/librnupdate.so differ diff --git a/android/lib/armeabi-v7a/librnupdate.so b/android/lib/armeabi-v7a/librnupdate.so index a423fbe..65201d6 100755 Binary files a/android/lib/armeabi-v7a/librnupdate.so and b/android/lib/armeabi-v7a/librnupdate.so differ diff --git a/android/lib/x86/librnupdate.so b/android/lib/x86/librnupdate.so index 5c683c4..e768339 100755 Binary files a/android/lib/x86/librnupdate.so and b/android/lib/x86/librnupdate.so differ diff --git a/android/lib/x86_64/librnupdate.so b/android/lib/x86_64/librnupdate.so new file mode 100755 index 0000000..3bfc8a6 Binary files /dev/null and b/android/lib/x86_64/librnupdate.so differ diff --git a/package.json b/package.json index 433eab9..69cb85c 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { "name": "react-native-update", - "version": "5.1.6", + "version": "5.1.7", "description": "react-native hot update", "main": "lib/index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", + "build-lib": "$ANDROID_HOME/ndk-bundle/ndk-build NDK_PROJECT_PATH=android APP_BUILD_SCRIPT=android/jni/Android.mk NDK_LIBS_OUT=android/lib", "prepare": "node_modules/.bin/babel local-cli/src --out-dir local-cli/lib" }, "repository": {