Commit Graph

5802 Commits

Author SHA1 Message Date
player-03
86bcc7352d Tweak warning message. 2024-01-18 13:35:07 -05:00
Joseph Cloutier
c3a7666062 Merge branch 'develop' into 8.2.0-Dev 2024-01-18 13:23:51 -05:00
player-03
a414f64173 Optimize CI workflow. (#1743)
See pull request for details. Summary:

* Reduce dependencies between CI jobs, allowing more of them to run in parallel.
* Use Linux for as many jobs as possible.
* Merge matching "-ndll" and "-samples" jobs. This way, the latter doesn't have to waste time recreating the former's environment, and the workflow summary is simplified. Downside: this delays package-haxelib.
* Update to a newer macOS version, as the old version massively slowed down Homebrew.
* Skip the HelloWorld test for Mac and iOS, as those two can build slowly under some circumstances, delaying package-haxelib. These could be restored later, if performance seems good enough.
* Add `HAXE_VERSION` environment variable, so future updates will only have to make one change. Unfortunately, doing the same for the Windows/Mac/Linux versions would severely hurt performance, so those remain hard-coded.
* Split up some steps within jobs for better organization.
2024-01-18 13:22:05 -05:00
Mihai Alexandru
d6a3954a57 Also warn the user about it. 2024-01-17 06:34:40 +02:00
Mihai Alexandru
380f64cb6e Forgot this 2024-01-17 06:17:00 +02:00
Mihai Alexandru
1f0ddb34cb Just in case 2024-01-17 05:59:08 +02:00
Mihai Alexandru
8648b05991 Update AndroidPlatform.hx 2024-01-16 15:15:06 +02:00
player-03
9a769d8000 Merge pull request #1735 from player-03/ConfigData
Make it easier to configure AndroidManifest.xml from project.xml.
2024-01-14 13:42:52 -05:00
Joseph Cloutier
09724f4bca Fix HAS_ICON logic on Android.
If an icon already exists, we still want `HAS_ICON` to be true, but we also want to avoid adding even more icons.
2024-01-14 12:18:42 -05:00
Joseph Cloutier
d0e5eab1c5 Bug fix: unique argument was never checked.
Now it's once again possible to pass multiple copies of linker flags! I don't know why you'd want to do that.
2024-01-14 11:55:44 -05:00
player-03
55dfc267bb Merge branch '8.2.0-Dev' into ConfigData 2024-01-13 23:41:14 -05:00
Joseph Cloutier
6d437283af Merge branch 'develop' into 8.2.0-Dev 2024-01-13 23:35:33 -05:00
Joseph Cloutier
8b07a83991 Remove unnecessary casts. 2024-01-13 16:15:57 -05:00
Joseph Cloutier
9718b8a454 Improve lime.tools.Platform type safety.
We shouldn't have to cast it every time!
2024-01-12 15:22:24 -05:00
Joseph Cloutier
31ad76f888 Reduce indentation in ProjectXMLParser.
It's more readable when there's more text and less whitespace onscreen.
2024-01-12 15:00:39 -05:00
Joseph Cloutier
6725825469 Initialize defines in HXProject.
This way, XML and HXP projects will use the same logic for `targetType`, among other things.
2024-01-12 14:49:42 -05:00
player-03
24bc9b2495 Merge pull request #1661 from tobil4sk/mingw-fixes-develop
Allow cross compiling Windows projects with MinGW
2024-01-12 13:56:37 -05:00
Josh Tynjala
a48898849e actions: use github.workspace instead of platform specific environment variables syntax 2024-01-10 10:11:11 -08:00
Josh Tynjala
b021dbeae7 lime display: if the project file is newer than an existing debug/release/final.hxml file, don't consider the .hxml file valid anymore
Code intelligence should always use the newest hxml content, so the fallback mode where the hxml content is generated, instead of loaded from an existing .hxml file, should be used when the project file is newer.

For instance, if the user changes any file/dir paths in their project file, continuing to use the existing .hxml file could lead to confusing error messages that still reference the old/cached file paths. It should always use the latest paths or other values from the project file. It should be considered a bug to use the old cached paths.

Previously, as a workaround, the user would need to clean or build their project again to get updated .hxml files. It might also require restarting their editor/IDE too. Bad developer experience when we can detect this case automatically.
2024-01-05 13:54:36 -08:00
Tobi Laskowski
1517bb3557 Clean up 2024-01-05 11:26:17 +00:00
player-03
79c4b05c06 Merge branch 'develop' into cffi-unicode-fixes 2024-01-05 00:03:31 -05:00
Joshua Granick
9b9faae177 Fix dynamic callback on HL (resolves issues in cURL) 2024-01-04 08:48:45 -08:00
Joshua Granick
8e54e6db47 Update copyright 2024-01-03 21:50:42 -08:00
Joshua Granick
88c2f6db98 Consistent return handling of HL CFFI string values 2024-01-03 21:37:19 -08:00
Joseph Cloutier
2f8da1d39d Remove excess whitespace from AndroidManifest.xml.
Grouping these blocks makes logical sense, and makes the output a bit prettier. Win-win.
2023-12-21 23:01:37 -05:00
Joseph Cloutier
f0a040727c Allow clearing attributes by passing "".
project.xml can't pass `null`, so this seems like the next best thing.
2023-12-21 22:46:13 -05:00
Joseph Cloutier
cb03d9cd9a Move variable to where it's used. 2023-12-21 22:31:58 -05:00
Joseph Cloutier
60064f55b3 Make AndroidManifest.xml more configurable.
Now if you need to add something to the `<application />` or `<activity />` tags, you can do it from project.xml. This will require new documentation, however.
2023-12-21 22:30:58 -05:00
Joseph Cloutier
b0c7025e45 Simplify permissions in AndroidManifest.xml.
`AndroidPlatform` provides a default value, so the array will never be null.
2023-12-21 22:12:14 -05:00
Joseph Cloutier
8bdd93753d Standardize ConfigData's array logic. 2023-12-21 19:52:02 -05:00
Joseph Cloutier
8d3d123266 Add unique parameter to ConfigData.push(). 2023-12-21 17:18:54 -05:00
Joseph Cloutier
15e6dc5050 Remove duplicate code in ConfigData. 2023-12-21 01:14:57 -05:00
Joseph Cloutier
ca3012b877 Convert single to double quotes.
The convention, according to haxe-checkstyle, is to use double quotes unless single quotes are specifically required.
2023-12-20 23:03:02 -05:00
Joseph Cloutier
3cd308a6a8 Convert string literals to constant. 2023-12-20 22:55:25 -05:00
tobil4sk
186124dfd3 Avoid error no such file or directory: 'arm64' 2023-12-20 19:51:56 +00:00
Joseph Cloutier
810e73d24d Restore anonymous function support to web workers.
Credit to StackOverflow user phnah for the new way to parse the string. This approach is much more robust.
2023-12-16 16:12:00 -05:00
player-03
c62ef3eb4a Add missing makePortable() call.
I guess I simply never tested that case.
2023-12-16 15:23:39 -05:00
Josh Tynjala
e6205bf3aa PlatformSetup: openfl alias setup on Linux was missing try/catch, but lime alias setup and other platforms had it 2023-12-08 09:46:21 -08:00
Josh Tynjala
aec341d481 PlatformSetup: added optional -noalias target flag to skip creating the lime/openfl alias during setup 2023-12-08 09:34:18 -08:00
andrew-git
c40ec312fc Joystick: add try/catch around navigator.getGamepads() because it might throw a JS SecurityError if we don't have permission to call it (#1728)
Fixes the following exception when we don't have permissions:

> Failed to execute 'getGamepads' on 'Navigator': Access to the feature "gamepad" is disallowed by permissions policy.

By catching the exception, it should now behave the same as older browsers, where navigator.getGamepads() doesn't exist at all.

In the future, it might make sense to set a flag if navigator.getGamepads() throws, and skip calling it more than once. However, we may want to listen for some kind of browser event that indicates that permission was granted later, and clear the flag when appropriate. Perhaps the gamepadconnected event?

---------

Co-authored-by: Josh Tynjala <joshtynjala@bowlerhat.dev>
2023-12-01 11:09:34 -08:00
Josh Tynjala
d68bce1a87 actions: svg.n needs openfl 2023-11-27 10:14:36 -08:00
Josh Tynjala
b330249a88 actions: build svg.n 2023-11-27 09:20:40 -08:00
Josh Tynjala
518685d003 actions: Haxe 4.3.3 for HL/C samples 2023-11-22 13:07:39 -08:00
Josh Tynjala
6bbb2e9f16 actions: hlc samples 2023-11-22 12:22:39 -08:00
Josh Tynjala
f038d8dfde CommandLineTools: help for hlc/-hlc 2023-11-22 11:47:54 -08:00
Josh Tynjala
6dc0c4c785 tools: allow -hlc on windows/mac/linux without -hl 2023-11-22 11:46:33 -08:00
Josh Tynjala
1d7397f808 CommandLineTools: hlc target as shorthand for hl -hlc 2023-11-22 11:33:43 -08:00
Josh Tynjala
5ce9c5c218 WindowsPlatform: set up Visual Studio environment before running cl.exe for HashLink/C 2023-11-18 14:57:58 -08:00
Josh Tynjala
0a83f5c61f WindowsPlatform: Visual Studio HashLink/C build
Currently required to run in Visual Studio Developer command prompt
2023-11-17 15:15:21 -08:00
Josh Tynjala
d05f10b15f prepare for Lime 8.1.1 8.1.1 2023-11-08 09:26:20 -08:00