Cross-platform SDK and HTML5 tools for mobile app development
X
 
5 posts / 0 new
Last post
turbo@bayour.com
turbo@bayour.com's picture
Offline
Mobile Conjurer
Joined: 25 Feb 2010
Posts:
Version string

I was playing around my phone yesterday, and 'accidentally' selected 'Info' on top of my app and saw that it said

Quote:
Version: 1.0

I consider my app to be version 0.93 (I put that in a define in a header file). Where do I change the '1.0' number? Is it possible to get that from the define, so that I don't have to specify it twice.
OR, in the code access the place where '1.0' is now set ( so I could get rid of the header file)?

turbo@bayour.com
turbo@bayour.com's picture
Offline
Mobile Conjurer
Joined: 25 Feb 2010
Posts:
Re: Version string

Thanx!

Fredrik Eldh
Fredrik's picture
Offline
Mobile Sourcerer
Joined: 16 Feb 2009
Posts:
Re: Version string

We have an inssue on this subject.

turbo@bayour.com
turbo@bayour.com's picture
Offline
Mobile Conjurer
Joined: 25 Feb 2010
Posts:
Re: Version string

I've only checked it on my own cell, a Nokiga 5310_ExpressMusic (Java). And yes, I do see more. It was just the Version string that I noticed right away.

The full info is:

Name: LastBerakning
Size: 139kB
Created: 2010-03-14 00:59
Version: 1.0
Manufacturer: Mobile Sorcery
Certificate: No

And I have managed to find this in the 'META-INF/manifest.mf. And that this file is generated at 'compile time' (and all information is hardcoded).
I.e. It does not read this information from anywere, all (!) info is hardcoded in two MoSync source code files.
{syntaxhighlighter brush: cpp;fontsize: 100; first-line: 1; }
[celia.pts/3]$ rgrep manifest.mf . 2> /dev/null
./eclipse/com.mobilesorcery.sdk.builder.java/src/com/mobilesorcery/sdk/builder/java/JavaPackager.java: File manifest = new File(internal.resolve("%compile-output-dir%\\META-INF\\manifest.mf")); //$NON-NLS-1$
./mosync-trunk/tools/RuntimeBuilder/BuildJavaME.rb: File.open("#{temp_dir}manifest.mf", "w") do |infile|
./mosync-trunk/tools/RuntimeBuilder/BuildJavaME.rb: system("jar cfm #{runtime_dir}MoSyncRuntimeTemp.jar #{temp_dir}manifest.mf -C #{dos_cl
{/syntaxhighlighter}

It (MoSync) creates a manifest.mf which is included into the .jar file and also the .jad. I tried to modify the in-jar file (unpack it, change it and then repack it) and the jad file, but that ended up with a broken app which my cell wanted to remove...

Alex Jonsson
alexj's picture
Offline
Mobile Conjurer
Joined: 8 Sep 2009
Posts:
Re: Version string

That's most probably something in the runtime env. Let me ask some more detail, and we'll have a look at it.
It is under j2me this occurs, or have you seen it elsewhere under other OS?

The idea is that the version should be more elaborate than so, for sure. Get back to me and we'll haves someone look at that right away.

best

Alex

Login or register to post comments