Skip to content

Allow updating target android sdk during "platform add"#183

Merged
teobugslayer merged 1 commit intomasterfrom
totev/sdk-update
Jan 16, 2015
Merged

Allow updating target android sdk during "platform add"#183
teobugslayer merged 1 commit intomasterfrom
totev/sdk-update

Conversation

@teobugslayer
Copy link
Copy Markdown
Contributor

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

@teobugslayer teobugslayer added this to the v0.5 milestone Jan 15, 2015
@teobugslayer teobugslayer self-assigned this Jan 15, 2015
@ns-bot
Copy link
Copy Markdown

ns-bot commented Jan 15, 2015

Test PASSed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return type must be IFuture as you have .wait() in its body.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shall wait and see (pun intended).

@dtopuzov
Copy link
Copy Markdown
Contributor

👍

Comment thread lib/services/android-project-service.ts Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you can use findLast instead of reverse and find
https://lodash.com/docs#findLast

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
@rosen-vladimirov
Copy link
Copy Markdown
Contributor

👍

@ns-bot
Copy link
Copy Markdown

ns-bot commented Jan 16, 2015

Test PASSed.

teobugslayer added a commit that referenced this pull request Jan 16, 2015
Allow updating target android sdk during "platform add"
@teobugslayer teobugslayer merged commit 034aa82 into master Jan 16, 2015
@teobugslayer teobugslayer deleted the totev/sdk-update branch March 13, 2015 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants