From b3c9951006f9bd863244f1db3d54ac7866d66f0a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 4 Jun 2012 04:36:52 +0200 Subject: Fix Bug 583: Remove Android compile-time dependencies and exclude Android specific classes for non Android platforms. Android specifics are delegated via class AndroidUtils, which uses reflection to call AndroidUtilsImpl if platform is Android. Android code is confined to the packages: jogamp.common.os.android.* jogamp.android.launcher.* and only included when compiled for the Android platform. --- make/build.xml | 64 ++++++++++----- src/java/com/jogamp/common/os/AndroidVersion.java | 45 ++++++++--- src/java/com/jogamp/common/util/IOUtil.java | 23 ++---- src/java/com/jogamp/common/util/JogampVersion.java | 18 ++--- src/java/jogamp/common/os/AndroidUtils.java | 94 ++++++++++++++++++++++ .../jogamp/common/os/android/AndroidUtilsImpl.java | 91 +++++++++++++++++++++ .../jogamp/common/os/android/PackageInfoUtil.java | 63 --------------- .../jogamp/common/os/android/StaticContext.java | 12 +++ 8 files changed, 289 insertions(+), 121 deletions(-) create mode 100644 src/java/jogamp/common/os/AndroidUtils.java create mode 100644 src/java/jogamp/common/os/android/AndroidUtilsImpl.java delete mode 100644 src/java/jogamp/common/os/android/PackageInfoUtil.java diff --git a/make/build.xml b/make/build.xml index 61e7c86..ded1154 100644 --- a/make/build.xml +++ b/make/build.xml @@ -26,14 +26,31 @@ - - - - + + + + + + + + + + + + + + + + + + + + - - + @@ -103,18 +120,6 @@ - - - - - - - - - - - @@ -137,12 +142,30 @@ + + + + + - + + + + + + + + + + + + + +