♻️ Minor check_requirements() refactoring (#1274)

This commit is contained in:
Andre Miras 2021-02-19 01:04:38 +01:00 committed by GitHub
parent 54b2975f57
commit 7ebc048c97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -243,10 +243,7 @@ class TargetAndroid(Target):
'adb.exe')
self.javac_cmd = self._locate_java('javac.exe')
self.keytool_cmd = self._locate_java('keytool.exe')
elif platform in ('darwin', ):
self.adb_cmd = join(self.android_sdk_dir, 'platform-tools', 'adb')
self.javac_cmd = self._locate_java('javac')
self.keytool_cmd = self._locate_java('keytool')
# darwin, linux
else:
self.adb_cmd = join(self.android_sdk_dir, 'platform-tools', 'adb')
self.javac_cmd = self._locate_java('javac')