Merge pull request #58 from brousch/android-storagetype-option
Added --private and --dir Android storage option
This commit is contained in:
commit
27187125af
2 changed files with 6 additions and 1 deletions
|
@ -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 =
|
||||||
|
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue