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 # (str) Android NDK version to use
#android.ndk = 9 #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.) # (str) Android NDK directory (if empty, it will be automatically downloaded.)
#android.ndk_path = #android.ndk_path =

View file

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