haxeextension / extension-gpgrest Goto Github PK
View Code? Open in Web Editor NEWOpenfl extension to use Google Play Games REST services.
Openfl extension to use Google Play Games REST services.
The .then() handler after .when() is missing a return true;
Otherwise triggers :
/usr/local/lib/haxe/lib/promhx/1,1,0/src/main/promhx/Promise.hx:60: characters 58-71 : Cannot use Void as value
on iOS build since return is missing
On android or ios, fails with message:
C:/HaxeToolkit/haxe/lib/extension-gpgrest/1,0,1/Source/com/sempaigames/gplayrest/Auth.hx:4: characters 7-32 : Type not found : extension.webview.WebView
assume this is this https://github.com/openfl/extension-webview dependency that is missing...
On android, crash with the error message:
I/trace ( 4388): WebView.hx:72: INIT Exception: JNI Exception
I/trace ( 4388): Lib.hx:360: Null Function Pointer
I/trace ( 4388): Called from extension.webview.WebView.open (extension/webview/WebView.hx line 34)
I/trace ( 4388): Called from com.sempaigames.gplayrest.Auth.getAuthCode (com/sempaigames/gplayrest/Auth.hx line 86)
I/trace ( 4388): Called from com.sempaigames.gplayrest.Auth.loginUsingAuthCode (com/sempaigames/gplayrest/Auth.hx line 214)
I/trace ( 4388): Called from com.sempaigames.gplayrest.Auth.login (com/sempaigames/gplayrest/Auth.hx line 252)
I/trace ( 4388): Called from com.sempaigames.gplayrest.GooglePlayGames.displayScoreboard (com/sempaigames/gplayrest/GooglePlayGames.hx line 57)
I/trace ( 4388): Called from extension.multigames.Multigames.displayLeaderboard (extension/multigames/Multigames.hx
line 98)
I/trace ( 4388): Called from ui.MainMenuState.click_leaderboard (ui/MainMenuState.hx line 146)
I/trace ( 4388): Called from openfl._legacy.events.EventDispatcher.dispatchEvent (openfl/_legacy/events/EventDispatcher.hx line 98)
I/trace ( 4388): Called from openfl._legacy.display.DisplayObject.__dispatchEvent (openfl/_legacy/display/DisplayObject.hx line 182)
I checked parametters received by the WebView.open() function called from Auth.getAuthCode() and the urlWhitelist is NULL. Don't know if that might be the cause of the problem or if this is actually a JNI binding issue in the webview extension (wich I succeded to make work once on android and there doesn't seem to be any update since so I don't think the problem is on the webview extension)
Can't compile with openfl next mode:
C:/HaxeToolkit/haxe/lib/extension-gpgrest/1,0,1/Source/com/sempaigames/gplayrest/ui/BmpD
ataCache.hx:47: characters 14-38 : Class has no field loadFromBytes
C:/HaxeToolkit/haxe/lib/extension-gpgrest/1,0,1/Source/com/sempaigames/gplayrest/ui/UrlB
mp.hx:71: characters 29-53 : Class has no field loadFromBytes
C:/HaxeToolkit/haxe/lib/extension-gpgrest/1,0,1/Source/com/sempaigames/gplayrest/ui/BmpD
ataCache.hx:60: characters 27-32 : String should be openfl.geom.Rectangle
C:/HaxeToolkit/haxe/lib/extension-gpgrest/1,0,1/Source/com/sempaigames/gplayrest/ui/BmpD
ataCache.hx:60: characters 27-32 : For function argument 'rect'
C:/HaxeToolkit/haxe/lib/extension-gpgrest/1,0,1/Source/com/sempaigames/gplayrest/ui/Prog
ressBmp.hx:94: characters 39-47 : Float should be Null
C:/HaxeToolkit/haxe/lib/extension-gpgrest/1,0,1/Source/com/sempaigames/gplayrest/ui/Prog
ressBmp.hx:94: characters 39-47 : Float should be Int
C:/HaxeToolkit/haxe/lib/extension-gpgrest/1,0,1/Source/com/sempaigames/gplayrest/ui/Prog
ressBmp.hx:94: characters 39-47 : For optional function argument 'size'
no issue when compiling with openfl legacy mode though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.