Josh Tynjala
ed3d7efe19
Merge branch 'develop' into 8.1.0-Dev
2023-04-24 09:52:11 -07:00
player-03
61dd0629be
Use getDisplayMetrics().
...
`getRealMetrics()` is now deprecated as well. It suggests using `getCurrentWindowMetrics()` instead, but that's new in SDK 30 and doesn't even contain DPI information. Whereas this function has been around since the start.
2022-12-20 14:29:37 -05:00
Mihai Alexandru
b5d6db38a7
Update GameActivity.java
2022-11-27 08:19:34 +02:00
Mihai Alexandru
d8237ff50b
Update GameActivity.java
2022-11-25 21:53:49 +02:00
Joseph Cloutier
4634755a56
Disable pointer tagging.
...
(For real this time.)
https://source.android.com/docs/security/test/tagged-pointers
2022-09-07 14:00:52 -04:00
Joseph Cloutier
ab8e479abf
Merge branch 'develop' into DeprecatedGradleFeatures
2022-09-03 18:36:04 -04:00
Joseph Cloutier
bb9b64af81
Suppress uiMode configuration changes.
...
When the user switches between dark and light themes, Android destroys
and recreates the activity. However, Lime activities can't be recreated
like this, and just close instead.
Since we don't actually use the system theme, there's no reason to do
this. Simplest solution is to suppress it.
https://developer.android.com/guide/topics/resources/runtime-changes
https://developer.android.com/guide/topics/ui/look-and-feel/darktheme#config-changes
2022-06-11 20:28:41 -04:00
Joseph Cloutier
5ffbfd7f3a
Add AndroidX options to <config:android />.
...
`enableJetifier` defaults to false because it can slow compilation.
2022-06-11 20:20:33 -04:00
Joseph Cloutier
00fd063026
Use implementation instead of api.
...
This is recommended as a best practice, though AFAIK this only matters
for projects that are going to be imported by other projects.
For instance, you used to be able to include `:deps:extension-api` by
including any extension that depended on it. Now, every project that
wants to use `extension-api` has to include it directly. (Which is fine
because in practice, they all already do so.)
2022-06-11 20:10:34 -04:00
Joseph Cloutier
619b67b472
Remove reference to nonexistant folder.
...
libs/ doesn't exist; only app/libs/ does, and that's handled by app/build.gradle.
2022-06-11 20:10:34 -04:00
Joseph Cloutier
1ff434043c
Remove trailing spaces.
2022-06-11 20:09:42 -04:00
Joseph Cloutier
46acd3b373
Target Android API level 30.
...
https://developer.android.com/distribute/best-practices/develop/target-sdk
2022-06-05 22:38:48 -04:00
Joseph Cloutier
8bcbafd587
Update the Android Gradle Plugin.
2022-06-05 22:38:08 -04:00
Joseph Cloutier
96bfa805cf
Add instructions to debug Java classes.
...
The Java compiler complains about deprecated features and unsafe
operations, but it's surprisingly hard to get the details. Here's how.
2022-06-05 22:37:07 -04:00
Joseph Cloutier
87611eeed1
Remove uses-sdk tag.
...
This is now redundant, and sometimes even causes builds to fail.
2022-06-05 22:37:07 -04:00
Joseph Cloutier
f81439d1d2
Use androidX when available.
...
https://developer.android.com/jetpack/androidx/
2022-06-05 22:37:07 -04:00
Joseph Cloutier
ded22af195
Replace references to jcenter().
...
https://developer.android.com/studio/build/jcenter-migration
Gradle considers this function a "deprecated feature."
2022-06-05 22:37:07 -04:00
Joseph Cloutier
fa7f487595
Replace ndk.dir with ndkPath.
...
https://developer.android.com/studio/projects/configure-agp-ndk#agp_version_41
The documentation tells you to be careful about this, since you're
putting local-only information into a file that gets uploaded to version
control, but Lime doesn't really need to worry about that.
Granted, Lime DID use local.properties, but that's no longer practical.
2022-06-05 22:37:07 -04:00
Igor
dec38dcc97
Required for apps targeting Android 12+
...
Otherwise it throws the following error on build:
"Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details."
To publish apps on Google Play everyone needs to target SDK 31+, which is Android 12+, so this is like a must now.
If "true", the activity is accessible to any app, and is launchable by its exact class name.
If "false", the activity can be launched only by components of the same application, applications with the same user ID, or privileged system components. This is the default value when there are no intent filters.
2022-05-26 16:19:03 -04:00
zatrit
75407f5db8
Fixed dialog on android APK signing
2021-07-23 09:00:09 -07:00
dustinaux
a7451bb9a4
Fix Touch not working on some Google Pixel phones
2021-01-04 11:16:15 -08:00
m0rkeulv
bf2b51ce1e
fix for android rotation
2020-08-03 10:25:40 -07:00
m0rkeulv
f3adce068c
fix for android screen orientation
2020-08-03 10:25:40 -07:00
Joshua Granick
42283e61bb
Update to SDL 2.0.12
2020-03-18 13:36:35 -07:00
mc0239
7708353a6a
Change http to https in gradle-wrapper.properties as services.gradle.org is inacessible over http
2020-01-27 12:47:52 -08:00
mc0239
1fcc76ee12
Use gradle built-in shorthand notations for jcenter and google
2020-01-27 12:47:52 -08:00
flashultra
72beeced30
Update to the latest Gradle 5.6.3 and Gradle Android plugin 3.5.1
...
Fix issue with ANDROID_GRADLE_TASK. Set apk file in separate folder ( from
gradle 4.x)
2019-11-01 13:21:36 -07:00
Joshua Granick
bb2af5eed1
Rely on SDL for Android fullscreen window behavior
2019-10-08 13:41:36 -07:00
Joshua Granick
e9a790a4ea
Update SDL to 2.10
2019-08-20 12:59:31 -07:00
Joshua Granick
7bc1d06634
Update SDL
2019-07-03 13:18:39 -07:00
Joshua Granick
fa91dd6039
Update SDL to HG revision 24883e864f7e
2019-05-08 14:26:45 -07:00
Joshua Granick
f702c8958b
Apply SDL patch https://hg.libsdl.org/SDL/rev/3b1f484500f0
2019-05-07 12:17:18 -07:00
Joshua Granick
f32311e2fd
Update to SDL 2.0.9
2019-01-11 16:07:35 -08:00
Joshua Granick
673d1cf014
Add support for languages field in iOS/Android/AIR templates
2018-07-07 06:48:51 -07:00
Joshua Granick
dccc2da7cb
Update build.gradle
2018-05-31 13:58:42 -07:00
Joey
30728c8f28
change all projects template gradle.
2018-05-31 13:57:10 -07:00
Joshua Granick
5a98885ce4
Update SDL to 2.0.8, updates Android minimum to NDK platform 14
2018-03-12 20:04:27 -07:00
John Langewisch
6f935f137d
Add prompt for keystore password on android
2017-11-20 11:59:07 -08:00
Joshua Granick
6b1bb4439b
Cleanup
2017-10-13 11:39:44 -07:00
HerbinCommando
c3b8f49ee0
Update GameActivity.java
...
Handle android onWindowFocusChanged in GameActivity.java
2017-10-13 11:34:47 -07:00
leocavalcante
a9ec17fd2b
Use fullscreen conditional at manifest theme attribute
2017-09-03 12:28:10 -07:00
Joshua Granick
698509bd83
Guard Android onRequestPermissionResult for API 23 or greater only
2017-08-07 16:53:52 -07:00
aW4KeNiNG
f6879da971
Request Permission result for Android.
2017-07-10 17:28:02 -07:00
Justin Espedal
f31b29fc3c
Auto-detect Android build-tools version
...
Use <android build-tools-version="" /> to specify a version in project xml.
2017-06-05 16:01:09 -07:00
Joshua Granick
d736579bfe
Add support for Gradle build directory ( resolve #802 )
2017-06-05 15:34:20 -07:00
Joshua Granick
ad72b1ef5b
Correct state when exiting Android application ( resolves #787 , close #765 )
2017-05-16 14:33:31 -07:00
Joshua Granick
ac13182fd0
Update to SDL dev 22a0b777d7cd
2017-05-04 15:15:29 -07:00
Joshua Granick
2d74f0af81
Patch support for proper suspend/resume behavior on Android in SDLActivity
2017-03-31 15:18:23 -07:00
Joseph Cloutier
9bbb6205be
Allow setting a different Gradle plugin version.
...
Turns out, the Gradle version (2.10) is NOT the same as the plugin version (2.1.0). These have to be treated separately.
2017-02-13 13:01:27 -05:00
Joseph Cloutier
b4055db620
Revert "Allow setting a different Gradle version."
...
This reverts commit af05162c72 .
2017-02-13 12:55:51 -05:00