This commit is contained in:
Lau Ching Jun 2019-03-20 14:22:10 -07:00 committed by GitHub
parent b123846cb0
commit c33d263830
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -370,14 +370,14 @@ class AndroidSdk {
}
static bool validSdkDirectory(String dir) {
return sdkDirectoryHasLicneses(dir) || sdkDirectoryHasPlatformTools(dir);
return sdkDirectoryHasLicenses(dir) || sdkDirectoryHasPlatformTools(dir);
}
static bool sdkDirectoryHasPlatformTools(String dir) {
return fs.isDirectorySync(fs.path.join(dir, 'platform-tools'));
}
static bool sdkDirectoryHasLicneses(String dir) {
static bool sdkDirectoryHasLicenses(String dir) {
return fs.isDirectorySync(fs.path.join(dir, 'licenses'));
}