Skip to content

Commit f97a26d

Browse files
committed
Update to newer (unreleased) Python for Android version.
1 parent 0392cba commit f97a26d

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

.p4a

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
--dist_name "kolibri"
66
--private "src"
77
--requirements python3==3.9.13,hostpython3==3.9.13,android,pyjnius,genericndkbuild,sqlite3,cryptography,twisted,attrs,bcrypt,service_identity,pyasn1,pyasn1_modules,pyopenssl,openssl,six,kolibri,ifaddr
8-
--android-api 33
8+
--android-api 35
99
--minsdk 23
1010
--ndk-api 23
1111
--permission ACCESS_NETWORK_STATE

Makefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ else
1717
PLATFORM := linux
1818
endif
1919

20-
ANDROID_API := 33
21-
ANDROIDNDKVER := 25.2.9519653
20+
ANDROID_API := 35
21+
ANDROIDNDKVER := 28.2.13676358
22+
SDKMANAGER_VERSION := 13114758
2223

2324
ifdef ANDROID_SDK_ROOT
2425
else
@@ -191,19 +192,19 @@ logcat:
191192

192193
$(SDK)/cmdline-tools/latest/bin/sdkmanager:
193194
@echo "Downloading Android SDK command line tools"
194-
wget https://dl.google.com/android/repository/commandlinetools-$(PLATFORM)-9477386_latest.zip
195+
wget https://dl.google.com/android/repository/commandlinetools-$(PLATFORM)-${SDKMANAGER_VERSION}_latest.zip
195196
rm -rf cmdline-tools
196-
unzip commandlinetools-$(PLATFORM)-9477386_latest.zip -d $(SDK)
197+
unzip commandlinetools-$(PLATFORM)-${SDKMANAGER_VERSION}_latest.zip -d $(SDK)
197198
mv $(SDK)/cmdline-tools $(SDK)/latest
198199
mkdir -p $(SDK)/cmdline-tools
199200
mv $(SDK)/latest $(SDK)/cmdline-tools/latest
200-
rm commandlinetools-$(PLATFORM)-9477386_latest.zip
201+
rm commandlinetools-$(PLATFORM)-${SDKMANAGER_VERSION}_latest.zip
201202

202203
sdk: $(SDK)/cmdline-tools/latest/bin/sdkmanager
203204
yes y | $(SDK)/cmdline-tools/latest/bin/sdkmanager "platform-tools"
204205
yes y | $(SDK)/cmdline-tools/latest/bin/sdkmanager "platforms;android-$(ANDROID_API)"
205206
yes y | $(SDK)/cmdline-tools/latest/bin/sdkmanager "system-images;android-$(ANDROID_API);default;x86_64"
206-
yes y | $(SDK)/cmdline-tools/latest/bin/sdkmanager "build-tools;30.0.3"
207+
yes y | $(SDK)/cmdline-tools/latest/bin/sdkmanager "build-tools;35.0.0"
207208
yes y | $(SDK)/cmdline-tools/latest/bin/sdkmanager "ndk;$(ANDROIDNDKVER)"
208209
ln -sfT ndk/$(ANDROIDNDKVER) $(SDK)/ndk-bundle
209210
@echo "Accepting all licenses"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Wraps Kolibri in an android-compatibility layer. Relies on Python-For-Android to
66

77
1. Setup a Python virtual environment in which to do development. The Kolibri developer documentation has a [How To guide for doing this with pyenv](https://kolibri-dev.readthedocs.io/en/develop/howtos/pyenv_virtualenv.html) but any Python virtualenv should work.
88

9-
2. Ensure you have all [necessary packages for Python for Android](https://python-for-android.readthedocs.io/en/latest/quickstart/#installing-dependencies). Ensure you install java version 1.11, `sudo apt install openjdk-11-jdk` , and set it as the default java version: `sudo update-alternatives --auto javac` and `sudo update-alternatives --auto java`.
9+
2. Ensure you have all [necessary packages for Python for Android](https://python-for-android.readthedocs.io/en/latest/quickstart/#installing-dependencies). Ensure you install java version 1.17, `sudo apt install openjdk-17-jdk` , and set it as the default java version: `sudo update-alternatives --auto javac` and `sudo update-alternatives --auto java`.
1010

1111
3. The `make setup` command will install the Android SDK and Android NDK.
1212

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cython~=0.29
22
ifaddr
33
virtualenv
44
setuptools
5-
git+https://github.com/learningequality/python-for-android@60f3bf7d653d3e4e97d8371feaef221ffcdeb421#egg=python-for-android
5+
git+https://github.com/learningequality/python-for-android@632047c77661710e1ed19b110ef78402c4c64228#egg=python-for-android
66
google-api-python-client==2.96.0
77
google-auth==2.22.0
88
google-auth-httplib2==0.1.0

0 commit comments

Comments
 (0)