summaryrefslogtreecommitdiff
path: root/platform/android/java
AgeCommit message (Collapse)Author
2017-08-30Make GDNative work on AndroidRuslan Mustakov
The changes include work done to ensure that GDNative apps and Nim integration specifically can run on Android. The changes have been tested on our WIP game, which uses godot-nim and depends on several third-party .so libs, and Platformer demo to ensure nothing got broken. - .so libraries are exported to lib/ folder in .apk, instead of assets/, because that's where Android expects them to be and it resolves the library name into "lib/<ABI>/<name>", where <ABI> is the ABI matching the current device. So we establish the convention that Android .so files in the project must be located in the folder corresponding to the ABI they were compiled for. - Godot callbacks (event handlers) are now called from the same thread from which Main::iteration is called. It is also what Godot now considers to be the main thread, because Main::setup is also called from there. This makes threading on Android more consistent with other platforms, making the code that depends on Thread::get_main_id more portable (GDNative has such code). - Sizes of GDNative API types have been fixed to work on 32-bit platforms.
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-23fix UnsatisfiedLinkError when quittingHenrik Andersson
2017-08-21Fixes for new two-dash long command line argumentsRémi Verschelde
- Fixes some single-dash leftovers that were missed in the previous commit - Reorder the help output for clarity, and document missing options - Drop obsolete options: --noop, --pack, --editor-scene, --level, --import, --import-script, --no-quit - Improve error message on malformed arguments and do not display help on error - Always use long form of arguments when starting a new Godot process from C++, for clarity and easy grepping - Cleanup obsolete code here and there
2017-08-19Revert "Second take at making command-line arguments more UNIX-like + ↵Juan Linietsky
main.cpp and help cleanup"
2017-08-19Fixes for new two-dash long command line argumentsRémi Verschelde
- Fixes some single-dash leftovers that were missed in the previous commit - Reorder the help output for clarity, and document missing options - Drop obsolete options: --noop, --pack, --editor-scene, --level, --import, --import-script, --no-quit - Improve error message on malformed arguments and do not display help on error - Cleanup obsolete code here and there
2017-07-30update gradle-android buildtool for masterISylvox
2017-07-17-Reorganized all properties of project settings (Sorry, Again).Juan Linietsky
(Lot's of bloat accumulated, so it was time for clean up.) -Made EditorSettings and ProjectSettings search more useful (search in sections too)
2017-05-20Merge pull request #8824 from volzhs/android-payment-masterRémi Verschelde
Fix android payment logical error
2017-05-19Fix android payment logical errorvolzhs
getting sku detail runs only if mod != 0 which means querying 20*n will not get sku details. referenced from https://github.com/googlesamples/android-play-billing/blob/master/TrivialDrive/app/src/main/java/com/example/android/trivialdrivesample/util/IabHelper.java#L1029-L1062
2017-05-17Use new Godot icon consistently everywhereRémi Verschelde
2017-05-12Merge pull request #8723 from volzhs/fix-android-masterRémi Verschelde
Fix possible memory leak for Android and update gradle
2017-05-12Update to latest gradlevolzhs
2017-05-12Fix possible memory leak for Androidvolzhs
/godot_dev/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloaderService.java:575: Error: The WIFI_SERVICE must be looked up on the Application context or memory will leak on devices < Android N. Try changing to .getApplicationContext() [WifiManagerLeak] mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Explanation for issues of type "WifiManagerLeak": On versions prior to Android N (24), initializing the WifiManager via Context#getSystemService can cause a memory leak if the context is not the application context. Change context.getSystemService(...) to context.getApplicationContext().getSystemService(...). 1 errors, 0 warnings
2017-05-07Improve documentation of thirdparty code snippetsRémi Verschelde
2017-04-26Fix error or download again if use obb for Androidvolzhs
2017-04-08Add "Godot Engine contributors" copyright lineRémi Verschelde
2017-03-24Fix typos in source code using codespellRémi Verschelde
From https://github.com/lucasdemarchi/codespell
2017-03-23Several fixes to Android exporter and port.Juan Linietsky
Android seems to be working again!
2017-03-04Fix handling input for Androidvolzhs
2017-01-14Style: Fix whole-line commented codeRémi Verschelde
They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
2017-01-11Added a BACK notification besides QUIT, so they go in separate channels.Juan Linietsky
2017-01-01Welcome in 2017, dear changelog reader!Rémi Verschelde
That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
2016-11-28Add alert window on Androidvolzhs
2016-11-09Fix Directory.dir_exist/get_current_dir for 'res://' on Androidvolzhs
Fix #7014
2016-08-08Android: Rename values-zh to values-zh-rCN (#6063)Skyfrit
2016-08-08Android: Add support for Traditional Chinese (HK) (#6061)Skyfrit
2016-08-08Android: Add support for Traditional Chinese (TW) (#6061)Skyfrit
2016-07-24Merge pull request #5415 from volzhs/improve-android-paymentJuan Linietsky
Improve android payment
2016-07-20Implement get_screen_dpi() on AndroidMario Schlack
2016-07-18Add querying details of IAP items for androidvolzhs
2016-07-18Fix can't get all info if user purchases many items and not consumedvolzhs
2016-07-16Added gyroscope support to Godot and AndroidJamil Halabi
2016-06-27Make Android build smarter (SCons + Gradle)Pedro J. Estébanez
Upgrade Gradle and Android plugin for Gradle Disable all signing and zip-aligning for the export templates Give correct names to generated APKs Put .so files built by SCons right where Gradle has to pick them according to arch & build type Downgrade NDK platform to 14 to match minSdkVersion
2016-06-24Fix Android sensors polling rate on resumeGeorge Marques
Fix #5306
2016-06-25Remove duplicated aidl for androidvolzhs
Tested IAP function on device.
2016-06-22Fixed iCCp chunk in pngsJ08nY
neccesary for libpng 1.6.27 to work silently
2016-06-22Merge pull request #5357 from volzhs/fix-locale-androidRémi Verschelde
fix android resource locale
2016-06-22fix android resource localevolzhs
2016-06-21correct current Intent for androidvolzhs
2016-06-18Add missing license headers in our source files (#5255)Rémi Verschelde
Also removes a couple wrong Godot headers from third-party source files.
2016-06-07Merge pull request #4729 from volzhs/android-23Rémi Verschelde
Supporting Android API 23 (Android 6.0)
2016-05-30Icon: Remove more grey capsules behind official logoRémi Verschelde
2016-05-27Add magnetometer sensor support for Androidfluffrabbit
2016-05-25Add comments for NotificationCompat to support API < 16volzhs
2016-05-24fix compatibility for Android API 14 with supporting API 23volzhs
using ``NotificationCompat`` in ``support-v4`` library will increase APK filesize a little bit, but it guarantees to run OK with API 4+ tested with API 19 and 23 devices
2016-05-20Supporting Android API 23 (Android 6.0)volzhs
If we update build gradle to use ``compileSdkVersion 23``, ``org.apache.http`` package causes error. (issue #4711) We need to use ``useLibrary 'org.apache.http.legacy'`` to solve this problem. To use ``useLibrary``, we need to use latest gradle also. And now, we faced another problem with ``APK Expansion`` java sources. ``` /platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloadNotification.java 137 : mCurrentNotification.setLatestEventInfo(mContext, mCurrentTitle, mCurrentText, mContentIntent); // causes error ``` So, some of APK Expansion java sources are updated by referencing commits from https://github.com/danikula/Google-Play-Expansion-File And dropped V3CustomNotification.java which was for android 3.0, since godot supports android 14 (4.0) above officially. Unfortunately, another problem, The 'MissingTranslation' error was occurred. So, build.gradle is updated to use ``disable 'MissingTranslation'`` Additionally, I updated ``buildToolsVersion``, ``targetSdkVersion`` to latest version. I tested APK Expansion funtionality on Android 6.0 (Nexus 9, Nexus 6p) and Android 4.4 (Galaxy Note 2) with Google Developer console.
2016-04-19remove unused resources and add korean locale for androidvolzhs
- remove unused resources in platform/android/java/res/values/strings.xml - add korean language resource for apk expansion download screen
2016-01-24support gamepad remapping on androidhondres
2016-01-16Add ability to set "keep screen on" for androidvolzhs