-
Notifications
You must be signed in to change notification settings - Fork 84
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
Doesn't work with '-useLegacyAOT no' #75
Comments
That's for iOS packaging, right? Then I can't test anymore – don't have certificates and everything.. You can try debugging yourself starting with It should be very easy once you find where the chain is broken. |
It looks like GestureState const items are interpreted as the same object, in _initClass function "POSSIBLE.setValidNextStates(RECOGNIZED, BEGAN, FAILED);" RECOGNIZED, BEGAN, FAILED its the same static object. My solution: to: look at: http://helpx.adobe.com/flash-builder/actionscript-compiler-backward-compatibility.html |
@remunizz |
@fljot An update to the latest AIR SDK (4.6) also fixed this issue, |
@johnstejskal latest AIR SDK is 14. Was that typo? @remunizz @johnstejskal so I'm confused, should I make any changes or it works fine with the latest SDK and compiler? |
My apologies, yes AIR 14 is working with 'useLegacyAOT no' |
@fljot @johnstejskal Yes, My fix is for earlier versions of AIR 14, |
This seems to be broken again in AIR 16. I need to update an app for 64 Bit Support and this fix isn't working :( Does anyone know of a fix for AIR 16 ? Any help is appreciated. |
@jonathonpitman as I said before, I can't test that. But there was another problem related to GestureState static initialization recently #71 which is solvable, but still.. maybe I should get rid of static initialization thing and do that states configuration differently. |
@johnstejskal I summon you |
Tried the for loop fix as well.. still doesn't work with -useLegacyAOT no :( |
@jonathonpitman ok as a first quickfix option I recommend you to try to replace const with var and create those in _initClass() method. If won't work – we need to move those static constants into different class. |
in which file do I need to do this ? |
GestureState we are talking about |
You mean change for example public static const POSSIBLE:GestureState = new cls("POSSIBLE") as GestureState; to public static var POSSIBLE:GestureState = new cls("POSSIBLE") as GestureState; What do I put in the _initClass ? |
@jonathonpitman yes, const to var, but then you put new ... into _initClass() |
LIke public static var POSSIBLE:GestureState; then POSSIBLE = new cls("POSSIBLE") as GestureState; Like that ? |
No errors .. this is what I have changed... still doesnt work though. package org.gestouch.core
} |
What is "doesn't work" exactly? Is it the same issues as originally that constants are somehow all equal? Or what? Does _initClass() method even executed? Try inlining static initializator (_initClass()) (see example below). If you're short in time and need a really quickfix, try to move all constants into another class, let's say GestureStates (note the trailing s) or GestureStateEnum:
|
Make some effort, it's just a few calls! Cmon people, I don't have any profiles to test myself. |
What's not working for me is that it becomes unresponsive. No touch detected. There are no errors though. Even when debugging from iOS to the remote debugger there is no errors. |
I am really confused here.. sorry ;( |
Something crashes the whole app .. nothing responds once Gestouch is initialized. ... Strange that no errors are thrown though. |
Well you have to add some logs to understand where it don't work, right? |
I have put in trace statements. I can see that the _init function is called. So it is getting that far. |
So, are the gesture states (constants) initialized properly? |
Weird... Everything is working with the new public release of AIR 16 |
And this is why I'm leaving Flash platform... |
to make matters worse... Now everything is working great in my app .. I submitted it and Apple rejected it instantly. Invalid Binary Error Minimum OS Version Mismatch - The minimum OS version (LC_VERSION_MIN_IPHONEOS) in the binary ('6.0') for architecture ('armv7') differs from the MinimumOSVersion ('7.0') in the Info.plist. Ughhhh! .. It's really tooo bad. I love making apps in AIR .. it's so easy to make cross platform apps. |
I can only get this Library to work with standard compiling, when using the new quick compile with '-useLegacyAOT no' gestures no longer work.
This is fine, but with large projects which can take up to 1 hour to compile, it becomes a problem. Is there anyway to have this library work with the quick compile?
The text was updated successfully, but these errors were encountered: