mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-25 14:50:37 +01:00
Experimental support for armeabi-v7a and API level 24
This commit is contained in:
parent
41774a5629
commit
ce4d1967e8
@ -3,6 +3,7 @@ all: prepare debug
|
|||||||
prepare: activate cleanrns getrns
|
prepare: activate cleanrns getrns
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@echo Cleaning...
|
||||||
-(rm ./__pycache__ -r)
|
-(rm ./__pycache__ -r)
|
||||||
-(rm ./app_storage -r)
|
-(rm ./app_storage -r)
|
||||||
-(rm ./bin -r)
|
-(rm ./bin -r)
|
||||||
@ -18,30 +19,35 @@ activate:
|
|||||||
pacthfiles: patchsdl injectxml
|
pacthfiles: patchsdl injectxml
|
||||||
|
|
||||||
patchsdl:
|
patchsdl:
|
||||||
cp patches/HIDDeviceUSB.java .buildozer/android/platform/build-arm64-v8a/build/bootstrap_builds/sdl2/jni/SDL/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java
|
# Pach USB HID behaviour
|
||||||
cp patches/HIDDeviceUSB.java .buildozer/android/platform/build-arm64-v8a/dists/sideband/src/main/java/org/libsdl/app/HIDDeviceUSB.java
|
cp patches/HIDDeviceUSB.java .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2/jni/SDL/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java
|
||||||
cp patches/HIDDeviceUSB.java .buildozer/android/platform/build-arm64-v8a/dists/sideband/jni/SDL/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java
|
cp patches/HIDDeviceUSB.java .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/sideband/src/main/java/org/libsdl/app/HIDDeviceUSB.java
|
||||||
|
cp patches/HIDDeviceUSB.java .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/sideband/jni/SDL/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java
|
||||||
|
|
||||||
|
# Pach service loader
|
||||||
cp patches/PythonService.java .buildozer/android/platform/python-for-android/pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android/PythonService.java
|
cp patches/PythonService.java .buildozer/android/platform/python-for-android/pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android/PythonService.java
|
||||||
cp patches/PythonService.java .buildozer/android/platform/build-arm64-v8a/build/bootstrap_builds/sdl2/src/main/java/org/kivy/android/PythonService.java
|
cp patches/PythonService.java .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/bootstrap_builds/sdl2/src/main/java/org/kivy/android/PythonService.java
|
||||||
cp patches/PythonService.java .buildozer/android/platform/build-arm64-v8a/dists/sideband/src/main/java/org/kivy/android/PythonService.java
|
cp patches/PythonService.java .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/sideband/src/main/java/org/kivy/android/PythonService.java
|
||||||
|
|
||||||
injectxml:
|
injectxml:
|
||||||
mkdir -p .buildozer/android/platform/build-arm64-v8a/dists/sideband/src/main/res/xml
|
# Inject XML on arm64-v8a
|
||||||
mkdir -p .buildozer/android/platform/build-arm64-v8a/dists/sideband/templates
|
mkdir -p .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/sideband/src/main/res/xml
|
||||||
cp patches/device_filter.xml .buildozer/android/platform/build-arm64-v8a/dists/sideband/src/main/res/xml/
|
mkdir -p .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/sideband/templates
|
||||||
cp patches/AndroidManifest.tmpl.xml .buildozer/android/platform/build-arm64-v8a/dists/sideband/templates/
|
cp patches/device_filter.xml .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/sideband/src/main/res/xml/
|
||||||
|
cp patches/AndroidManifest.tmpl.xml .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/sideband/templates/
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
buildozer android debug
|
buildozer android debug
|
||||||
|
|
||||||
prebake:
|
prebake:
|
||||||
ifneq (,$(wildcard .buildozer/android/platform/build-arm64-v8a/dists/sideband/src/main/res/xml/device_filter.xml))
|
ifneq (,$(wildcard .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/sideband/src/main/res/xml/device_filter.xml))
|
||||||
@echo Device filter XML exists, skipping prebake
|
@echo Device filter XML exists, skipping prebake
|
||||||
else
|
else
|
||||||
|
@(echo Prebaking build before patching files...)
|
||||||
|
@(sleep 2)
|
||||||
-(buildozer android release)
|
-(buildozer android release)
|
||||||
@(echo Prebake finished, applying patches and rebuilding...)
|
@(echo Prebake finished, applying patches and rebuilding...)
|
||||||
-(sleep 2)
|
@(sleep 2)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
release:
|
release:
|
||||||
@ -58,13 +64,15 @@ version:
|
|||||||
@(echo $$(python ./gv.py))
|
@(echo $$(python ./gv.py))
|
||||||
|
|
||||||
install:
|
install:
|
||||||
adb install bin/sideband-$$(python ./gv.py)-arm64-v8a-release.apk
|
# adb install bin/sideband-$$(python ./gv.py)-arm64-v8a-release.apk
|
||||||
|
adb install bin/sideband-$$(python ./gv.py)-arm64-v8a_armeabi-v7a-release.apk
|
||||||
|
|
||||||
console:
|
console:
|
||||||
(adb logcat | grep "python\|sidebandservice")
|
(adb logcat | grep "python\|sidebandservice")
|
||||||
|
|
||||||
getrns:
|
getrns:
|
||||||
(cp -rv ../../Reticulum/RNS ./;rm ./RNS/Utilities/RNS;rm ./RNS/__pycache__ -r)
|
(cp -rv ../../Reticulum/RNS ./;rm ./RNS/Utilities/RNS)
|
||||||
|
-(rm ./RNS/__pycache__ -r)
|
||||||
|
|
||||||
cleanrns:
|
cleanrns:
|
||||||
-(rm ./RNS -r)
|
-(rm ./RNS -r)
|
||||||
|
@ -10,7 +10,7 @@ source.exclude_patterns = app_storage/*,venv/*,Makefile,./Makefil*,requirements,
|
|||||||
|
|
||||||
version.regex = __version__ = ['"](.*)['"]
|
version.regex = __version__ = ['"](.*)['"]
|
||||||
version.filename = %(source.dir)s/main.py
|
version.filename = %(source.dir)s/main.py
|
||||||
android.numeric_version = 20221019
|
android.numeric_version = 20221020
|
||||||
|
|
||||||
requirements = python3==3.9.5,hostpython3==3.9.5,cryptography,cffi,pycparser,kivy==2.1.0,pygments,sdl2,sdl2_ttf==2.0.15,pillow,lxmf==0.2.0,netifaces,libbz2,pydenticon,usb4a,usbserial4a
|
requirements = python3==3.9.5,hostpython3==3.9.5,cryptography,cffi,pycparser,kivy==2.1.0,pygments,sdl2,sdl2_ttf==2.0.15,pillow,lxmf==0.2.0,netifaces,libbz2,pydenticon,usb4a,usbserial4a
|
||||||
p4a.local_recipes = ../Others/python-for-android/pythonforandroid/recipes
|
p4a.local_recipes = ../Others/python-for-android/pythonforandroid/recipes
|
||||||
@ -25,12 +25,12 @@ fullscreen = 0
|
|||||||
|
|
||||||
android.permissions = INTERNET,POST_NOTIFICATIONS,WAKE_LOCK,FOREGROUND_SERVICE,CHANGE_WIFI_MULTICAST_STATE
|
android.permissions = INTERNET,POST_NOTIFICATIONS,WAKE_LOCK,FOREGROUND_SERVICE,CHANGE_WIFI_MULTICAST_STATE
|
||||||
android.api = 30
|
android.api = 30
|
||||||
android.minapi = 27
|
android.minapi = 24
|
||||||
android.ndk = 23b
|
android.ndk = 23b
|
||||||
android.skip_update = False
|
android.skip_update = False
|
||||||
android.accept_sdk_license = True
|
android.accept_sdk_license = True
|
||||||
android.release_artifact = apk
|
android.release_artifact = apk
|
||||||
android.archs = arm64-v8a
|
android.archs = arm64-v8a,armeabi-v7a
|
||||||
#android.logcat_filters = *:S python:D
|
#android.logcat_filters = *:S python:D
|
||||||
|
|
||||||
services = sidebandservice:services/sidebandservice.py:foreground
|
services = sidebandservice:services/sidebandservice.py:foreground
|
||||||
|
2
setup.py
2
setup.py
@ -81,7 +81,7 @@ setuptools.setup(
|
|||||||
'sideband=sbapp:main.run',
|
'sideband=sbapp:main.run',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
install_requires=['rns>=0.3.15', 'lxmf>=0.2.0', 'kivy==2.1.0', 'plyer', "pillow"],
|
install_requires=['rns>=0.3.16', 'lxmf>=0.2.0', 'kivy==2.1.0', 'plyer', "pillow"],
|
||||||
extras_require={
|
extras_require={
|
||||||
"macos": ["pyobjus"],
|
"macos": ["pyobjus"],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user