diff options
author | Sven Gothel <[email protected]> | 2011-08-03 11:56:40 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-08-03 11:56:40 +0200 |
commit | e659f5994875275d4eb46e745676a3d84e27d1e9 (patch) | |
tree | aa8bd6bdcb2a02f1c8fc0b2f89aba0aac6160229 /src/java/com/jogamp/common/util/JogampVersion.java | |
parent | d30d6548baa4fa18c55eb4f9087bca5700463a51 (diff) |
Hide DynamicLinker impl.; Remove public AndroidPackageUtil ; GluegenVersionActivity uses ApplicationContext
Hide DynamicLinker impl.:
- com.jogamp.common.os.*DynamicLinkerImpl -> jogamp.common.os
Diffstat (limited to 'src/java/com/jogamp/common/util/JogampVersion.java')
-rw-r--r-- | src/java/com/jogamp/common/util/JogampVersion.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/java/com/jogamp/common/util/JogampVersion.java b/src/java/com/jogamp/common/util/JogampVersion.java index a2b1e2f..2461c3e 100644 --- a/src/java/com/jogamp/common/util/JogampVersion.java +++ b/src/java/com/jogamp/common/util/JogampVersion.java @@ -29,6 +29,7 @@ package com.jogamp.common.util; import com.jogamp.common.GlueGenVersion; +import com.jogamp.common.os.AndroidVersion; import com.jogamp.common.os.Platform; import java.util.Iterator; @@ -36,6 +37,8 @@ import java.util.Set; import java.util.jar.Attributes; import java.util.jar.Manifest; +import jogamp.common.os.android.PackageInfoUtil; + public class JogampVersion { public static final Attributes.Name IMPLEMENTATION_BRANCH = new Attributes.Name("Implementation-Branch"); @@ -55,7 +58,11 @@ public class JogampVersion { this.hash = this.mf.hashCode(); mainAttributes = this.mf.getMainAttributes(); mainAttributeNames = mainAttributes.keySet(); - androidPackageVersionName = AndroidPackageUtil.getAndroidPackageInfoVersionName(packageName); + if(AndroidVersion.isAvailable) { + androidPackageVersionName = PackageInfoUtil.getPackageInfoVersionName(packageName); + } else { + androidPackageVersionName = null; + } } @Override |