From d77d9714ff731cc63193534f3224f5783ce4595f Mon Sep 17 00:00:00 2001 From: Brent Picasso Date: Sat, 1 Dec 2018 12:16:34 -0800 Subject: [PATCH] switch config key to use underscore --- buildozer/default.spec | 2 +- buildozer/targets/android_new.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/buildozer/default.spec b/buildozer/default.spec index d8c8405..e2d5ab7 100644 --- a/buildozer/default.spec +++ b/buildozer/default.spec @@ -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 diff --git a/buildozer/targets/android_new.py b/buildozer/targets/android_new.py index f1b9c56..325b9d4 100644 --- a/buildozer/targets/android_new.py +++ b/buildozer/targets/android_new.py @@ -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)