summaryrefslogtreecommitdiffstats
path: root/platform/android
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #31266 from ↵Rémi Verschelde2019-08-141-4/+0
|\ | | | | | | | | IAmActuallyCthulhu/pr/remove-redundant-author-comments Remove redundant author doc comments
| * Remove redundant author doc commentsIAmActuallyCthulhu2019-08-121-4/+0
| |
* | Export: Remove temp files from cache after exportRémi Verschelde2019-08-121-36/+54
|/ | | | | | | | | So far we left most temporary files lying around, so this attempts to fix that. I added a helper method to DirAccess to factor out the boilerplate of creating a DirAccess, checking if the file exists, remove it or print an error on failure.
* Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in "platform", ↵Robin Hübner2019-08-094-36/+11
| | | | "modules/gdnative", "modules/gdscript" directories.
* Add feature tag for hmd devices based on DOFCameron Reikes2019-08-071-0/+133
| | | | - Necessary according to https://developers.google.com/vr/develop/android/3dof-to-6dof
* Merge pull request #30468 from SaracenOne/expose_audio_captureRémi Verschelde2019-08-071-3/+3
|\ | | | | Exposes capture methods to AudioServer + documentation
| * Exposes capture methods to AudioServer, variable renames for consistency,Saracen2019-07-151-3/+3
| | | | | | | | added documentation.
* | Android: Remove unusable android_stl=no optionRémi Verschelde2019-07-301-5/+6
| | | | | | | | | | | | | | | | | | | | | | As of 3.1 and later, we have too many thirdparty C++ dependencies and some internal uses of `new` and `delete` too for it to make sense to build without the STL on Android. The option has been broken since 3.0, and the "System STL" that we relied on for basic support of `new` and `delete` is likely to be dropped from the NDK: https://android.googlesource.com/platform/ndk/+/ndk-release-r20/docs/BuildSystemMaintainers.md#System-STL
* | Android: Drop support for NDK < r15Rémi Verschelde2019-07-302-29/+21
| | | | | | | | | | | | NDK r15c was released over two years ago (July 2017), and we cannot build against r14b anyway as it seems to fail with our setup to link the STL.
* | Removed an unused commitunknown2019-07-201-1/+0
|/
* Merge pull request #30407 from qarmin/small_fixessRémi Verschelde2019-07-081-1/+1
|\ | | | | Fixes minor issues found by static analyzer
| * Fixes minor issues found by static analyzerqarmin2019-07-071-1/+1
| |
* | Added release function to PoolVector::Access.Ibrahn Sahir2019-07-061-4/+4
|/ | | | | | For clarity, assign-to-release idiom for PoolVector::Read/Write replaced with a function call. Existing uses replaced (or removed if already handled by scope)
* SCons: Use CPPDEFINES instead of CPPFLAGS for pre-processor definesRémi Verschelde2019-07-032-13/+12
| | | | | | | | It's the recommended way to set those, and is more portable (automatically prepends -D for GCC/Clang and /D for MSVC). We still use CPPFLAGS for some pre-processor flags which are not defines.
* Make the meta-data name attribute settable. This will facilitate reuse for ↵fhuya2019-07-022-5/+11
| | | | ARCore integration.
* Merge pull request #29824 from m4gr3d/add_ovr_exportRémi Verschelde2019-07-028-34/+70
|\ | | | | Add XR mode selection to the Android export process.
| * Add XR mode selection to the Android export process.fhuya2019-07-028-34/+70
| |
* | Merge pull request #29815 from NilsIrl/plus_file_1Rémi Verschelde2019-07-011-1/+1
|\ \ | | | | | | Replace ` + "/" + ` with `String::file_add()`
| * | Replace ` + "/" + ` with `String::file_add()`Nils ANDRÉ-CHANG2019-06-231-1/+1
| | |
* | | Fix some keyboards not working with Androidlawnjelly2019-06-211-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #17004 Currently the keydown and keyup messages are handled with method like this: if ((source & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK || (source & InputDevice.SOURCE_DPAD) == InputDevice.SOURCE_DPAD || (source & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD) { // joystick input } else { // keyboard input } The constant for SOURCE_DPAD is 513 10 0000 0001 and the constant for SOURCE_KEYBOARD is 257 1 0000 0001 However, rather confusingly, for many keyboards the source sent by android is 769 11 0000 0001 Thus the keyboard is passing the check as being a DPAD and being processed as a joystick rather than keyboard. This PR handles the specific case of 769, allowing input from physical keyboards.
* | | Merge pull request #29910 from m4gr3d/dev_deprecate_armv6Rémi Verschelde2019-06-203-20/+3
|\ \ \ | | | | | | | | Deprecate support for Android armv6 architecture
| * | | Deprecate armv6 support for Androidfhuya2019-06-193-20/+3
| | |/ | |/|
* / | Made use of semicolons more consitent, fixed formattingJohnJLight2019-06-191-1/+1
|/ /
* | Merge pull request #29325 from m4gr3d/setup_godot_for_ovr_supportRémi Verschelde2019-06-1615-652/+1294
|\ \ | | | | | | Setup Godot to support the Oculus Mobile SDK.
| * | Setup Godot to support the Oculus Mobile SDK.fhuya2019-05-3015-652/+1294
| | |
* | | Adding a new Camera Server implementation to Godot.BastiaanOlij2019-06-152-0/+9
| |/ |/| | | | | | | | | This is a new singleton where camera sources such as webcams or cameras on a mobile phone can register themselves with the Server. Other parts of Godot can interact with this to obtain images from the camera as textures. This work includes additions to the Visual Server to use this functionality to present the camera image in the background. This is specifically targetted at AR applications.
* | Fix error macro calls not ending with semicolonRémi Verschelde2019-06-111-1/+1
|/ | | | | | | It's not necessary, but the vast majority of calls of error macros do have an ending semicolon, so it's best to be consistent. Most WARN_DEPRECATED calls did *not* have a semicolon, but there's no reason for them to be treated differently.
* Android: Include Joysticks/Gamepads which are available on app start.wombatstampede2019-05-285-26/+63
|
* Git: Explicitly list binary files as such to avoid EOL changeRémi Verschelde2019-05-251-84/+84
| | | | | | | | | | text=auto works well in Git 2.10+ but it's broken in previous versions, which are still used in production on e.g. Ubuntu 16.04 LTS. Also fix a couple missed text files with CRLF terminators. .bat files likely require it to be processed properly on Windows, but core.autocrlf should take care of converting them on the fly when checking out on Windows.
* Merge pull request #29032 from akien-mga/tools-exceptions-rttiRémi Verschelde2019-05-211-2/+3
|\ | | | | SCons: Keep exceptions and rtti on Android, iOS and HTML5 tools build
| * SCons: Keep exceptions and rtti on Android, iOS and HTML5 tools buildRémi Verschelde2019-05-201-2/+3
| | | | | | | | | | | | | | | | | | | | Those were disable to keep size small, and on Android avoid the dependency on the STL, but for tools build (editor) this is not really a concern. Note: as of today it's not possible to build tools=yes for those platforms, but this change is one of the necessary steps to enable it. Fixes #25262.
* | added a const keyword for a methods that return constant literal...hbina0852019-05-212-2/+2
|/
* Fix typos with codespellRémi Verschelde2019-05-192-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 1.15.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear doubleclick leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* Allow project export to be canceledGeorge Marques2019-05-181-12/+34
|
* Merge pull request #28518 from clayjohn/GLES2-MSAARémi Verschelde2019-05-131-1/+1
|\ | | | | Added MSAA to GLES2 backend
| * added MSAA to GLES backendclayjohn2019-05-021-1/+1
| |
* | Change "ID" to lowercase "id"Aaron Franke2019-05-093-6/+6
| | | | | | | | Reasoning: ID is not an acronym, it is simply short for identification, so it logically should not be capitalized. But even if it was an acronym, other acronyms in Godot are not capitalized, like p_rid, p_ip, and p_json.
* | Merge pull request #27676 from qarmin/small_fixes_2Rémi Verschelde2019-05-011-2/+0
|\ \ | | | | | | Small fixes to static analyzer bugs
| * | Small fixes to static analyzer bugsqarmin2019-04-041-2/+0
| | |
* | | SCons: Always use env.Prepend for CPPPATHRémi Verschelde2019-04-301-1/+1
| |/ |/| | | | | | | | | Include paths are processed from left to right, so we use Prepend to ensure that paths to bundled thirdparty files will have precedence over system paths (e.g. `/usr/include` should have lowest priority).
* | Clean up latency related functionsJuan Linietsky2019-04-271-2/+2
| |
* | Merge pull request #28396 from akien-mga/scons-capture-the-flagsRémi Verschelde2019-04-251-21/+27
|\ \ | | | | | | SCons: Review uses of CCFLAGS, CXXFLAGS and CPPFLAGS
| * | SCons: Review uses of CCFLAGS, CXXFLAGS and CPPFLAGSRémi Verschelde2019-04-241-21/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many contributors (me included) did not fully understand what CCFLAGS, CXXFLAGS and CPPFLAGS refer to exactly, and were thus not using them in the way they are intended to be. As per the SCons manual: https://www.scons.org/doc/HTML/scons-user/apa.html - CCFLAGS: General options that are passed to the C and C++ compilers. - CFLAGS: General options that are passed to the C compiler (C only; not C++). - CXXFLAGS: General options that are passed to the C++ compiler. By default, this includes the value of $CCFLAGS, so that setting $CCFLAGS affects both C and C++ compilation. - CPPFLAGS: User-specified C preprocessor options. These will be included in any command that uses the C preprocessor, including not just compilation of C and C++ source files [...], but also [...] Fortran [...] and [...] assembly language source file[s]. TL;DR: Compiler options go to CCFLAGS, unless they must be restricted to either C (CFLAGS) or C++ (CXXFLAGS). Preprocessor defines go to CPPFLAGS.
* | | Rename wrong field.Juan Linietsky2019-04-241-2/+2
| | |
* | | Remove forgotten strings in configuration filesJuan Linietsky2019-04-242-9/+0
|/ /
* | Android now (optionally) builds the template when exportingJuan Linietsky2019-04-075-224/+512
| | | | | | | | | | Added new way to create add-ons Removed old way to create add-ons
* | Add FileAccess::set_unix_permissions for Unix platformsJuan Linietsky2019-04-072-0/+4
| |
* | Merge pull request #27673 from qarmin/small_fixesRémi Verschelde2019-04-221-4/+0
|\ \ | | | | | | Small fixes, mostly duplicated code
| * | Small fixes, mostly dupicated codeqarmin2019-04-081-4/+0
| |/
* | Merge pull request #28164 from BastiaanOlij/AndroidCameraPermissionRémi Verschelde2019-04-191-0/+7
|\ \ | | | | | | Add camera permissions to android