Added --private and --dir Android storage option

This commit is contained in:
Ben Rousch 2013-10-29 13:28:40 -04:00
parent a8dba50178
commit d846f7e966
2 changed files with 6 additions and 1 deletions

View file

@ -66,6 +66,9 @@ fullscreen = 1
# (str) Android NDK version to use
#android.ndk = 9
# (bool) Use --private data storage (True) or --dir public storage (False)
#android.privatestorage = True
# (str) Android NDK directory (if empty, it will be automatically downloaded.)
#android.ndk_path =

View file

@ -403,13 +403,15 @@ class TargetAndroid(Target):
'{python} build.py --name {name}'
' --version {version}'
' --package {package}'
' --private {appdir}'
' --{storage_type} {appdir}'
' --sdk {androidsdk}'
' --minsdk {androidminsdk}').format(
python=executable,
name=quote(config.get('app', 'title')),
version=version,
package=package,
storage_type='private' if config.getbooldefault(
'app', 'android.privatestorage', True) else 'dir',
appdir=self.buildozer.app_dir,
androidminsdk=config.getdefault(
'app', 'android.minsdk', 8),