Jump to content
Poweramp
Sign in to follow this  
tony

How to make skin support both 5.0+ and 5.0- android version

Recommended Posts

Do I need to upload two different APKs in order to support 5.0+ and 5.0- ?

because ant dist-shared only works on 5.0+

And ant dist have problem on 5.0+ when using user's style as parent in some styles.

I notice in skin_custom_rules.XML the different of dist and dist-shared is the --shared-lib aapt manipulator.

Share this post


Link to post
Share on other sites

Provided that you updated your Android SDK (as described here: http://forum.powerampapp.com/index.php?/topic/5047-poweramp-apiskin-sdk-update-2014-11-15/) and the Poweramp Skin SDK, you can build skin (or update existing skin) to support both cases.

 

The problem with Lollipop skin handling is that they "reserved" the attribute inheritance, Poweramp skins was using previously. This makes styles derived from other skin styles not possible for Lollipop and all such styles should be manually "un-packed".

 

We provided example for both cases in skin sdk. You may want to check this file:

 

https://github.com/maxmpz/powerampapi/blob/master/poweramp_skin_sdk/skin_classic/res/values/classic_skin_styles_single_apk.xml

 

and compare it vs this one:

 

https://github.com/maxmpz/powerampapi/blob/master/poweramp_skin_sdk/skin_classic/res/values/classic_skin_styles.xml

 

Thanks!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...