From 24888f81f0f34d750b39d5999ad794e7a3946ad4 Mon Sep 17 00:00:00 2001 From: Gabriel Pettier Date: Sun, 14 Oct 2018 13:06:27 +0200 Subject: [PATCH 1/2] allow setting the value for android:allowBackup --- doc/source/recipes.rst | 3 +-- pythonforandroid/bootstraps/sdl2/build/build.py | 2 ++ .../bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/source/recipes.rst b/doc/source/recipes.rst index 329fe25e5c..66bde4248c 100644 --- a/doc/source/recipes.rst +++ b/doc/source/recipes.rst @@ -13,8 +13,7 @@ be compiled for Android with the correct architecture. python-for-android comes with many recipes for popular modules. No recipe is necessary for Python modules which have no -compiled components; these are installed automaticaly via pip. - +compiled components; these are installed automatically via pip. If you are new to building recipes, it is recommended that you first read all of this page, at least up to the Recipe reference documentation. The different recipe sections include a number of diff --git a/pythonforandroid/bootstraps/sdl2/build/build.py b/pythonforandroid/bootstraps/sdl2/build/build.py index 3c4ccf42d3..48f00bb484 100644 --- a/pythonforandroid/bootstraps/sdl2/build/build.py +++ b/pythonforandroid/bootstraps/sdl2/build/build.py @@ -518,6 +518,8 @@ def parse_args(args=None): help='Add this Java class as an Activity to the manifest.') ap.add_argument('--activity-launch-mode', dest='activity_launch_mode', help='Set the launch mode of the main activity in the manifest.') + ap.add_argument('--allow-backup', dest='allow_backup', default='true', + help="if set to 'false', then android won't backup the application.") if args is None: args = sys.argv[1:] diff --git a/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml b/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml index 4181e07926..d24a972bfe 100644 --- a/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml +++ b/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml @@ -53,7 +53,7 @@ --> From 6cb1baaf739dd121918e1fa0c84d6f3bc2748eee Mon Sep 17 00:00:00 2001 From: Gabriel Pettier Date: Sat, 3 Nov 2018 12:44:06 +0100 Subject: [PATCH 2/2] fix syntax for allowBackup value in AndroidManifest --- .../bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml b/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml index d24a972bfe..59956c048e 100644 --- a/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml +++ b/pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml @@ -53,7 +53,7 @@ -->