From d20dd4676c37f73152d88aba40db024d6f27d21a Mon Sep 17 00:00:00 2001 From: Ryan Pessa Date: Tue, 17 Mar 2015 11:26:26 -0500 Subject: [PATCH] use uppercase name for ios source dirs --- buildozer/targets/android.py | 1 + buildozer/targets/ios.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index b72a8d5..3b35b7d 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -464,6 +464,7 @@ class TargetAndroid(Target): if not exists(dist_dir): need_compile = 1 + # len('requirements.source.') == 20, so use name[20:] source_dirs = {'P4A_{}_DIR'.format(name[20:]): realpath(expanduser(value)) for name, value in self.buildozer.config.items('app') diff --git a/buildozer/targets/ios.py b/buildozer/targets/ios.py index 7910b0d..3126402 100644 --- a/buildozer/targets/ios.py +++ b/buildozer/targets/ios.py @@ -128,7 +128,8 @@ class TargetIos(Target): if last_requirements != ios_requirements: need_compile = 1 - source_dirs = {'{}_DIR'.format(name[20:]): + # len('requirements.source.') == 20, so use name[20:] + source_dirs = {'{}_DIR'.format(name[20:].upper()): realpath(expanduser(value)) for name, value in self.buildozer.config.items('app') if name.startswith('requirements.source.')}