1
0

bundle libsecp256k1 in android apk

this works as there is already a p4a recipe upstream: 74bf788a29/pythonforandroid/recipes/libsecp256k1/__init__.py
This commit is contained in:
SomberNight
2018-05-28 00:43:05 +02:00
parent 483a2a40cd
commit 86992aea6c
2 changed files with 3 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ version.filename = %(source.dir)s/contrib/versions.py
#version = 1.9.8
# (list) Application requirements
requirements = python3crystax==3.6, android, openssl, plyer, kivy==master
requirements = python3crystax==3.6, android, openssl, plyer, kivy==master, libsecp256k1
# (str) Presplash of the application
#presplash.filename = %(source.dir)s/gui/kivy/theming/splash.png

View File

@@ -37,6 +37,8 @@ def load_library():
library_path = 'libsecp256k1.dylib'
elif sys.platform in ('windows', 'win32'):
library_path = 'libsecp256k1.dll'
elif 'ANDROID_DATA' in os.environ:
library_path = 'libsecp256k1.so'
else:
library_path = 'libsecp256k1.so.0'