Skip to content

Commit

Permalink
Merge pull request #96 from vesellov/master
Browse files Browse the repository at this point in the history
prepare Android release
  • Loading branch information
vesellov authored Dec 29, 2024
2 parents ddcd3c7 + bb371f7 commit 89868da
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 21 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@

REQUIREMENTS_TXT:=requirements.txt

REQUIREMENTS_ANDROID:="kivy==2.1.0,kivymd==1.0.2,PIL,sdl,plyer,pyjnius,service_identity,pyparsing,appdirs,cffi,six,pycryptodome,attrs,hyperlink,idna,cryptography,automat,android,toml,incremental,twisted,python3"

OS=$(shell lsb_release -si 2>/dev/null || uname)
PIP:="venv/bin/pip"
PYTHON="venv/bin/python"
PYTHON_VERSION=python3.9
PYTHON_VERSION=python3

.PHONY: clean pyclean

Expand Down
8 changes: 4 additions & 4 deletions installer/android/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ REQUIREMENTS_ANDROID:=$(shell python3 -c "import sys;l=open('src/requirements.tx
build: .spec
@rm -rfv ./workspace/bin/*.aab
@rm -rfv ./workspace/bin/*.apk
@cd ./workspace/app/bitdust/ && find . -type f -name "*.py" -exec sed -i -e 's/_Debug = True/_Debug = False/g' {} +
@# cd ./workspace/app/bitdust/ && find . -type f -name "*.py" -exec sed -i -e 's/_Debug = True/_Debug = False/g' {} +
cd ./workspace/ && PYTHONIOENCODING=utf-8 VIRTUAL_ENV=1 ./venv/bin/buildozer -v android release 1>buildozer.log 2>buildozer.err
@cp -f -T -v ./workspace/bin/bitdust*arm64-v8a_armeabi-v7a_x86_64-release.aab ./workspace/bin/BitDustAndroid_unsigned.aab
@cd ./workspace/ && zipalign -v 4 ./bin/BitDustAndroid_unsigned.aab ./bin/BitDustAndroid.aab
Expand Down Expand Up @@ -107,7 +107,7 @@ debug: .spec

build_arm64_v8a:
~/.gradle/wrapper/dists/gradle-8.0.2-all/14bt34ptcsg1ikmfn78tdh1keu/gradle-8.0.2/bin/gradle --stop || echo "gradle daemon was not stopped"
@cd ./workspace/app/bitdust/ && find . -type f -name "*.py" -exec sed -i -e 's/_Debug = True/_Debug = False/g' {} +
@# cd ./workspace/app/bitdust/ && find . -type f -name "*.py" -exec sed -i -e 's/_Debug = True/_Debug = False/g' {} +
cd ./workspace/ && PYTHONIOENCODING=utf-8 VIRTUAL_ENV=1 ./venv/bin/buildozer -v --profile arm64_v8a android release 1>buildozer.arm64_v8a.log 2>buildozer.arm64_v8a.err
@cp -v -T -f ./workspace/bin/bitdust*.apk ./workspace/bin/BitDustAndroid_unsigned.apk
@cd ./workspace/ && zipalign -v 4 ./bin/BitDustAndroid_unsigned.apk ./bin/BitDustAndroid.apk
Expand All @@ -119,7 +119,7 @@ build_arm64_v8a:

build_armeabi_v7a:
~/.gradle/wrapper/dists/gradle-8.0.2-all/14bt34ptcsg1ikmfn78tdh1keu/gradle-8.0.2/bin/gradle --stop || echo "gradle daemon was not stopped"
@cd ./workspace/app/bitdust/ && find . -type f -name "*.py" -exec sed -i -e 's/_Debug = True/_Debug = False/g' {} +
@# cd ./workspace/app/bitdust/ && find . -type f -name "*.py" -exec sed -i -e 's/_Debug = True/_Debug = False/g' {} +
cd ./workspace/ && PYTHONIOENCODING=utf-8 VIRTUAL_ENV=1 ./venv/bin/buildozer -v --profile armeabi_v7a android release 1>buildozer.armeabi_v7a.log 2>buildozer.armeabi_v7a.err
@cp -v -T -f ./workspace/bin/bitdust*.apk ./workspace/bin/BitDustAndroid_unsigned.apk
@cd ./workspace/ && zipalign -v 4 ./bin/BitDustAndroid_unsigned.apk ./bin/BitDustAndroid.apk
Expand All @@ -131,7 +131,7 @@ build_armeabi_v7a:

build_x86_64:
~/.gradle/wrapper/dists/gradle-8.0.2-all/14bt34ptcsg1ikmfn78tdh1keu/gradle-8.0.2/bin/gradle --stop || echo "gradle daemon was not stopped"
@cd ./workspace/app/bitdust/ && find . -type f -name "*.py" -exec sed -i -e 's/_Debug = True/_Debug = False/g' {} +
@# cd ./workspace/app/bitdust/ && find . -type f -name "*.py" -exec sed -i -e 's/_Debug = True/_Debug = False/g' {} +
cd ./workspace/ && PYTHONIOENCODING=utf-8 VIRTUAL_ENV=1 ./venv/bin/buildozer -v --profile x86_64 android release 1>buildozer.x86_64.log 2>buildozer.x86_64.err
@cp -v -T -f ./workspace/bin/bitdust*.apk ./workspace/bin/BitDustAndroid_unsigned.apk
@cd ./workspace/ && zipalign -v 4 ./bin/BitDustAndroid_unsigned.apk ./bin/BitDustAndroid.apk
Expand Down
2 changes: 1 addition & 1 deletion src/components/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#------------------------------------------------------------------------------

_Debug = True
_Debug = False

#------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/components/main_win.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#------------------------------------------------------------------------------

_Debug = True
_Debug = False

#------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/lib/web_sock_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#------------------------------------------------------------------------------

_Debug = True
_Debug = False
_DebugAPIResponses = _Debug

#------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/lib/web_socket/_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from . import _logging


_Debug = True
_Debug = False


__all__ = ["WebSocketApp"]
Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#------------------------------------------------------------------------------

_Debug = True
_Debug = False
_DebugProfilingEnabled = False
_DebugKivyOutputEnabled = True

Expand Down
2 changes: 1 addition & 1 deletion src/screens/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#------------------------------------------------------------------------------

_Debug = True
_Debug = False
_DebugModelUpdates = False

#------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/screens/screen_device_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#------------------------------------------------------------------------------

_Debug = True
_Debug = False

#------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/screens/screen_device_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#------------------------------------------------------------------------------

_Debug = True
_Debug = False

#------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/screens/screen_device_disconnected.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#------------------------------------------------------------------------------

_Debug = True
_Debug = False

#------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/screens/screen_device_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#------------------------------------------------------------------------------

_Debug = True
_Debug = False

#------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/screens/screen_new_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#------------------------------------------------------------------------------

_Debug = True
_Debug = False

#------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/screens/screen_scan_qr.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#------------------------------------------------------------------------------

_Debug = True
_Debug = False

#------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/screens/screen_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#------------------------------------------------------------------------------

_Debug = True
_Debug = False

#------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/screens/screen_welcome.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#------------------------------------------------------------------------------

_Debug = True
_Debug = False

#------------------------------------------------------------------------------

Expand Down

0 comments on commit 89868da

Please sign in to comment.