Wolfsbane Posted August 26, 2018 Share Posted August 26, 2018 Heya Panda's, Tried to export to Android. It built the Apk, I manually copied that onto my phone, and then installed it on my phone. I opened it. It shows the Panda splash screen for a second (I haven't done a custom splash screen) then that disappears, and I have nothing but a black screen. Did I do something wrong? I use some ES6 code in my game (but my understanding is that it's transpiled into ES5 on build). This is my first attempt at concerting a non-trivial app from Javascript to Android, so would accept any tips on what process I would go through to figure out what's going on? The build process is a bit of a black box at the moment, so I'm unsure how to approach this. Cheers, D Quote Link to comment Share on other sites More sharing options...
Wolfsbane Posted August 29, 2018 Author Share Posted August 29, 2018 The fix for this was removing using the ES6 style syntax of using let for variables, and replace them all with ES5< style var. @enpu, I thought from this post, that when Panda compiled, it went from ES6 to ES5? Probably the recommended standard for Panda devving should be ES5 until PhoneGap supports ES6 types. Quote Link to comment Share on other sites More sharing options...
enpu Posted August 29, 2018 Share Posted August 29, 2018 This sounds like a bug. What editor version did you use when exporting? Quote Link to comment Share on other sites More sharing options...
Wolfsbane Posted August 30, 2018 Author Share Posted August 30, 2018 I'm not on my laptop at the moment, but it (should) be the latest Beta build (beta-6?) Quote Link to comment Share on other sites More sharing options...
enpu Posted September 4, 2018 Share Posted September 4, 2018 I have done some research on this one. When you export to mobile that is not release/distribution build, the game code doesn't get minified and the code gets transpiled into ES5 compatible code only when minified. I did have minifying disabled on debug builds, because it's easier to debug the code that way. When you export unminified code to Android without Crosswalk, it depends on your devices webview if it supports ES6 or not. I have added new option "Minify debug builds" to settings, which is turned on by default. This will mean that all builds are minified and transpiled to ES5, but you can also disable it for more debugging friendly code. Wolfsbane 1 Quote Link to comment Share on other sites More sharing options...
Wolfsbane Posted September 4, 2018 Author Share Posted September 4, 2018 Aaaah, o.k. now I can follow what was happening. Okay, great, another mystery solved. Aand I'll go back to ES6 (because I never learn my lesson.. right??) Cheers mate! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.