Skip to content

Commit

Permalink
android: update kivy, p4a, buildozer
Browse files Browse the repository at this point in the history
  • Loading branch information
SomberNight committed Jun 7, 2019
1 parent 6bdc6f5 commit 5c83df7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
14 changes: 8 additions & 6 deletions electrum/gui/kivy/tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ USER ${USER}


RUN python3 -m pip install --upgrade cython==0.28.6
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --user wheel

# prepare git
RUN git config --global user.name "John Doe" \
Expand All @@ -136,21 +138,21 @@ RUN git config --global user.name "John Doe" \
RUN cd /opt \
&& git clone https://github.com/kivy/buildozer \
&& cd buildozer \
&& git checkout 88e4a4b0c7733eec1d14c00579ec412fb59ad7f2 \
&& python3 -m pip install -e .
&& git checkout 678b1bf52cf63daa51b06e86a43ea4e2ea8a0b24 \
&& python3 -m pip install --user -e .

# install python-for-android
RUN cd /opt \
&& git clone https://github.com/kivy/python-for-android \
&& cd python-for-android \
&& git remote add sombernight https://github.com/SomberNight/python-for-android \
&& git fetch --all \
&& git checkout dec1badc3bd134a9a1c69275339423a95d63413e \
&& git checkout ccb0f8e1bab36f1b7d1508216b4b4afb076e614f \
# allowBackup="false":
&& git cherry-pick d7f722e4e5d4b3e6f5b1733c95e6a433f78ee570 \
# enable IPv6:
&& git cherry-pick a607f4a446773ac0b0a5150171092b0617fbe670 \
&& python3 -m pip install -e .
# fix gradle "versionCode" overflow:
&& git cherry-pick ed20e196fbcdce718a180f88f23bb2d165c4c5d8 \
&& python3 -m pip install --user -e .

# build env vars
ENV USE_SDK_WRAPPER=1
Expand Down
14 changes: 9 additions & 5 deletions electrum/gui/kivy/tools/buildozer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ version.filename = %(source.dir)s/electrum/version.py
#version = 1.9.8

# (list) Application requirements
requirements = python3, android, openssl, plyer, kivy==b47f669f44dbda4f463bcb7d2cada639f7fed3bc, libffi, libsecp256k1
requirements =
python3,
android,
openssl,
plyer,
kivy==82d561d62577757d478df52173610f925c05ecab,
libffi,
libsecp256k1

# (str) Presplash of the application
#presplash.filename = %(source.dir)s/gui/kivy/theming/splash.png
Expand Down Expand Up @@ -64,11 +71,8 @@ android.api = 28
# (int) Minimum API required. You will need to set the android.ndk_api to be as low as this value.
android.minapi = 21

# (int) Android SDK version to use
android.sdk = 24

# (str) Android NDK version to use
android.ndk = 14b
android.ndk = 17c

# (int) Android NDK API to use (optional). This is the minimum API your app will support.
android.ndk_api = 21
Expand Down

0 comments on commit 5c83df7

Please sign in to comment.