From ee833cfe98e52c977103a4669065cd8d657e3e35 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Wed, 30 Jan 2019 12:45:02 +0000 Subject: [PATCH 1/2] Updated buildozer defaults to use, and work with, p4a master --- buildozer/default.spec | 14 +++++++------- buildozer/targets/android.py | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/buildozer/default.spec b/buildozer/default.spec index 99f5fc6..273bb70 100644 --- a/buildozer/default.spec +++ b/buildozer/default.spec @@ -87,20 +87,20 @@ fullscreen = 0 # (list) Permissions #android.permissions = INTERNET -# (int) Android API to use -#android.api = 19 +# (int) Target Android API, should be as high as possible. +#android.api = 27 -# (int) Minimum API required. You will need to set the android.ndk_api to be as low as this value. -#android.minapi = 9 +# (int) Minimum API your APK will support. +#android.minapi = 21 # (int) Android SDK version to use #android.sdk = 20 # (str) Android NDK version to use -#android.ndk = 9c +#android.ndk = 17c -# (int) Android NDK API to use (optional). This is the minimum API your app will support. -#android.ndk_api = 19 +# (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi. +#android.ndk_api = 21 # (bool) Use --private data storage (True) or --dir public storage (False) #android.private_storage = True diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index aa12e67..f5c8b31 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -14,10 +14,10 @@ if sys.platform == 'win32': from platform import uname WSL = 'Microsoft' in uname()[2] -ANDROID_API = '19' -ANDROID_MINAPI = '9' +ANDROID_API = '27' +ANDROID_MINAPI = '21' ANDROID_SDK_VERSION = '20' -ANDROID_NDK_VERSION = '9c' +ANDROID_NDK_VERSION = '17c' APACHE_ANT_VERSION = '1.9.4' import traceback From c8e888dbbfee74c19527bbae5e88c0f10ac122b1 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Wed, 30 Jan 2019 12:50:22 +0000 Subject: [PATCH 2/2] Changed default python-for-android branch to master --- buildozer/default.spec | 4 ++-- buildozer/targets/android_new.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/buildozer/default.spec b/buildozer/default.spec index 273bb70..848510b 100644 --- a/buildozer/default.spec +++ b/buildozer/default.spec @@ -152,8 +152,8 @@ fullscreen = 0 # (list) Java classes to add as activities to the manifest. #android.add_activites = com.example.ExampleActivity -# (str) python-for-android branch to use, defaults to stable -#p4a.branch = stable +# (str) python-for-android branch to use, defaults to master +#p4a.branch = master # (str) OUYA Console category. Should be one of GAME or APP # If you leave this blank, OUYA support will not be enabled diff --git a/buildozer/targets/android_new.py b/buildozer/targets/android_new.py index e21f491..4e1e2cc 100644 --- a/buildozer/targets/android_new.py +++ b/buildozer/targets/android_new.py @@ -13,7 +13,7 @@ from os.path import join, expanduser, realpath class TargetAndroidNew(TargetAndroid): targetname = 'android' - p4a_branch = "stable" + p4a_branch = "master" p4a_directory = "python-for-android-new-toolchain" p4a_apk_cmd = "apk --debug --bootstrap=" extra_p4a_args = ''