From 25313c3bb16465940f19a79437cfcbe6c3558f71 Mon Sep 17 00:00:00 2001 From: stopiccot Date: Wed, 30 Apr 2014 23:05:05 +0300 Subject: [PATCH] added comment --- android-project/src/org/libsdl/app/SDLActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android-project/src/org/libsdl/app/SDLActivity.java b/android-project/src/org/libsdl/app/SDLActivity.java index 25cb789ae..28d461c5c 100644 --- a/android-project/src/org/libsdl/app/SDLActivity.java +++ b/android-project/src/org/libsdl/app/SDLActivity.java @@ -514,6 +514,8 @@ public class SDLActivity extends Activity { Integer patchVersion = Integer.parseInt(nativeGetHint("SDL_ANDROID_APK_EXPANSION_PATCH_FILE_VERSION")); try { + // To avoid direct dependency on Google APK extension library that is + // not a part of Android SDK we access it using reflection expansionFile = Class.forName("com.android.vending.expansion.zipfile.APKExpansionSupport") .getMethod("getAPKExpansionZipFile", Context.class, int.class, int.class) .invoke(null, this, mainVersion, patchVersion);