You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
Hi,
Is it possible to check if it's a debug build or release one, right in the code ? I find nothing similar to :
Display.getInstance().isSimulator();
I would like to know that for iOS platform because there is two build possibilities via menu, but I also need this for Android.
Thanks.
Dave Dyer
unread,
Aug 17, 2016, 6:49:23 PM8/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
I maintain two distinct builds sharing the same sources, and I use different version numbers for the builds, so I typically have version 1.xx as a release or beta build, and 2.xx as a debug build.
Shai Almog
unread,
Aug 18, 2016, 2:17:47 AM8/18/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
Hi, no. We don't know that since both builds in Apple terms are "release" builds. The differences are very minor
Jérémy MARQUER
unread,
Aug 18, 2016, 3:34:22 AM8/18/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
Dave : thanks, maybe I could do that. But when you will need to release a major version, you will switch from 1.XX to 3.XX directly ?!
Shai : Sure, but in your plugin, you know that when we click on "Send debug build" or "Send release build" button. So, maybe you can modify a value in the code.
Dave Dyer
unread,
Aug 18, 2016, 12:37:32 PM8/18/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
Dave : thanks, maybe I could do that. But when you will need to release a major version, you will switch from 1.XX to 3.XX directly ?!
Fortunately there are lots of version numbers available :) No one but me ever sees the debug sequence. Also, since it's a separate build, It's also possible to have other differences, for example embedding a console window in the debug version.
Shai Almog
unread,
Aug 19, 2016, 2:00:48 AM8/19/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
When you send a build this maps to the appropriate target in the build.xml file. You can modify that target in the build.xml file and do whatever you want.