Revert "When android.permissions list is left blank, it contains a null string [""]"
This reverts commit aa0a7f8195
.
This commit is contained in:
parent
aa0a7f8195
commit
91d2b10288
1 changed files with 3 additions and 4 deletions
|
@ -117,9 +117,9 @@ class TargetAndroid(Target):
|
|||
permissions = self.buildozer.config.getlist(
|
||||
'app', 'android.permissions', [])
|
||||
for permission in permissions:
|
||||
if permission and permission not in available_permissions:
|
||||
if permission not in available_permissions:
|
||||
errors.append(
|
||||
'[app] "android.permissions" contains an unknown'
|
||||
'[app] "android.permission" contain an unknown'
|
||||
' permission {0}'.format(permission))
|
||||
|
||||
super(TargetAndroid, self).check_configuration_tokens(errors)
|
||||
|
@ -372,8 +372,7 @@ class TargetAndroid(Target):
|
|||
permissions = config.getlist('app',
|
||||
'android.permissions', [])
|
||||
for permission in permissions:
|
||||
if permission:
|
||||
build_cmd += ' --permission {0}'.format(permission)
|
||||
build_cmd += ' --permission {0}'.format(permission)
|
||||
|
||||
# add presplash
|
||||
presplash = config.getdefault('app', 'presplash.filename', '')
|
||||
|
|
Loading…
Reference in a new issue