Skip to content

Commit a8f2ca1

Browse files
authored
Update Android Gradle Plugin to 8.11.0 and Gradle Wrapper to 8.14.3 + update default API target to 35 in tests (#3172)
* 🔧 build: upgrade Gradle wrapper to `8.14.3` * `distributionUrl` now points to `gradle‑8.14.3‑all.zip` * 🔧 build: bump AGP to `8.11.0`, replace `jcenter()` with `mavenCentral()` * Update `android-api` to 35 in `testapps/on_device_unit_tests/setup.py` * Update target android.api to 35 in buildozer.spec * Update `ANDROID_API_LEVEL` to 35 in `android.mk` * Set `APP_PLATFORM` in `Application.mk` to use `NDK_API` * Add `Application.mk` with `APP_PLATFORM` for service_library bootstrap Hopefully [this](https://github.com/kivy/python-for-android/actions/runs/16309986846/job/46063689527?pr=3172) will pass * Define `APP_ABI` variable in `Application.mk` for arch targeting
1 parent 6f3ab80 commit a8f2ca1

File tree

7 files changed

+12
-9
lines changed

7 files changed

+12
-9
lines changed

ci/makefiles/android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ANDROID_NDK_VERSION_LEGACY ?= 21e
66
ANDROID_SDK_TOOLS_VERSION ?= 6514223
77
ANDROID_SDK_BUILD_TOOLS_VERSION ?= 29.0.3
88
ANDROID_HOME ?= $(HOME)/.android
9-
ANDROID_API_LEVEL ?= 27
9+
ANDROID_API_LEVEL ?= 35
1010

1111
# per OS dictionary-like
1212
UNAME_S := $(shell uname -s)

pythonforandroid/bootstraps/common/build/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip

pythonforandroid/bootstraps/common/build/templates/build.tmpl.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
buildscript {
33
repositories {
44
google()
5-
jcenter()
5+
mavenCentral()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:8.1.1'
8+
classpath 'com.android.tools.build:gradle:8.11.0'
99
}
1010
}
1111

1212
allprojects {
1313
repositories {
1414
google()
15-
jcenter()
15+
mavenCentral()
1616
{%- for repo in args.gradle_repositories %}
1717
{{repo}}
1818
{%- endfor %}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
APP_PLATFORM := $(NDK_API)
2+
APP_ABI := $(ARCH)

pythonforandroid/bootstraps/webview/build/jni/Application.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55

66
# APP_ABI := armeabi armeabi-v7a x86
77
APP_ABI := $(ARCH)
8+
APP_PLATFORM := $(NDK_API)

testapps/on_device_unit_tests/buildozer.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fullscreen = 0
8888
#android.permissions = INTERNET
8989

9090
# (int) Target Android API, should be as high as possible.
91-
#android.api = 27
91+
android.api = 35
9292

9393
# (int) Minimum API your APK will support.
9494
#android.minapi = 21

testapps/on_device_unit_tests/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
'requirements':
4343
'sqlite3,libffi,openssl,pyjnius,kivy,python3,requests,urllib3,'
4444
'chardet,idna',
45-
'android-api': 27,
45+
'android-api': 35,
4646
'ndk-api': 24,
4747
'dist-name': 'bdist_unit_tests_app',
4848
'arch': 'armeabi-v7a',
@@ -56,7 +56,7 @@
5656
'requirements':
5757
'sqlite3,libffi,openssl,pyjnius,kivy,python3,requests,urllib3,'
5858
'chardet,idna',
59-
'android-api': 27,
59+
'android-api': 35,
6060
'ndk-api': 24,
6161
'dist-name': 'bdist_unit_tests_app',
6262
'arch': 'armeabi-v7a',
@@ -68,7 +68,7 @@
6868
'aar':
6969
{
7070
'requirements' : 'python3',
71-
'android-api': 27,
71+
'android-api': 35,
7272
'ndk-api': 24,
7373
'dist-name': 'bdist_unit_tests_app',
7474
'arch': 'arm64-v8a',

0 commit comments

Comments
 (0)