summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/GlueGenVersion.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-07-28 15:27:17 +0200
committerSven Gothel <[email protected]>2011-07-28 15:27:17 +0200
commitdcaa3cb5cabfa11ae88fad266b54a1690148edf9 (patch)
tree52bdb20815315a7eda69539c3e01806c15457893 /src/java/com/jogamp/common/GlueGenVersion.java
parent02641c4d08853a1e0131336968f691fde8a30043 (diff)
Fix Android apk activity; Add apk VersionName; Add jar manifest to apk
- build: - exclude android packages if !isAndroid - aapt: - Use individual AndroidManifest xml files - optional: incl. our JAR manifest file to support detailed version info - use def. GluegenVersionActivity - APK VersionName: Retrieve and show - package/extension names: - gluegen.jar/apk: com.jogamp.gluegen - gluegen-rt.jar/apk: com.jogamp.common
Diffstat (limited to 'src/java/com/jogamp/common/GlueGenVersion.java')
-rw-r--r--src/java/com/jogamp/common/GlueGenVersion.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/java/com/jogamp/common/GlueGenVersion.java b/src/java/com/jogamp/common/GlueGenVersion.java
index c3dcc75..5ae3412 100644
--- a/src/java/com/jogamp/common/GlueGenVersion.java
+++ b/src/java/com/jogamp/common/GlueGenVersion.java
@@ -44,9 +44,15 @@ public class GlueGenVersion extends JogampVersion {
if(null == jogampCommonVersionInfo) { // volatile: ok
synchronized(GlueGenVersion.class) {
if( null == jogampCommonVersionInfo ) {
- final String packageName = "com.jogamp.common";
- final Manifest mf = VersionUtil.getManifest(GlueGenVersion.class.getClassLoader(), "com.jogamp.common");
- jogampCommonVersionInfo = new GlueGenVersion(packageName, mf);
+ final String packageNameCompileTime = "com.jogamp.gluegen";
+ final String packageNameRuntime = "com.jogamp.common";
+ Manifest mf = VersionUtil.getManifest(GlueGenVersion.class.getClassLoader(), packageNameRuntime);
+ if(null != mf) {
+ jogampCommonVersionInfo = new GlueGenVersion(packageNameRuntime, mf);
+ } else {
+ mf = VersionUtil.getManifest(GlueGenVersion.class.getClassLoader(), packageNameCompileTime);
+ jogampCommonVersionInfo = new GlueGenVersion(packageNameCompileTime, mf);
+ }
}
}
}