hyperfiction/HypSystem — pull request #18 by fbricker (2014-08-24 16:22:28+00:00)
Title: Allow the project to compile to all targets + fix android getLanguageCode + more...

Hi, this commit includes 4 changes:

1) I've noticed that if you're compiling for Mac, Windows, Linux, HTML5 (or targets different than Android, iOS and flash), you cannot compile Md5 and SharedObject are not imported.

2) On android, I've changed the way to return the getLanguageCode, so you can get stuff like this: en-US / es-AR / zh-TW / zh-CN (this is quite important if you want to be able to distinguish simplified Chinese from tradicional Chinese), and on iOS version this is already working like this (at least with chinese).

3) Replaced the sdk target version on joda-time library with the project target-version, so it does not generates conflict with the project target version.

4) On targets other than flash, android and ios, you get 'unknown' when you call getLanguageCode. I think it'll be nice to let that function rely on Capabilities.language for every other platform.

I know that this can be fixed by creating a small function like this:

function myGetLangCode(){
var lang:String=Device.getLanguageCode();
if(lang!='unknow') return lang;
return flash.system.Capabilities.language;
}

But it'll be nice not having to do that :)

By the way... thanks for this extension... (It rocks!)

Federico