Debug or Release apk? No different

Monkey Targets Forums/Android/Debug or Release apk? No different

Zurrr(Posted 2012) [#1]
I compile to android in realease mode but compiler report:

Installing C:\MonkeyPro61\project\streetpoker\streetpoker.build\android\bin\MonkeyGame-debug.apk onto default emulator or device...


Why compiler copy MonkeyGame-debug.apk? Is this mean the app is in debug mode?


therevills(Posted 2012) [#2]
Just ignore the name and compile it in release mode its faster.


Gerry Quinn(Posted 2012) [#3]
No, for some reason it is just always called MonkeyGame-debug.apk.

If you make a release version and a debug version, you'll see that although they are both called debug, the debug version is slightly larger, and the source contains lines like:
"bb_std_lang.errInfo="C:/Dev/Monkey/modules/mojo/graphics.monkey<200>";"
..which allow the Monkey line number to be printed out when the debug version crashes.

By the way, there is some added hassle in store for you before you can release your program: you have to sign and zipalign it. There's a post called 'Signing my app' which links to instructions for doing this.

Actually, maybe that's why it is called MonkeyGame-debug.apk: it is signed with your debug key.


therevills(Posted 2012) [#4]
Also the debug version uses different rendering code and its really slow...


golomp(Posted 2012) [#5]
keep the name "MonkeyGame-debug.apk" is usefull...
Our batch scripts use this name and we dont have to modify them when we sign them...