You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow updating target android sdk during "platform add"
The tns-android template uses by default sdk 17. If the user does not have it installed, we try to update it.
To do so safely, we have a white list of well-tested sdks. We match the white list with the installed sdks and take the newest one.
This commit depends on https://github.com/telerik/tns-android/commit/990f725d845364e33ca77d4e54212e0c2342bc55
Implements #173
this.validateAndroidTarget(frameworkDir);// We need framework to be installed to validate android target so we can't call this method in validate()
55
+
varnewTarget=this.validateAndroidTarget(frameworkDir);// We need framework to be installed to validate android target so we can't call this method in validate()
varoutput=this.$childProcess.exec('android list targets').wait();
202
-
if(!output.match(validTarget)){
203
-
this.$errors.fail("Please install Android target %s the Android newest SDK). Make sure you have the latest Android tools installed as well. Run \"android\" from your command-line to install/update any missing SDKs or tools.",
0 commit comments