I have started working on OS version computing for Android in MediaQueryParser 
and would like your advice on something.

Currently, MQP supports min- and max- for number properties only.
So I had to turn version strings to numbers to allow comparison
The version number for X.Y.Z is X + Y/100 + Z/10000.

AND 4.1.2 would turn to 4.0102

So to set a css for Android 4.1.2 and higher (don't know if that makes sense), 
you would use the following css:

(os = "AND" and min-os-version = 4.0102)

Is that acceptable (as long as it is documented) ?

Otherwise, I will have to change MQP parsing and comparison logic to handle 
comparison for version strings.  

WDYT?

Maurice 

NB: the problem didn't happen before because  for iOS, only the major version 
was relevant 

-----Message d'origine-----
De : Maurice Amsellem [mailto:maurice.amsel...@systar.com] 
Envoyé : samedi 15 mars 2014 12:06
À : dev@flex.apache.org
Objet : RE: Building new skins for Android 4.x and iOS7

>So does it have to bee an ANE, like you had originally thought?

Some forum (I need to find the link) says we can find the version in an Android 
system file.
I have an Android device (from my work, Samsung Tab 3 7") so I can test it now.
Hopefully, it won't be an ANE.

Maurice 

-----Message d'origine-----
De : omup...@gmail.com [mailto:omup...@gmail.com] De la part de OmPrakash 
Muppirala Envoyé : samedi 15 mars 2014 11:58 À : dev@flex.apache.org Objet : 
RE: Building new skins for Android 4.x and iOS7

On Mar 15, 2014 1:47 AM, "Maurice Amsellem" <maurice.amsel...@systar.com>
wrote:
>
> BTW, I am not familiar with Android devices.  Is there a notable
difference in skins between different versions of Android (same as iOS6 / iOS 
7) ?
>
> If not, then maybe version computing is not a requirement for skinning
(but good to have anyway, for completion of MediaQueryParser).
>
> Maurice
>

Oh, there is a huge difference between the current ones we have (Android 2
skins) and the latest ones (Android 4 skins)

It would be great to know the Android version.

So does it have to bee an ANE, like you had originally thought?

Thanks,
Om

> -----Message d'origine-----
> De : Maurice Amsellem [mailto:maurice.amsel...@systar.com]
> Envoyé : samedi 15 mars 2014 09:44
> À : dev@flex.apache.org
> Objet : RE: Building new skins for Android 4.x and iOS7
>
> I also need to add version computation for Android to MediaQueryParser.
>
> It can't be determined accurately from Capabilies.os / .version.  
> There
are alternative methods by reading internal files.
> I need to try it.
>
> There is a ticket for that.
>
> Maurice
>
> -----Message d'origine-----
> De : omup...@gmail.com [mailto:omup...@gmail.com] De la part de 
> OmPrakash
Muppirala Envoyé : samedi 15 mars 2014 09:16 À :
dev@flex.apache.orgObjet : Building new skins for Android 4.x and iOS7
>
> Continuing the discussion from another thread, lets talk about what it
would take to create and deploy new skins for Android 4.x and iOS7.
>
> A while ago, I started working on the new android skins into the
flex-sdk's "new_android_skins" branch. and checked in a few FXG assets .
 There is also a jira ticket where we are tracking the progress [1]
>
> So far, we have assets for:
> 1.  ActionBar
> 2.  Button
> 3.  CheckBox
>
> Interested folks can checkout the "new_android_skins" branch and start
swapping out the FXG in the corresponding skins.  I am currently leaning on 
creating a new css file to test things out.  Then, when we are happy, we can 
change the defaults.css file.
>
> Any other thoughts/ideas on how to proceed?
>
> Thanks,
> Om
>
> [1] https://issues.apache.org/jira/browse/FLEX-33732

Reply via email to