Commit Graph

5141 Commits

Author SHA1 Message Date
Joseph Cloutier
3d3bcc4ebc Set minimum-sdk-version to 21.
For parity with #1519, and to resolve #757.
2022-06-06 22:20:15 -04:00
player-03
238428c7ea Merge pull request #1509 from player-03/icon_priorities
Implement `Icon` priorities.
2022-06-06 01:14:55 -04:00
player-03
d4f5c04d22 Merge pull request #1496 from player-03/android-ndll
Don't expect Android extensions to use ndlls
2022-06-06 01:02:49 -04:00
player-03
b03edaec73 Use Java 11 to build Android.
This is required by the newer Gradle plugin.
2022-06-05 23:53:53 -04:00
Joseph Cloutier
ab8003640b Use type hint in findMatch().
Haxe 3 can't deduce the type without it.
2022-06-05 23:49:21 -04:00
Joseph Cloutier
744b476f54 Add acceptSmaller argument.
I finally figured out why `findNearestMatch()` was coded the way it was.
2022-06-05 23:25:56 -04:00
Joseph Cloutier
793aa69ff4 Don't ignore priority argument. 2022-06-05 23:09:07 -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
player-03
2cd7161bbe Don't expect Android extensions to use ndlls
I can't think of any practical reasons for an Android extension to compile an ndll. All of Android's system functions require Java, not C++, and you can get the speed of C++ just by writing Haxe code.

I surveyed several Android extensions on lib.haxe.org, and not one of them used ndlls when targeting Android.
2022-06-05 22:36:01 -04:00
Joseph Cloutier
1b310dcc45 Add support for include.hxp.
Note that all paths in an include.hxp file must be absolute.
Fortunately, `Sys.getCwd()` works as expected.
2022-06-05 22:34:07 -04:00
player-03
80b9b89908 Merge pull request #1535 from player-03/buildBuffer
Only call `buildBuffer()` when needed.
2022-06-04 01:23:52 -04:00
Joseph Cloutier
17232fd7dc Remove trailing whitespace. 2022-06-03 23:14:27 -04:00
Joseph Cloutier
ad3a632927 Only call buildBuffer() when needed.
Turns out, `HTTPRequest`'s call is only needed for internet requests.
Files on the local machine will be loaded directly into `bytes`, leaving
`buffer` empty. Calling `buildBuffer()` will then delete the data.
2022-06-03 23:14:16 -04:00
player-03
2d028bf75f Merge pull request #1534 from player-03/ForegroundWorker
Add thread management tools for Android
2022-06-03 18:25:09 -04:00
Joseph Cloutier
f70b43a543 Explain ForegroundWorker's main use case. 2022-06-03 18:04:32 -04:00
Josh Tynjala
8a3b990f98 MacPlatform: use executableDirectory instead of applicationDirectory when copying HashLink (references #1517) 2022-06-03 13:19:25 -07:00
player-03
276a8f6c8a Merge pull request #1517 from Apprentice-Alchemist/feature/update-hashlink
Update hashlink.
2022-06-02 18:34:19 -04:00
Joseph Cloutier
afbd7e15f8 Fix null pointer error in FileDialog.hx.
Co-authored-by: ShaharMS <88977041+ShaharMS@users.noreply.github.com>
2022-06-01 00:15:47 -04:00
Joseph Cloutier
c48f1fb44a Try a different approach to haxe_ver. 2022-05-31 03:00:17 -04:00
Joseph Cloutier
8015148ee0 Fix conditional compilation.
For real this time, definitely, hopefully, maybe.
2022-05-31 02:37:52 -04:00
Joseph Cloutier
894445687e Remove nonexistent function calls.
Earlier Haxe versions just used `EntryPoint`.
2022-05-31 02:31:59 -04:00
Joseph Cloutier
312dd70d72 Never inline ForegroundWorker functions.
The early `return` is incompatible with it.
2022-05-31 02:06:34 -04:00
Joseph Cloutier
6e86e45851 Implement ForegroundWorker. 2022-05-31 01:06:56 -04:00
Joseph Cloutier
7890951d12 Add MainLoop support.
Pros: It's a standard Haxe feature that other Haxelibs may rely on. Plus
it offers built-in thread safety, unlike `onUpdate`.

Cons: It incurs two `mutex.acquire()` calls per frame.
2022-05-30 16:37:43 -04:00
Chris Speciale
02617a854d NativeHTTPRequest: Improve buffer management for O(1) performance
Fixes debilitating issue on Native where buffer creation created an O(n) slowdown
2022-05-27 23:03:14 -04:00
player-03
6db5820f97 Merge pull request #1533 from pozirk/develop
Add `exported="true"` to AndroidManifest.xml
2022-05-26 18:23:20 -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
Apprentice-Alchemist
b4e6764a2d Fix YML syntax error. 2022-05-20 08:16:03 +02:00
Apprentice-Alchemist
46ad92f11e Why are we still supporting haxe 3? 2022-05-20 08:11:02 +02:00
Apprentice-Alchemist
9fa6a20402 Fix CI, hopefully. 2022-05-20 07:47:12 +02:00
Apprentice-Alchemist
1c35f44634 Fix building lime.hdll. 2022-05-19 21:08:56 +02:00
Apprentice-Alchemist
ad70700a14 Try to fix Windows mess a bit.
Default to 64 bit on windows too.
2022-05-19 20:46:08 +02:00
Apprentice-Alchemist
b2546aac9f Try fixing macOS and support no_console Windows subsystem. 2022-05-18 08:11:44 +02:00
player-03
e6674ba179 Merge pull request #1510 from ninjamuffin99/pitch
Audio pitch change implementation
2022-05-12 12:25:01 -04:00
Josh Tynjala
b091ba88bb AIRHelper: can specify -appstore and -adhoc for AIR ios builds, similar to cpp ios builds
Uses ipa-app-store or ipa-ad-hoc, instead of ipa-test
2022-05-11 14:15:09 -07:00
Zeta
362ab26d18 Merge branch 'develop' into feature/update-hashlink 2022-05-08 16:47:46 +02:00
arm32x
3c4ddbab17 Fix Main.cpp template for -static -debug builds
When building a Lime application in debug mode on Windows, the console
subsystem is used and Windows looks for a 'main' function. However, the
Main.cpp file used when linking statically always defines a 'WinMain'
function regardless of whether the application is being built in debug
mode.

This commit adds an additional check in the Main.cpp that defines a
'main' function instead of 'WinMain' when building in debug mode.
2022-05-04 13:10:13 -04:00
Joshua Granick
c406bc53ea Update submodule paths 2022-05-02 16:33:04 -07:00
Josh Tynjala
4ea5807853 Merge pull request #1527 from junsred/prevent-clipboard-being-set-as-null
prevent clipboard being set as null
2022-04-29 09:17:23 -07:00
Junsred
4ce66f8d94 rename and check focus pending 2022-04-29 05:03:07 +03:00
Josh Tynjala
fe5d38df08 Merge pull request #1526 from player-03/validation-types
Reduce clutter by merging related files.
2022-04-28 15:04:42 -07:00
Junsred
b3af18c352 avoid duplicate code 2022-04-29 00:27:16 +03:00
Junsred
0c077da2bb better readability 2022-04-29 00:17:16 +03:00
Apprentice-Alchemist
7dbc4e9c71 More haxe 3 fixes. 2022-04-28 19:56:30 +02:00