From 678948068bbde7f12a9c5f28a467b6cf4d127851 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 1 Aug 2014 22:10:38 -0300 Subject: Small Issues & Maintenance -=-=-=-=-=-=-=-=-=-=-=-=-= -Begin work on Navigation Meshes (simple pathfinding for now, will improve soon) -More doc on theme overriding -Upgraded OpenSSL to version without bugs -Misc bugfixes --- platform/android/AndroidManifest.xml.template | 5 +- platform/android/detect.py | 5 +- platform/android/export/export.cpp | 2 +- .../java/res/layout/downloading_expansion.xml | 166 +++ platform/android/java/res/values/strings.xml | 12 +- .../android/java/src/com/android/godot/Godot.java | 380 +++++- .../godot/GodotDownloaderAlarmReceiver.java | 3 + .../com/android/godot/GodotDownloaderService.java | 13 +- .../java/src/com/android/godot/GodotPaymentV3.java | 32 +- .../android/godot/payments/GenericConsumeTask.java | 53 + .../android/godot/payments/HandlePurchaseTask.java | 4 +- .../android/godot/payments/PaymentsManager.java | 41 +- .../com/android/godot/payments/PurchaseTask.java | 26 +- .../godot/payments/ReleaseAllConsumablesTask.java | 87 ++ platform/android/java_glue.cpp | 11 +- .../android/libs/downloader_library/.classpath | 9 + .../.settings/org.eclipse.jdt.core.prefs | 4 + .../libs/downloader_library/AndroidManifest.xml | 9 + platform/android/libs/downloader_library/build.xml | 92 ++ .../vending/expansion/downloader/BuildConfig.java | 6 + .../android/vending/expansion/downloader/R.java | 73 ++ .../libs/downloader_library/proguard-project.txt | 20 + .../libs/downloader_library/project.properties | 13 + .../notify_panel_notification_icon_bg.png | Bin 0 -> 1027 bytes .../notify_panel_notification_icon_bg.png | Bin 0 -> 1125 bytes .../status_bar_ongoing_event_progress_bar.xml | 104 ++ .../downloader_library/res/values-v11/styles.xml | 6 + .../downloader_library/res/values-v9/styles.xml | 5 + .../libs/downloader_library/res/values/strings.xml | 41 + .../libs/downloader_library/res/values/styles.xml | 25 + .../vending/expansion/downloader/Constants.java | 236 ++++ .../expansion/downloader/DownloadProgressInfo.java | 80 ++ .../downloader/DownloaderClientMarshaller.java | 277 ++++ .../downloader/DownloaderServiceMarshaller.java | 181 +++ .../vending/expansion/downloader/Helpers.java | 306 +++++ .../expansion/downloader/IDownloaderClient.java | 126 ++ .../expansion/downloader/IDownloaderService.java | 83 ++ .../vending/expansion/downloader/IStub.java | 41 + .../vending/expansion/downloader/SystemFacade.java | 123 ++ .../downloader/impl/AndroidHttpClient.java | 536 ++++++++ .../downloader/impl/CustomIntentService.java | 112 ++ .../downloader/impl/CustomNotificationFactory.java | 30 + .../expansion/downloader/impl/DownloadInfo.java | 92 ++ .../downloader/impl/DownloadNotification.java | 231 ++++ .../expansion/downloader/impl/DownloadThread.java | 963 ++++++++++++++ .../downloader/impl/DownloaderService.java | 1341 ++++++++++++++++++++ .../expansion/downloader/impl/DownloadsDB.java | 510 ++++++++ .../expansion/downloader/impl/HttpDateTime.java | 200 +++ .../downloader/impl/V14CustomNotification.java | 101 ++ .../downloader/impl/V3CustomNotification.java | 116 ++ .../android/libs/google_play_services/.classpath | 1 + .../android/vending/licensing/LicenseChecker.java | 2 +- platform/iphone/SCsub | 2 +- platform/iphone/audio_driver_iphone.cpp | 32 +- platform/iphone/audio_driver_iphone.h | 4 + platform/iphone/detect.py | 6 + platform/windows/os_windows.cpp | 49 +- platform/windows/os_windows.h | 4 + platform/x11/os_x11.cpp | 46 +- 59 files changed, 6940 insertions(+), 138 deletions(-) create mode 100644 platform/android/java/res/layout/downloading_expansion.xml create mode 100644 platform/android/java/src/com/android/godot/payments/GenericConsumeTask.java create mode 100644 platform/android/java/src/com/android/godot/payments/ReleaseAllConsumablesTask.java create mode 100644 platform/android/libs/downloader_library/.classpath create mode 100644 platform/android/libs/downloader_library/.settings/org.eclipse.jdt.core.prefs create mode 100644 platform/android/libs/downloader_library/AndroidManifest.xml create mode 100644 platform/android/libs/downloader_library/build.xml create mode 100644 platform/android/libs/downloader_library/gen/com/android/vending/expansion/downloader/BuildConfig.java create mode 100644 platform/android/libs/downloader_library/gen/com/android/vending/expansion/downloader/R.java create mode 100644 platform/android/libs/downloader_library/proguard-project.txt create mode 100644 platform/android/libs/downloader_library/project.properties create mode 100644 platform/android/libs/downloader_library/res/drawable-hdpi/notify_panel_notification_icon_bg.png create mode 100644 platform/android/libs/downloader_library/res/drawable-mdpi/notify_panel_notification_icon_bg.png create mode 100644 platform/android/libs/downloader_library/res/layout/status_bar_ongoing_event_progress_bar.xml create mode 100644 platform/android/libs/downloader_library/res/values-v11/styles.xml create mode 100644 platform/android/libs/downloader_library/res/values-v9/styles.xml create mode 100644 platform/android/libs/downloader_library/res/values/strings.xml create mode 100644 platform/android/libs/downloader_library/res/values/styles.xml create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/Constants.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/DownloadProgressInfo.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/DownloaderClientMarshaller.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/DownloaderServiceMarshaller.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/Helpers.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/IDownloaderClient.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/IDownloaderService.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/IStub.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/SystemFacade.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/impl/AndroidHttpClient.java create mode 100755 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/impl/CustomIntentService.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/impl/CustomNotificationFactory.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/impl/DownloadInfo.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/impl/DownloadThread.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/impl/DownloaderService.java create mode 100755 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/impl/DownloadsDB.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/impl/HttpDateTime.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/impl/V14CustomNotification.java create mode 100644 platform/android/libs/downloader_library/src/com/google/android/vending/expansion/downloader/impl/V3CustomNotification.java (limited to 'platform') diff --git a/platform/android/AndroidManifest.xml.template b/platform/android/AndroidManifest.xml.template index e723b693d8..60861db603 100644 --- a/platform/android/AndroidManifest.xml.template +++ b/platform/android/AndroidManifest.xml.template @@ -10,12 +10,12 @@ android:largeScreens="true" android:xlargeScreens="true"/> - + @@ -23,6 +23,7 @@ + diff --git a/platform/android/detect.py b/platform/android/detect.py index c9b21626c3..26348be112 100644 --- a/platform/android/detect.py +++ b/platform/android/detect.py @@ -61,8 +61,11 @@ def configure(env): env.Tool('gcc') env['SPAWN'] = methods.win32_spawn - env.android_source_modules.append("../libs/apk_expansion") +# env.android_source_modules.append("../libs/apk_expansion") env.android_source_modules.append("../libs/google_play_services") + env.android_source_modules.append("../libs/downloader_library") + env.android_source_modules.append("../libs/play_licensing") + ndk_platform="" ndk_platform="android-15" diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index f47ff4ed50..22e6a5d864 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -426,7 +426,7 @@ static String _parse_string(const uint8_t *p_bytes,bool p_utf8) { } offset+=2; - printf("len %i, unicode: %i\n",len,int(p_utf8)); + //printf("len %i, unicode: %i\n",len,int(p_utf8)); if (p_utf8) { diff --git a/platform/android/java/res/layout/downloading_expansion.xml b/platform/android/java/res/layout/downloading_expansion.xml new file mode 100644 index 0000000000..553155dcd3 --- /dev/null +++ b/platform/android/java/res/layout/downloading_expansion.xml @@ -0,0 +1,166 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +