]> git.bitcoin.ninja Git - ldk-java/commitdiff
Try new paths for Android NDK library search v0.0.101.2
authorMatt Corallo <git@bluematt.me>
Tue, 28 Sep 2021 01:29:18 +0000 (01:29 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 28 Sep 2021 01:32:19 +0000 (01:32 +0000)
I'm not sure where these paths came from to begin with, but [1]
seems to indicate they're wrong, so let's try new ones.

[1] https://developer.android.com/ndk/guides/abis#sa

android-build.sh

index fe90de72ac1e8edc135249b38e856b50db2b8f0f..b31b0c7104e915278688ec2100f84d075a605aa4 100755 (executable)
@@ -57,10 +57,10 @@ ls ldk-java-classes.jar
 rm -rf aar
 mkdir aar
 cp -r "$3/"* ./aar/
-mkdir -p ./aar/jni/{arm64,armeabi,x86,x86_64}
+mkdir -p ./aar/jni/{armeabi-v7a,arm64-v8a,x86,x86_64}
 
-cp liblightningjni_release_aarch64-linux-android.so ./aar/jni/arm64/liblightningjni.so
-cp liblightningjni_release_armv7-linux-androideabi.so ./aar/jni/armeabi/liblightningjni.so
+cp liblightningjni_release_aarch64-linux-android.so ./aar/jni/arm64-v8a/liblightningjni.so
+cp liblightningjni_release_armv7-linux-androideabi.so ./aar/jni/armeabi-v7a/liblightningjni.so
 cp liblightningjni_release_i686-linux-android.so ./aar/jni/x86/liblightningjni.so
 cp liblightningjni_release_x86_64-linux-android.so ./aar/jni/x86_64/liblightningjni.so
 cp ldk-java-classes.jar ./aar/classes.jar