volzhs
be7ced4826
Fix compile error when use "android_add_jni_dir"
2017-05-12 15:10:59 +09:00
volzhs
8be9b98b8e
Update to latest gradle
2017-05-12 14:44:47 +09:00
volzhs
9d33f51066
Fix possible memory leak for Android
...
/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-12 14:44:37 +09:00
Rémi Verschelde
c8aea60324
Improve documentation of thirdparty code snippets
2017-05-07 11:42:37 +02:00
volzhs
889ce29fc2
Fix error or download again if use obb for Android
2017-04-26 04:06:45 +09:00
Andreas Haas
246dfc65ca
Fix crash on exit.
...
First it crashed in the thread that checks for android devices, then in the audio driver.
2017-04-10 19:51:07 +02:00
Rémi Verschelde
61a27601f7
Merge pull request #8341 from RameshRavone/master
...
Android: avoiding duplicates in build.gradle
2017-04-10 08:58:15 +02:00
Sergey Pusnei
8589ca3903
Rename [gs]et_pos to [gs]et_position for Controls
...
Control set_pos -> set_position
Control set_global_pos -> set_global_position
[gs]et_mouse_pos -> [gs]et_mouse_position
[gs]et_global_mouse_pos -> [gs]et_global_mouse_position
fixes #8005
2017-04-10 08:27:34 +02:00
Ramesh Ravone
f8309f86c2
Android: avoiding duplicates in build.gradle
2017-04-10 08:34:40 +05:30
Ramesh Ravone
93b417fe17
Android: Support to change minSdkVersion ( #8313 )
2017-04-09 23:35:34 +02:00
Rémi Verschelde
df61dc4b2b
Add "Godot Engine contributors" copyright line
2017-04-08 00:11:42 +02:00
Pedro J. Estébanez
2443946307
Fix crash on Android-x86
2017-04-05 22:18:16 +02:00
Rémi Verschelde
9d28a5e7d9
Merge pull request #8159 from Hinsbart/last_id
...
Input: Remove usage of platform dependent event IDs.
2017-03-27 08:52:58 +02:00
Rémi Verschelde
fbebd32b5f
Merge pull request #8147 from RameshRavone/patch-1
...
Update build.gradle.template for jcenter
2017-03-27 08:50:47 +02:00
Rémi Verschelde
d8f32637be
SCons: Add option to toggle warnings (on by default)
...
All the warnings are factored out of the platform-specific files and moved to
SConstruct. Will have to check that it does not introduce regressions on some
platforms/compilers.
(cherry picked from commit 31107daa1a
)
2017-03-26 21:58:37 +02:00
Andreas Haas
c0b6756875
Input: Remove usage of platform dependent event IDs.
...
The ID property for InputEvents is set by `SceneTree` when sending the event down the tree.
So there's no need for the platform specific code to set this value when it will later be overriden anyway...
2017-03-26 15:59:32 +02:00
Ramesh Ravone
77c81a21d8
Update build.gradle.template
...
Updating project repository,
added jcenter() since Android Studio uses it by default.
https://www.jfrog.com/knowledge-base/why-should-i-use-jcenter-over-maven-central/
2017-03-25 17:41:20 +05:30
Rémi Verschelde
6674c556ae
Merge pull request #8128 from volzhs/fix-android-app-name
...
Fix wrong app name for Android export
2017-03-24 22:52:25 +01:00
Rémi Verschelde
debeee56f7
Fix typos in source code using codespell
...
From https://github.com/lucasdemarchi/codespell
2017-03-24 21:45:31 +01:00
volzhs
f912bcd943
Fix wrong name for Android export
2017-03-24 15:26:55 +09:00
Juan Linietsky
efaeebab4d
Several fixes to Android exporter and port.
...
Android seems to be working again!
2017-03-23 20:14:12 -03:00
Juan Linietsky
b5a06cecff
Export template management dialog.
...
Missing download (need to discuss this!)
2017-03-21 08:42:06 -03:00
Rémi Verschelde
60bdc37056
Merge pull request #8035 from DenisComtesse/android-screentouch-fix
...
Update mouse position on touch and release events (Android)
2017-03-18 10:48:26 +01:00
Ramesh Mani Maran
27c7d253aa
android: adding classpath and gradle plugins
2017-03-18 10:27:30 +01:00
Rémi Verschelde
111d3e8063
Merge pull request #7953 from RameshRavone/patch-1
...
support for multiple maven url
2017-03-18 10:25:49 +01:00
denis
55835167a4
Update mouse position on touch and release events (Android)
2017-03-15 17:41:21 +01:00
Rémi Verschelde
5dbf1809c6
A Whole New World (clang-format edition)
...
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?
I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon
A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format
A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
2017-03-05 16:44:50 +01:00
Rémi Verschelde
e1c1d7d1d7
Add a bunch of missing Godot headers in own files
2017-03-05 15:47:28 +01:00
Rémi Verschelde
49c065d29c
Refactoring: rename tools/editor/ to editor/
...
The other subfolders of tools/ had already been moved to either
editor/, misc/ or thirdparty/, so the hiding the editor code that
deep was no longer meaningful.
2017-03-05 14:21:25 +01:00
Ramesh Mani Maran
aa7490ffd0
support for multiple maven url
2017-03-05 15:46:55 +05:30
Julian Murgia
94103c0c02
Add API to access battery power state
...
Done:
- X11, server (tested)
- Windows (developed, would be nice to retest)
- OSX (not tested)
Prepared (not developed):
- Android (code is here, but may not compile)
- iphone
- winrt
- bb10
- haiku
- javascript
2017-03-04 18:04:29 +01:00
volzhs
4866ea828a
Fix handling input for Android
2017-03-04 00:15:26 +09:00
Bojidar Marinov
53921faa91
Complete the globals.h -> global_config.h conversion
2017-02-23 17:47:25 +02:00
Juan Linietsky
de0045cf1b
-renamed globals.h to global_config.cpp (this seems to have caused a few modified files)
...
-.pck and .zip exporting redone, seems to be working..
2017-02-21 00:06:30 -03:00
Juan Linietsky
f6950956bd
Editor Export Settings Dialog is completed!! Now on to make some exporters..
2017-02-19 23:21:35 -03:00
Hein-Pieter van Braam
411ee71b4d
Rename the _MD macro to D_METHOD
...
This new name also makes its purpose a little clearer
This is a step towards fixing #56
2017-02-13 12:50:02 +01:00
Juan Linietsky
96de0141cc
Removed import/export system, will start new one from scratch.
2017-01-25 21:57:08 -03:00
Pedro J. Estébanez
b84f58262c
Fix resources for Android modules not being merged
...
Fixes #7421
2017-01-25 00:21:53 +01:00
Rémi Verschelde
7b059965e8
Adapt platforms to AudioServer refactoring
...
Fixes compilation on Windows and likely other platforms (at least
as far as AudioServer changes were concerned), though they were
not tested.
2017-01-16 19:19:45 +01:00
Jerome67000
8c19a6cb85
#7215 try to fix adb bad targeting user on device
2017-01-16 17:53:12 +01:00
Rémi Verschelde
f44ee891be
Style: Fix statements ending with ';;'
2017-01-16 08:49:52 +01:00
Juan Linietsky
b400c69cd4
Oops! Audio engine has vanished :D
2017-01-15 16:07:51 -03:00
Rémi Verschelde
93ab45b6b5
Style: Fix whole-line commented code
...
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-14 14:52:23 +01:00
Juan Linietsky
da4170540c
Fixed dir access return value, changed it to Error like all other funcs
2017-01-14 09:17:15 -03:00
Juan Linietsky
a97551902e
rename Input.get_mouse_speed() to Input.get_last_mouse_speed()
2017-01-13 19:24:28 -03:00
Juan Linietsky
b7d69c2444
Added a BACK notification besides QUIT, so they go in separate channels.
2017-01-11 16:42:31 -03:00
Juan Linietsky
bc26f90581
Type renames:
...
Matrix32 -> Transform2D
Matrix3 -> Basis
AABB -> Rect3
RawArray -> PoolByteArray
IntArray -> PoolIntArray
FloatArray -> PoolFloatArray
Vector2Array -> PoolVector2Array
Vector3Array -> PoolVector3Array
ColorArray -> PoolColorArray
2017-01-11 00:52:51 -03:00
Juan Linietsky
547a57777b
renamed joystick to joypad everywhere around source code!
2017-01-08 17:06:33 -03:00
Juan Linietsky
2ab83e1abb
Memory pool vectors (DVector) have been enormously simplified in code, and renamed to PoolVector
2017-01-07 18:26:38 -03:00
Juan Linietsky
99ceddd11e
Editor settings categories are now tidy and beautiful!
2017-01-05 19:41:36 -03:00
Juan Linietsky
0f7af4ea51
-Changed most project settings in the engine, so they have major and minor categories.
...
-Changed SectionedPropertyEditor to support this
-Renamed Globals singleton to GlobalConfig, makes more sense.
-Changed the logic behind persisten global settings, instead of the persist checkbox, a revert button is now available
2017-01-05 09:16:00 -03:00
Juan Linietsky
118eed485e
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
...
All usages of "type" to refer to classes were renamed to "class"
ClassDB has been exposed to GDScript.
OBJ_TYPE() macro is now GDCLASS()
2017-01-02 23:03:46 -03:00
Rémi Verschelde
c7bc44d5ad
Welcome in 2017, dear changelog reader!
...
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!
2017-01-01 22:03:33 +01:00
volzhs
9a20068ab7
Add alert window on Android
2016-11-28 10:20:57 +09:00
Pedro J. Estébanez
5a26459c06
Update/fix Android build
...
Fix wrong path for 32-bit Windows, which fixes #7084
Exclude 32-bit Windows from multi-threaded linking because it's not supported by the NDK
Remove 32-bit Linux as there is no NDK variant for it
2016-11-13 23:54:06 +01:00
Rémi Verschelde
84822c3dbf
Merge pull request #7079 from RandomShaper/quicker-android-export
...
Make Android export quicker (especially on Windows)
2016-11-11 10:52:10 +01:00
Pedro J. Estébanez
56721e5d9d
Make Android export quicker (especially on Windows)
2016-11-08 20:56:17 +01:00
volzhs
8d454ed9a7
Fix Directory.dir_exist/get_current_dir for 'res://' on Android
...
Fix #7014
2016-11-09 01:50:00 +09:00
Rémi Verschelde
cc95d4448c
scons: Reorder options for clarity
...
Also prefix all thirdparty-related toggles with `builtin`.
2016-11-03 07:45:08 +01:00
Pedro J. Estébanez
b18ff942be
Improve Android build (Clang + tidyness)
2016-11-02 10:54:51 +01:00
Rémi Verschelde
f34151ff0f
style: Various other PEP8 fixes in Python files
...
Done with `autopep8 --select=E7`, fixes:
- E701 - Put colon-separated compound statement on separate lines.
- E702 - Put semicolon-separated compound statement on separate lines.
- E703 - Put semicolon-separated compound statement on separate lines.
- E711 - Fix comparison with None.
- E712 - Fix (trivial case of) comparison with boolean.
- E713 - Fix (trivial case of) non-membership check.
- E721 - Fix various deprecated code (via lib2to3).
2016-11-01 00:35:16 +01:00
Rémi Verschelde
817dd7ccbb
style: Fix PEP8 blank lines issues in Python files
...
Done with `autopep8 --select=E3,W3`, fixes:
- E301 - Add missing blank line.
- E302 - Add missing 2 blank lines.
- E303 - Remove extra blank lines.
- E304 - Remove blank line following function decorator.
- E309 - Add missing blank line.
- W391 - Remove trailing blank lines.
2016-11-01 00:35:16 +01:00
Rémi Verschelde
d4c17700aa
style: Fix PEP8 whitespace issues in Python files
...
Done with `autopep8 --select=E2,W2`, fixes:
- E201 - Remove extraneous whitespace.
- E202 - Remove extraneous whitespace.
- E203 - Remove extraneous whitespace.
- E211 - Remove extraneous whitespace.
- E221 - Fix extraneous whitespace around keywords.
- E222 - Fix extraneous whitespace around keywords.
- E223 - Fix extraneous whitespace around keywords.
- E224 - Remove extraneous whitespace around operator.
- E225 - Fix missing whitespace around operator.
- E226 - Fix missing whitespace around operator.
- E227 - Fix missing whitespace around operator.
- E228 - Fix missing whitespace around operator.
- E231 - Add missing whitespace.
- E231 - Fix various deprecated code (via lib2to3).
- E241 - Fix extraneous whitespace around keywords.
- E242 - Remove extraneous whitespace around operator.
- E251 - Remove whitespace around parameter '=' sign.
- E261 - Fix spacing after comment hash.
- E262 - Fix spacing after comment hash.
- E265 - Format block comments.
- E271 - Fix extraneous whitespace around keywords.
- E272 - Fix extraneous whitespace around keywords.
- E273 - Fix extraneous whitespace around keywords.
- E274 - Fix extraneous whitespace around keywords.
- W291 - Remove trailing whitespace.
- W293 - Remove trailing whitespace.
2016-11-01 00:35:16 +01:00
Rémi Verschelde
97c8508f5e
style: Start applying PEP8 to Python files, indentation issues
...
Done with `autopep8 --select=E1`, fixes:
- E101 - Reindent all lines.
- E112 - Fix under-indented comments.
- E113 - Fix over-indented comments.
- E115 - Fix under-indented comments.
- E116 - Fix over-indented comments.
- E121 - Fix a badly indented line.
- E122 - Fix a badly indented line.
- E123 - Fix a badly indented line.
- E124 - Fix a badly indented line.
- E125 - Fix indentation undistinguish from the next logical line.
- E126 - Fix a badly indented line.
- E127 - Fix a badly indented line.
- E128 - Fix a badly indented line.
- E129 - Fix a badly indented line.
2016-11-01 00:33:51 +01:00
Randy Tan Shaoxian
638a31d972
Fixed tiny error in detect.py causing compilation for Android to fail.
...
(cherry picked from commit c9d7f77c6f
)
2016-10-22 13:04:13 +02:00
Rémi Verschelde
e96c49f849
Merge pull request #6850 from akien-mga/pr-scsub-shebang
...
SCsub: Add python shebang as a hint for syntax highlighting
2016-10-17 20:13:18 +02:00
Rémi Verschelde
fc8ccd5b8c
SCsub: Add python shebang as a hint for syntax highlighting
...
Also switch existing shebangs to "better" /usr/bin/env python.
2016-10-17 20:10:46 +02:00
Rémi Verschelde
bdce7eefa0
Merge pull request #6846 from volzhs/android-dir-exists
...
Fix crash when using Directory.dir_exists(path) on Android
2016-10-17 10:10:25 +02:00
Rémi Verschelde
0eccf42884
Merge pull request #6723 from bvbfan/patch-1
...
Correct OS architecture detection
2016-10-17 09:48:26 +02:00
Błażej Szczygieł
4ffa8f224d
Theora: Don't compile unnecessary files, rename "x86_opt_*"
2016-10-16 22:31:27 +02:00
volzhs
4a57821349
Fix crash when using Directory.dir_exists(path) on Android
2016-10-17 01:29:31 +09:00
Rémi Verschelde
cbf52606f4
zlib: Split thirdparty files, simplify scons option
2016-10-15 12:20:47 +02:00
Rémi Verschelde
d9a291f641
ogg/vorbis/opus: Make them modules and unbundle thirdparty libs
...
Took the opportunity to undo the Godot changed made to the
opus source. The opus module should eventually be built in its
own environment to avoid polluting others with too many include
dirs and defines.
TODO: Fix the platform/ stuff for opus.
2016-10-15 11:50:40 +02:00
Rémi Verschelde
f63bf12193
Drop nedmalloc which is apparently not used anymore
2016-10-14 18:21:23 +02:00
Anthony Fieroni
f87e32696d
Correct OS architecture detection
...
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2016-10-11 20:58:24 +03:00
Pedro J. Estébanez
7f51bb7b1c
Fix compile flags not getting to the Android build
2016-10-04 16:55:29 +02:00
syskrank
af4b0db1e4
removed confusing "if(true)" statement with empty "else" block
2016-09-26 12:30:59 +03:00
Pedro J. Estébanez
2c9d98bb48
Fix manifest generation bug in Android export
2016-09-21 12:46:40 +02:00
Juan Linietsky
1f7fde299d
Revert "Change Android float ABI to hard"
2016-09-10 12:31:01 -03:00
Juan Linietsky
fc61eb37ce
Merge pull request #5920 from 29jm/fix-warnings
...
Fix some more warnings
2016-09-10 12:21:02 -03:00
Juan Linietsky
0a9c08f87c
Merge pull request #6438 from RandomShaper/android-hard-float-abi
...
Change Android float ABI to hard
2016-09-10 11:40:44 -03:00
Pedro J. Estébanez
68cd19a6c2
Change Android float ABI to hard
2016-09-09 13:31:35 +02:00
Pedro J. Estébanez
e9065632c6
Fix (potentially) Android libs packaging issue ( #5645 )
2016-09-07 02:41:16 +02:00
Johan Manuel
a4674bda47
Fix some comparisons between signed and unsigned integers
2016-08-13 13:21:35 +02:00
Johan Manuel
046f94d3ac
Remove some unused variables
2016-08-13 13:21:35 +02:00
Skyfrit
4f6a21b0df
Android: Rename values-zh to values-zh-rCN ( #6063 )
2016-08-08 11:51:30 +02:00
Skyfrit
664b5b5137
Android: Add support for Traditional Chinese (HK) ( #6061 )
2016-08-08 11:49:51 +02:00
Skyfrit
8ab4acd17f
Android: Add support for Traditional Chinese (TW) ( #6061 )
2016-08-08 11:49:35 +02:00
Juan Linietsky
9213400cd5
Merge pull request #5415 from volzhs/improve-android-payment
...
Improve android payment
2016-07-24 12:18:13 -03:00
Mario Schlack
beaa56bff2
Minor code formatting in platform/android
2016-07-21 12:07:01 +02:00
Rémi Verschelde
b1cca17053
Merge pull request #5835 from volzhs/issue-5831
...
Fix compile error if use android_stl=yes
2016-07-21 10:37:18 +02:00
volzhs
01e39ecec8
Fix compile error if use android_stl=yes
2016-07-21 17:31:46 +09:00
Rémi Verschelde
5274f2a126
Merge pull request #5819 from hurikhan/android_getScreenDPI
...
Implement get_screen_dpi() on Android
2016-07-21 09:09:49 +02:00
Mario Schlack
0717893772
Implement get_screen_dpi() on Android
2016-07-20 14:54:48 +02:00
Juan Linietsky
0988970c1f
Fixed properly not save signals that already exist in their base scenes, closes #5656
2016-07-19 21:26:12 -03:00
volzhs
79cb91dc84
Add querying details of IAP items for android
2016-07-18 23:45:58 +09:00
volzhs
f26f181ba9
Fix can't get all info if user purchases many items and not consumed
2016-07-18 23:45:58 +09:00
Jamil Halabi
370ae3512d
Added gyroscope support to Godot and Android
2016-07-16 01:43:32 +08:00
sanikoyes
978cb0e884
Fix crash in FileAccessJAndroid::file_exists (does not free local ref)
2016-07-11 12:41:54 +08:00
Juan Linietsky
d279d060e1
Merge pull request #5077 from RandomShaper/improve-android-build
...
Improve Android build
2016-07-10 13:57:17 -03:00
volzhs
40d3234304
Add android_add_default_config for config.py
...
usage : env.android_add_default_config("applicationId 'com.godot.game'")
2016-07-07 04:03:50 +09:00
volzhs
b09dbaa78e
Fix crash when null value through jni on android
2016-07-05 04:41:46 +09:00
Rémi Verschelde
9693f37fcc
Merge pull request #5491 from volzhs/fix-jni-bool-string
...
Fix wrong return bool, string, string array data through jni
2016-07-03 19:11:04 +02:00
Juan Linietsky
1726bacf78
missnig ;
2016-07-02 16:04:00 -03:00
Juan Linietsky
973a12c5f2
Data dir returns a symlink in Android 6.0, which confuses DirAccess on android, this should fix it
2016-07-02 11:49:52 -03:00
volzhs
aac0af043c
Fix wrong return bool, string, string array data through jni
2016-06-30 01:23:55 +09:00
Pedro J. Estébanez
e7b2626707
Make Android build smarter (SCons + Gradle)
...
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-27 10:49:15 +02:00
Rémi Verschelde
7d06d50e65
Merge pull request #5395 from vnen/android-sensors
...
Fix Android sensors polling rate on resume
2016-06-26 09:46:10 +02:00
Rémi Verschelde
fad6b29a59
Merge pull request #5390 from volzhs/jni-stringarray
...
Fix string array parameter check with jni
2016-06-26 09:45:36 +02:00
Juan Linietsky
8dac3bf3b1
Added function to notify ScriptLanguage when a thread is created/freed, allows scripts to allocate a stack there via TLS
2016-06-25 10:41:23 -03:00
Rémi Verschelde
c931ed976b
Gradle: remove trailing spaces
2016-06-25 13:39:03 +02:00
George Marques
6d37253be5
Fix Android sensors polling rate on resume
...
Fix #5306
2016-06-24 21:00:04 -03:00
volzhs
456b7733fc
Fix string array parameter check with jni
2016-06-25 02:05:46 +09:00
volzhs
a5a5bdef25
Remove duplicated aidl for android
...
Tested IAP function on device.
2016-06-25 01:11:21 +09:00
Rémi Verschelde
0a72f9ccb8
Merge pull request #5362 from J08nY/png
...
libpng: New version 1.6.27
2016-06-23 07:40:03 +02:00
Rémi Verschelde
b9ed5b12c9
Merge pull request #5235 from volzhs/fix-android-export
...
fix errors while exporting android
2016-06-23 07:35:22 +02:00
J08nY
0ab05b09e4
Fixed iCCp chunk in pngs
...
neccesary for libpng 1.6.27 to work silently
2016-06-22 21:13:29 +02:00
Rémi Verschelde
842e7bfc2f
Merge pull request #5357 from volzhs/fix-locale-android
...
fix android resource locale
2016-06-22 16:05:59 +02:00
volzhs
591be5df25
fix android resource locale
2016-06-22 22:32:03 +09:00
volzhs
780fa60072
correct current Intent for android
2016-06-21 03:32:44 +09:00
Rémi Verschelde
8f2115529e
Merge pull request #5135 from volzhs/android-manifest
...
fix android support screen property for large screen
2016-06-19 12:49:42 +02:00
Rémi Verschelde
b7dbf9207a
Drop empty files that are not used anywhere
...
Part of #5272
2016-06-18 19:46:30 +02:00
Rémi Verschelde
a7fc04626a
Add missing license headers in our source files ( #5255 )
...
Also removes a couple wrong Godot headers from third-party source files.
2016-06-18 14:46:12 +02:00
volzhs
e6bbe91994
fix errors while exporting android
2016-06-16 05:00:21 +09:00
Pedro J. Estébanez
1fcb2a1a00
Handle tmp files properly on Android export
2016-06-15 14:58:01 +02:00
Pedro J. Estébanez
e1948d520a
Zip-align exported APK
2016-06-13 00:19:45 +02:00
Pedro J. Estébanez
1b189ad943
Fix typo
2016-06-11 13:11:42 +02:00
Pedro J. Estébanez
bb1b51f470
Keep certain assets uncompressed on Android export
2016-06-11 13:08:42 +02:00
volzhs
4f64935ab6
fix android support screen property for large screen
2016-06-10 14:09:33 +09:00
Juan Linietsky
d61b91cbe0
-Heavily improved editor startup and exit performance
2016-06-07 22:10:09 -03:00
Rémi Verschelde
aed5474238
Merge pull request #4729 from volzhs/android-23
...
Supporting Android API 23 (Android 6.0)
2016-06-07 09:45:24 +02:00
George Marques
408c26ce0b
Remove Make-related flags from Android build
...
They were wrongly placed, creating a file named "-fpic" instead of
applying "-fpic" to the build. This file was in .gitignore, which made it
less noticiable.
This also adds build.gradle to .gitignore.
2016-06-01 21:14:57 -03:00
Rémi Verschelde
e6e878e139
Icon: Remove more grey capsules behind official logo
2016-05-30 00:41:42 +02:00
fluffrabbit
4877b714b3
Add magnetometer sensor support for Android
2016-05-27 14:36:55 -03:00
volzhs
e5d16eca46
Add comments for NotificationCompat to support API < 16
2016-05-25 22:19:37 +09:00
volzhs
ff67c256f5
fix compatibility for Android API 14 with supporting API 23
...
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-24 11:22:35 +09:00
volzhs
5eb14d3af0
fix unexpected char: '\' error on windows
...
error occurred when register additional directory for android module on windows.
### config.py ###
```
def can_build(plat):
return plat=="android"
def configure(env):
if (env['platform'] == 'android'):
env.android_add_res_dir("android/res")
```
2016-05-24 05:25:22 +09:00
Hubert Jarosz
33403d91f7
remove trailing whitespace
2016-05-21 15:29:25 +02:00
volzhs
160713d4d3
Supporting Android API 23 (Android 6.0)
...
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-05-20 22:57:49 +09:00
Rémi Verschelde
5e0f0a962a
Android buildsystem: Drop obsolete NDK_TOOLCHAIN argument
...
It was a duplicate of NDK_TARGET, and not used for anything.
2016-05-19 10:44:18 +02:00
Rémi Verschelde
94274b9ab5
OSX: Fix lib suffix for Android lib ( #4499 )
...
Fixes #1452 .
2016-05-01 11:38:15 +02:00
eska
ab4caa7953
Move export GUI debug toggle to export settings window
2016-04-28 16:13:26 +02:00
volzhs
e94e710893
remove unused resources and add korean locale for android
...
- remove unused resources in platform/android/java/res/values/strings.xml
- add korean language resource for apk expansion download screen
2016-04-19 11:10:55 +09:00
Rémi Verschelde
0a5472e697
Remove trailing spaces
2016-04-02 20:26:12 +02:00
Rémi Verschelde
a895e2e372
Merge pull request #4105 from akien-mga/pr-android-shutdown-adb
...
Expose android/shutdown_adb_on_exit parameter
2016-03-20 18:34:05 +01:00
Rémi Verschelde
c584940387
Expose android/shutdown_adb_on_exit parameter and default to true
...
It was added in 30d0ca9
for the Steam build but only enabled
when parsing a ._sc_ file that would define it.
It is now available for all users to toggle, in and outside of Steam.
Fixes #4073 .
2016-03-20 16:55:54 +01:00
blubee
a0fb5b5f95
Add support for gnu-libstc++-4.9 needed by recent NDK versions
...
The 4.9 version is the default one, people can still build using 4.8
with older NDK versions by setting the (optional) NDK_TARGET
and NDK_TARGET_X86 environment variables.
2016-03-20 20:29:37 +08:00
sanikoyes
9e026fecef
Add -r flag to adb install for keep app user data
2016-03-18 18:11:55 +08:00
Hubert Jarosz
4a4f247914
remove trailing whitespace
2016-03-09 00:00:52 +01:00
volzhs
d6cc887627
fix gradle build on windows
2016-03-02 12:15:39 +09:00
Ariel Manzur
30d0ca9766
added [presets] to ._sc_ and "android/shutdown_adb_on_exit" to editor_settings
2016-02-27 12:11:40 -03:00
punto-
b6b33e8886
Merge pull request #3428 from Hinsbart/android-gamepad
...
support gamepad remapping on android
2016-02-08 20:09:02 -03:00
Hondres
e7b6e3f20b
use fallback mapping from list
2016-01-27 12:18:34 +01:00
Juan Linietsky
16b8b97472
Combies driver split and spawn fix, closes #3265
2016-01-25 00:25:32 -03:00
hondres
285bcac224
can use fallback mapping on all platforms
2016-01-24 18:01:37 +01:00
hondres
e7c920fdba
support gamepad remapping on android
2016-01-24 05:29:09 +01:00
Juan Linietsky
e7eb332799
fix export bug
2016-01-20 07:43:05 -03:00
Juan Linietsky
c9580965ea
-Remote deploy now uses FS over USB on Android, super fast!
2016-01-20 00:29:34 -03:00
volzhs
fb2bf78591
Add ability to set "keep screen on" for android
2016-01-16 20:57:34 +09:00
mrezai
4cb14ae7d6
Fix crash on android 6.0.1, fixes #3321
2016-01-12 09:57:56 +03:30
Rémi Verschelde
1f1c3038c2
Update copyright in remaining files + prints in the UI
2016-01-11 21:34:22 +01:00
Juan Linietsky
c9852501a4
Fix bug related to EOF in Android FileAccess
2016-01-09 20:50:45 -03:00
mrezai
50cbe736de
Fix maven repositories bug
2016-01-09 16:51:22 +03:30
Juan Linietsky
6a29edf048
removed unnecesary comma in gradle template
2016-01-08 17:55:13 -03:00
Juan Linietsky
40ba22631b
Renamed godot domain from com.android.godot (which was incorrect) to org.godotengine.godot
2016-01-08 17:53:00 -03:00
Juan Linietsky
401622cc22
-Removed ANT build system for Android, as it was deprecated by Google
...
-Added new Gradle build system, as it is the required build system
2016-01-08 13:36:44 -03:00
Juan Linietsky
e0eff65fc0
change android install location to automatic, closes #1997
2016-01-03 20:31:37 -03:00
George Marques
5be9ff7b67
Update copyright to 2016 in headers
2016-01-01 11:50:53 -02:00
Juan Linietsky
eff81965af
Merge pull request #2956 from est31/add_system_wide_export_path
...
Add way to look for templates at system wide level too
2015-12-08 17:04:24 -03:00
Juan Linietsky
4b1f0afb01
-several fixes to Android to work better on Tegra 3/4 devices, uses 16 bits FBOs so all 2D shader effects should now work in every single Android device.
2015-12-02 11:15:48 -03:00
Rémi Verschelde
e4e7e8f396
Merge pull request #2963 from akien-mga/pr-opus-arm-opt
...
Enable opus ARM optimisations only on ARM
2015-12-01 10:18:41 +01:00
Rémi Verschelde
99e7641f3d
Enable opus ARM optimisations only on ARM
...
i.e. do not enable it for x86.
Fixes #2962 .
2015-12-01 09:34:51 +01:00
est31
15f6d3cebf
Add way to look for templates at system wide level too
...
Useful for everybody wanting to package godot.
Fixes #1026 .
-> Retain the old behaviour: path in error msg only when exporting.
-> User templates override system templates
2015-11-30 01:36:08 +01:00
Juan Linietsky
b987d2113b
0theora compilation fixes
2015-11-25 00:28:03 -03:00
mikica1986vee
d6b317a2c1
tegra 3 fix
2015-11-21 23:21:36 +01:00
Juan Linietsky
0168947084
Merge pull request #2518 from masoudbh3/godot-icons
...
Add icon to exe file in windows export
2015-11-19 00:08:47 -03:00
Juan Linietsky
0c3386b2ed
Merge pull request #2707 from akien-mga/master
...
Cosmetic fixes to SCons buildsystem
2015-11-18 19:43:28 -03:00
Juan Linietsky
5fb95859e1
Merge pull request #2814 from masoudbh3/android-fa-locale
...
Android add FA(persian) locale strings
2015-11-18 19:21:54 -03:00
masoud bh
f2704eb162
Android add FA(persian) locale strings
2015-11-19 01:40:29 +03:30
Juan Linietsky
34a558ee8d
Merge pull request #2691 from volzhs/android_payment
...
improve android payments
2015-11-18 19:02:40 -03:00
masoud bh
14b9579748
Skip META-INF from Android Template
2015-11-14 20:40:22 +03:30
masoud bh
24f3f43457
Add icon to exe file in windows export
...
add version_info and icon sections in "export to windows platform".
add version_info and icon to godot exe file (editor & template exe).
fix an problem in image class.
change all default icons to android export icon (a little more rounded).
create an python script for convert file to cpp byte array for use in
'splash.h'.
2015-11-09 02:23:58 +03:30
Rémi Verschelde
399b1b0474
Cosmetic fixes to SCons buildsystem
...
- Removed trailing spaces
- Made sure all indentation is done using tabs (fixes #39 )
- Potentially fixed an identation issue for openssl check
2015-11-01 20:53:26 +01:00
volzhs
3fbaa479e3
improve android payments
...
GodotPaymentV3 currently consumes purchased item right after purchasing.
But, some in-app item should not consume like "remove ads permanently"
So, I added "setAutoConsume(boolean)", "requestPurchased()",
"consume(sku_string)".
AutoConsume is true by default as before.
usage:
func _ready():
var payment = Globals.get_singleton("GodotPayments")
payment.setPurchaseCallbackId(get_instance_ID())
payment.setAutoConsume(false) # default : true
payment.requestPurchased() # callback : has_purchased
payment.purchase("item_name") # callback : purchase_success,
purchase_fail, purchase_cancel, purchase_owned
payment.consume("item_name") # callback : consume_success
func purchase_success(receipt, signature, sku):
print("purchase_success : ", sku)
func purchase_fail():
print("purchase_fail")
func purchase_cancel():
print("purchase_cancel")
func purchase_owned(sku):
print("purchase_owned : ", sku)
func consume_success(receipt, signature, sku):
print("consume_success : ", sku)
func has_purchased(receipt, signature, sku):
if sku == "":
print("has_purchased : nothing")
else:
print("has_purchased : ", sku)
2015-10-28 15:48:37 +09:00
Juan Linietsky
3d121b474b
Merge pull request #2203 from volzhs/fix_android_payments
...
Fix android payments
2015-10-17 12:12:34 -03:00
Juan Linietsky
b217e1417a
Merge pull request #2479 from firefly2442/cppcheck-unusedvars
...
ran cppcheck, found unused variables
2015-10-17 10:25:36 -03:00
Juan Linietsky
13d2710fed
Merge pull request #2474 from masoudbh3/android-armeabi-v7a
...
Fix android build script
2015-10-17 10:20:47 -03:00
Juan Linietsky
b3cda43a0f
Merge branch 'master' of https://github.com/okamstudio/godot
...
Conflicts:
platform/windows/detect.py
2015-10-13 01:19:32 -03:00
George Marques
6e87314d83
Add support for Opus audio format
2015-10-02 14:25:38 -03:00
Juan Linietsky
c858515785
Fixed theora playback. Removed theoraplayer.
...
Still need to get proper audio output latency in some platforms.
2015-09-26 14:50:42 -03:00
Juan Linietsky
9962518ffd
Merge branch 'master' of https://github.com/okamstudio/godot
2015-09-24 18:07:13 -03:00
Juan Linietsky
82a3304458
Added ability to set custom mouse cursors. Not hardware accelerated yet.
2015-09-24 18:06:15 -03:00
Juan Linietsky
83d9a692be
Ability to visually debug geometry visually:
...
-Visible 2D and 3D Shapes, Polygons, Tile collisions, etc.
-Visible Navmesh and Navpoly
-Visible collision contacts for 2D and 3D as a red point
-Customizable colors in project settings
2015-09-20 13:03:46 -03:00
firefly2442
afbb6c064c
ran cppcheck, found unused variables
2015-09-16 15:35:30 -05:00
masoud bh
9d540afd1c
android remove "gen" folder from git.
2015-09-16 16:28:01 +04:30
masoud bh
867c95223d
Fix android build script
...
some fixes for android build script.
remove armv6,x86 options and add "android_arch" option for select
compiler architecture (armv7,armv6,x86)(default armv7).
add architecture suffix for output files and you can compile for several
architecture simultaneously.
example:
libgodot.android.opt.debug.armv7.so
libgodot.android.opt.debug.armv7.neon.so
libgodot.android.opt.debug.armv6.so
libgodot.android.opt.debug.x86.so
now we can enable/disable neon on armv7 with "android_neon" option
(default enable).
add "NDK_TARGET_X86" option for select toolchain to use for the NDK x86
(default x86-4.8).
change inputs model for "ndk_platform" option (default android-15).
fix armv7 ccflags.
with this patch, must put libgodot_android.so file in specific
architecture folder:
armv7 (default): <android-java>/libs/armeabi-v7a/
armv6: <android-java>/libs/armeabi/
x86: <android-java>/libs/x86/
2015-09-16 16:14:38 +04:30
Juan Linietsky
b0aa49accb
merged some stuff for okam
2015-09-03 23:24:55 -03:00
Juan Linietsky
0a139aaef9
Merge pull request #2302 from antonyjones67/AndroidTemplateCompileWindows
...
Fixes compile bug for Android template on Windows.
2015-08-08 11:14:28 -03:00
Juan Linietsky
9d185ccc30
-Merged the file server with the live editing and remote debug
...
-It is now really easy to deploy an android build with debug, and debug it
2015-08-06 02:37:40 -03:00
PeaceSells
9983ceecf2
Fixes compile bug for Android template on Windows.
2015-07-24 13:12:23 -06:00