switch config key to use underscore

This commit is contained in:
Brent Picasso 2018-12-01 12:16:34 -08:00
parent 9bb9dd590c
commit d77d9714ff
2 changed files with 2 additions and 2 deletions

View file

@ -100,7 +100,7 @@ fullscreen = 0
#android.ndk = 9c
# (int) Android NDK API to use (optional). This is the minimum API your app will support.
#android.ndk.api = 19
#android.ndk_api = 19
# (bool) Use --private data storage (True) or --dir public storage (False)
#android.private_storage = True

View file

@ -29,7 +29,7 @@ class TargetAndroidNew(TargetAndroid):
color = 'always' if USE_COLOR else 'never'
self.extra_p4a_args = ' --color={} --storage-dir="{}"'.format(
color, self._build_dir)
ndk_api = self.buildozer.config.getdefault('app', 'android.ndk.api', None)
ndk_api = self.buildozer.config.getdefault('app', 'android.ndk_api', None)
if ndk_api is not None:
self.extra_p4a_args += ' --ndk-api={}'.format(ndk_api)
hook = self.buildozer.config.getdefault("app", "p4a.hook", None)