Skip to content

Commit

Permalink
Digging deeper
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian-O committed Aug 27, 2023
1 parent 2dc3850 commit fd12e99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ def sdkmanager_path(self):
('sdkmanager path "{}" does not exist, sdkmanager is not'
' installed'.format(sdkmanager_path)))
self.logger.debug(
"{}'s stat is {}",
sdkmanager_path,
os.stat(sdkmanager_path))
"{}'s stat is {}".format(
sdkmanager_path,
os.stat(sdkmanager_path)))
return sdkmanager_path

@property
Expand Down
12 changes: 9 additions & 3 deletions buildozer/targets/ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,15 @@ def check_requirements(self):
['xcodebuild', '-showsdks'],
get_stdout=True,
env=self.buildozer.environ).stdout
iphoneos_lines = [line for line in sdk_list if "iphoneos" in line]
last_iphoneos_line = iphoneos_lines[-1]
sdk = last_iphoneos_line.split()[1] # Second column
iphoneos_lines = [
line
for line in sdk_list.split("\n")
if "iphoneos" in line]
if not iphoneos_lines:
sdk = None
else:
last_iphoneos_line = iphoneos_lines[-1]
sdk = last_iphoneos_line.split()[1] # Second column

if not sdk:
raise Exception(
Expand Down

0 comments on commit fd12e99

Please sign in to comment.