Commit Graph

31 Commits

Author SHA1 Message Date
rubenwardy
6cc0452503
Generate Android versionCode from Major.Minor.Patch (#14963) 2024-08-21 20:25:18 +02:00
rubenwardy
d566b0e280
Android SDK 34 (#14892) 2024-08-02 00:13:13 +02:00
grorp
b1fa430dad
Android: Don't crash if there is no web browser installed (#14683) 2024-05-26 19:49:32 +02:00
Gregor Parzefall
07fdf7158d Migrate the Android port to SDL2 2024-04-08 20:15:37 +02:00
Gregor Parzefall
fca60e2a41 Add SDL2 Java code 2024-04-08 20:15:37 +02:00
Desour
9cee9bc279 Build with the imported IrrlichtMt at irr
Also remove the now useless options (like IRRLICHT_INCLUDE_DIR)
and update download instructions, CI and similar.

Co-authored-by: sfan5 <sfan5@live.de>
2024-03-26 21:39:02 +01:00
sfan5
8ff0e1da15 Amend Android dev documentation 2024-03-09 11:28:12 +01:00
grorp
a29d3cf074
Save the settings in more cases to avoid losing setting changes (especially on Android) (#14266) 2024-01-23 21:33:27 +01:00
Muhammad Rifqi Priyo Susanto
5089e8342f
Android: Use the correct value for notification (#14209)
The notification channel creation is moved into MainActivity.
The notification channel ID string is stored into a static variable.
The name and description of the notification channel are stored into the strings resource file.

Co-authored-by: sfan5 <sfan5@live.de>
2024-01-13 20:01:35 +01:00
Muhammad Rifqi Priyo Susanto
171f911237
Android: Add selection dialog (drop down/combo box) (#13814)
- The handling of IGUIComboBox uses the new setAndSendSelected() method.
- getDialogState() is now getInputDialogState() and returns the state of the input dialog.
- getLastDialogType() is added and returns current/last shown dialog's type.
- getInputDialogState() now returns an enum instead of int.
- getAndroidUIInput() now returns void instead of bool.
- New data types (enum) are added:
  (1) GameActivity.DialogType (Java) and porting::AndroidDialogType (C++)
  (2) GameActivity.DialogState (Java) and porting::AndroidDialogState (C++)
- When showing a text input dialog, there is no custom accept button text any more.
- showDialog()/showDialogUI() for text input is now showTextInputDialog()/showTextInputDialogUI().
- showInputDialog()/showDialogUI() for text input is now showTextInputDialog()/showTextInputDialogUI().
- getDialogValue()/getInputDialogValue() is now getDialogMessage()/getInputDialogMessage().


Co-authored-by: Gregor Parzefall <82708541+grorp@users.noreply.github.com>
2024-01-07 19:00:04 +07:00
grorp
dc6452db1b
Don't copy user texture packs into Android bundle (#14053) 2023-11-28 21:02:56 +01:00
ROllerozxa
570fc90bf6
Debundle Minetest Game (#13818) 2023-11-07 22:18:26 +01:00
Muhammad Rifqi Priyo Susanto
c60d971bc4
Move unsupported language list into a separate file (#13865) 2023-10-05 17:29:02 +02:00
Stvk imension
ba6de431a2
Android: Remove Migration Code (#13590)
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
2023-07-27 14:09:17 +02:00
Muhammad Rifqi Priyo Susanto
ff498fc206
Android: Reliably showing an IME for text input dialog (#13521)
This commit is inspired by this blog post: https://developer.squareup.com/blog/showing-the-android-keyboard-reliably/
2023-07-01 14:00:30 +07:00
Gregor Parzefall
a1463263b5
Auto-detect locale on Android (#13561) 2023-06-05 12:02:10 +02:00
sfan5
8cccd75e81
Android build via CMake (#13528)
* the thing

* the thing 2
2023-05-26 15:21:23 +02:00
Stvk imension
d39a07efea
Android: Minor Code Improvements (#13342) 2023-04-10 23:05:01 +01:00
ROllerozxa
c91f3f99fd
Minor adjustments now that OpenGLES 2 is the default driver on Android (#12391) 2023-03-05 15:07:40 +01:00
sfan5
fee2e3ee27 Fix task ordering and more in Gradle Android build 2023-03-02 19:57:18 +01:00
Muhammad Rifqi Priyo Susanto
c1e430ef68
Android: Increase minimum SDK version to 21
Target/compiled SDK version is increased to 33.
Build Tools, NDK, and Gradle are also updated.
2023-02-18 00:03:28 +01:00
Muhammad Rifqi Priyo Susanto
281f9a9f88
Android: Segmentation fault fix, PendingIntent flag, and other fixes (#12960)
* Android: Segmentation fault fix, PendingIntent flag, and other fixes

- Information about the crosshair is sent after camera initialization.
- Since API 31, PendingIntent requires mutability flag.
- super (class) is called in onRequestPermissionsResult().
- GameActivity suppresses "unused" warning since most of its methods are called from native code.
- Non-null safety is added for nullable function calls.
- Warning/error logging is added for various function calls' return value.

* Move utility functions into Utils.java

- Some nullable functions are changed to be non-null functions.
- Some null checking outside it is removed.
- More annotations are added to functions and parameters.
2022-11-30 10:50:06 -05:00
Muhammad Rifqi Priyo Susanto
fb3085a2c5
Android: Increase target/compiled SDK version to 32 (#12911)
Build Tools, NDK, and Gradle are also updated.
Repositories is changed from jcenter() to mavenCentral().
2022-10-31 14:19:30 +01:00
savilli
75d88dcae2
Fix and enable x86 build for Android (#12700) 2022-08-25 22:48:49 +01:00
rubenwardy
4baf56520d
Android: Add support for sharing debug.txt (#12370) 2022-06-05 17:42:09 +01:00
paradust7
371f21fb35 Fixes to Android build + option to turn LuaJIT on/off for testing purposes (#12334) 2022-05-21 17:49:41 +02:00
rubenwardy
51cfb57b4d
Update to Android target SDK 30 (#11746) 2021-11-27 00:10:13 +00:00
sfan5
4114e3047b
Update Android to new dependency repo (#11690) 2021-10-31 22:32:25 +00:00
rubenwardy
6901c5fae5
Use scoped app storage on Android (#11466)
From November 2021, the Play Store will no longer be accepting
apps which use the deprecated getExternalStorageDirectory() API.

Therefore, this commit replaces uses of deprecated API with the new
scoped API (`getExternalFilesDir()` and `getExternalCacheDir()`).
It also provides a temporary migration to move user data from the
shared external directory to new storage.

Fixes #2097,  #11417 and #11118
2021-10-15 18:14:48 +02:00
Pevernow
c6eddb0bae
Gettext support on Android (#11435)
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: =?UTF-8?q?Olivier=20Samyn=20=F0=9F=8E=BB?= <code@oleastre.be>
2021-08-08 18:59:07 +02:00
NeroBurner
a7143c2a8c
Move build/android directory to root of project (#11283) 2021-06-21 20:51:42 +01:00