Browse Source

android build: update buildozer and p4a versions

also update NDK version (new p4a demands it)
hard-fail-on-bad-server-string
SomberNight 5 years ago
parent
commit
091f6ced58
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 18
      electrum/gui/kivy/tools/Dockerfile
  2. 2
      electrum/gui/kivy/tools/buildozer.spec

18
electrum/gui/kivy/tools/Dockerfile

@ -18,7 +18,7 @@ RUN apt -y update -qq \
ENV ANDROID_NDK_HOME="${ANDROID_HOME}/android-ndk" ENV ANDROID_NDK_HOME="${ANDROID_HOME}/android-ndk"
ENV ANDROID_NDK_VERSION="17c" ENV ANDROID_NDK_VERSION="19b"
ENV ANDROID_NDK_HOME_V="${ANDROID_NDK_HOME}-r${ANDROID_NDK_VERSION}" ENV ANDROID_NDK_HOME_V="${ANDROID_NDK_HOME}-r${ANDROID_NDK_VERSION}"
# get the latest version from https://developer.android.com/ndk/downloads/index.html # get the latest version from https://developer.android.com/ndk/downloads/index.html
@ -154,11 +154,7 @@ RUN cd /opt \
&& cd buildozer \ && cd buildozer \
&& git remote add sombernight https://github.com/SomberNight/buildozer \ && git remote add sombernight https://github.com/SomberNight/buildozer \
&& git fetch --all \ && git fetch --all \
&& git checkout 182d13f1027d4c16e04e1096c94ed3e488226330 \ && git checkout 7578fea609d4445b3fed1f441813ab4c86ef0086 \
# put target arch in apk name:
&& git cherry-pick 2233dd70ce559205bcb183272519b0c31bd24079 \
# "Separate build per android.arch" https://github.com/kivy/buildozer/pull/957 :
&& git cherry-pick 229a98442897db172cc905e2412710f5924c5366 \
&& python3 -m pip install --user -e . && python3 -m pip install --user -e .
# install python-for-android # install python-for-android
@ -167,15 +163,7 @@ RUN cd /opt \
&& cd python-for-android \ && cd python-for-android \
&& git remote add sombernight https://github.com/SomberNight/python-for-android \ && git remote add sombernight https://github.com/SomberNight/python-for-android \
&& git fetch --all \ && git fetch --all \
&& git checkout dd69749f79dee0fdbe25ca7b04238b7cdada7925 \ && git checkout 9162ec6b4af464672960f6f9bb7c481af2d01802 \
# allowBackup="false":
&& git cherry-pick 003e675625b86319716c8c86c751f509f5d22204 \
# fix gradle "versionCode" overflow:
&& git cherry-pick 38df23528f471ca5f493f72a2f0dfeb40f5275da \
# add recipe for pycryptodomex:
&& git cherry-pick 5545a81c6c47436a41d2cf74194ab6f711e54ad6 \
# gradle: persist debug keystore:
&& git cherry-pick af93820bcd7fb85710f8ba469be3a6e5acb68b08 \
&& python3 -m pip install --user -e . && python3 -m pip install --user -e .
# build env vars # build env vars

2
electrum/gui/kivy/tools/buildozer.spec

@ -76,7 +76,7 @@ android.api = 28
android.minapi = 21 android.minapi = 21
# (str) Android NDK version to use # (str) Android NDK version to use
android.ndk = 17c android.ndk = 19b
# (int) Android NDK API to use (optional). This is the minimum API your app will support. # (int) Android NDK API to use (optional). This is the minimum API your app will support.
android.ndk_api = 21 android.ndk_api = 21

Loading…
Cancel
Save