Skip to content

Copy styles for supported Android versions #566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2015

Conversation

rosen-vladimirov
Copy link
Contributor

Inside tns-android resources, there are values-v<API_LEVEL> directories. Currently we were copying only values-v21 in case the current project targets API_LEVEL 21. Instead we should copy it when the project targets API_LEVEL 21 or upper (in case there's no newer directory, for example values-v22).
For example:

  • $ tns platform add android --sdk 22 - should copy values and values-v21 in your platforms/android/res dir
  • $ tns platform add android --sdk 21 - should copy values and values-v21 in your platforms/android/res dir
  • $ tns platform add android --sdk MNC - should copy values and values-v21 in your platforms/android/res dir
  • $ tns platform add android --sdk 17 - should copy values in your platforms/android/res dir

Inside tns-android resources, there are values-v<API_LEVEL> directories. Currently we were copying only values-v21 in case the current project targets API_LEVEL 21. Instead we should copy it when the project targets API_LEVEL 21 or upper (in case there's no newer directory, for example values-v22).
For example:
* `$ tns platform add android --sdk 22` - should copy values and values-v21 in your platforms/android/res dir
* `$ tns platform add android --sdk 21` - should copy values and values-v21 in your platforms/android/res dir
* `$ tns platform add android --sdk MNC` - should copy values and values-v21 in your platforms/android/res dir
* `$ tns platform add android --sdk 17` - should copy values in your platforms/android/res dir
@rosen-vladimirov rosen-vladimirov self-assigned this Jun 15, 2015
@rosen-vladimirov rosen-vladimirov added this to the 1.1.1 milestone Jun 15, 2015
@ns-bot
Copy link

ns-bot commented Jun 15, 2015

@dtopuzov
Copy link
Contributor

👍

@teobugslayer
Copy link
Contributor

👍 The lodash chain is awesome!

rosen-vladimirov added a commit that referenced this pull request Jun 15, 2015
@rosen-vladimirov rosen-vladimirov merged commit e8bbeac into release Jun 15, 2015
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-values-copying branch June 15, 2015 13:27
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.

4 participants