Commit Graph

5382 Commits

Author SHA1 Message Date
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
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
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
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
aec341d481 PlatformSetup: added optional -noalias target flag to skip creating the lime/openfl alias during setup 2023-12-08 09:34:18 -08:00
Josh Tynjala
21e8e619c3 HashLink: when building hdlls, use -install_name on macOS
This more closely matches official HashLink binaries, and ensures that the hdlls can be found next to a HL/C executable
2023-10-18 15:33:32 -07:00
Josh Tynjala
0528e3996f Assets: add removeLibrary() where unloading is optional (references #1718)
unloadLibrary() now calls removeLibrary() with true for unload to prevent code duplication
2023-10-18 09:19:25 -07:00
Joseph Cloutier
9a9b89ae06 Merge branch 'develop' into 8.2.0-Dev 2023-08-17 21:07:12 -04:00
Josh Tynjala
2a570037a2 CHANGELOG for 8.1.0-Dev 2023-08-15 08:00:34 -07:00
Josh Tynjala
987e3dd425 Merge branch 'develop' into 8.1.0-Dev 2023-08-14 15:53:18 -07:00
Josh Tynjala
39c77cfe46 CHANGELOG for develop branch before merge 2023-08-14 15:53:01 -07:00
Josh Tynjala
42ae523188 AIR externs: Haxe 3 compatibility on :extern :enum abstracts 2023-08-14 13:24:05 -07:00
Josh Tynjala
b6cfc7d812 HTTPRequest: fix missing response data for HTTP status codes (closes #1699)
Backends now return error and response data, but public API has not changed.

This allows OpenFL to expose URLLoader.data on IOErrorEvent.IO_ERROR to match the behavior of Flash
2023-08-11 13:43:16 -07:00
Joseph Cloutier
7348f62410 Work around fullPath() error/edge case.
Neko claims that the file passed to `fullPath()` must exist. Usually this isn't enforced, but apparently there are circumstances where it is.

c852db0004/libs/std/sys.c (L571)

I didn't take the time to pin down what those circumstances are. Instead I figured it was easiest to just rearrange some code to follow the rule.
2023-08-08 12:52:12 -04:00
player-03
51c9f861b3 Use enum abstract in Haxe 4.
Most of these warnings were fixed by merging the develop branch, but WorkOutput.hx is new in 8.2.0.
2023-08-01 13:44:18 -04:00
player-03
c1cf271e71 Link to HashLink's documentation.
I'd forgotten that they have their own list of dependencies. And sure, we could copy their list, but I worry that we'd forget to update it. This way is easier and takes less space.
2023-08-01 13:05:17 -04:00
Joseph Cloutier
34a6b10064 Merge branch 'develop' into 8.2.0-Dev 2023-08-01 12:16:52 -04:00
Josh Tynjala
6cff64018a Add -npx flag for lime test electron to run the npx electron command instead of just electron.
This will prompt the user to install electron, if required. Saves a separate `npm install -g electron` command before testing.
2023-07-25 08:43:39 -07:00
player-03
c16f27818d Merge pull request #1695 from Apprentice-Alchemist/patch-1
Fix string conversion in hl_window_alert.
2023-07-04 20:36:31 -04:00
player-03
828864063f Merge pull request #1694 from loudoweb/dev-fix-library-unload
clear cached files on library unload
2023-07-04 20:31:03 -04:00
player-03
8b27623afb Follow formatting conventions. 2023-07-04 20:30:33 -04:00
player-03
914009ddb3 Merge pull request #1680 from player-03/auto_formatting_error
Fix `WebGL2RenderContext` formatting.
2023-07-04 20:23:40 -04:00
player-03
a917b5ea51 Don't check out submodules during docs action.
The docs action only needs to look at Haxe code, so downloading the submodules just wastes 30-50 seconds. That's a lot of time for an action that clocks in at about 2 minutes.
2023-07-04 20:14:39 -04:00
Josh Tynjala
ef37cd9afb AIRHelper: needs .app file extension on macOS if AIR target is bundle 2023-06-29 10:25:38 -07:00
Josh Tynjala
b6ebe15d15 Replace Adobe AIR debug certificate because it expired 2023-06-29 10:23:03 -07:00
Zeta
26247f4f41 Fix string conversion in hl_window_alert. 2023-06-11 13:42:40 +02:00
Josh Tynjala
2cd1dad5ed Merge branch 'develop' into 8.1.0-Dev 2023-06-09 11:12:43 -07:00
Josh Tynjala
01a04c4d48 Clipboard: (windows/mac) fix issue where requesting text from clipboard ignores clipboard contents, if user last modified the clipboard before app startup 2023-06-09 10:06:45 -07:00
Joshua Granick
a46eecc831 Disable try_blocking for now (requires HXCPP 4.3+) 2023-06-07 18:12:01 -07:00
Joshua Granick
06122fe72a Compile fix 2023-06-07 18:11:40 -07:00
player-03
71c1854779 Don't call Map.clear() in Haxe 3. 2023-06-06 21:55:37 -04:00
Josh Tynjala
9e2d431e2b Merge branch 'develop' into 8.1.0-Dev 2023-06-06 12:35:57 -07:00
Josh Tynjala
aebf139dc7 Fix window show/hide on desktop being incorrectly considered the same as app going into and out of the background/suspend on mobile
The app's Timers should still continue when a window is hidden. Especially since an app could have multiple windows, with some being shown and some being hidden. If only one were hidden, the other shown windows would clearly behave in a broken manner because the one hidden window would cause all app timers, even those associated with other windows, to be paused.

Introduces new WINDOW_SHOW AND WINDOW_HIDE events from C++ to Haxe, and new onShow and onHide events on Haxe Window.

Followup to 0918ee2381
2023-06-06 10:56:06 -07:00
Josh Tynjala
f6e61b1bac actions: matrix for AIR 2023-06-06 10:19:39 -07:00
Josh Tynjala
c8b35c2a09 actions: lime config AIR_SDK 2023-06-06 10:19:05 -07:00
Ludovic Bas
76c76652cc I don't know why the unload method was empty but now it clears all cached files when calling Assets.unloadLibrary(""); 2023-06-06 15:51:01 +02:00
Josh Tynjala
de7bf3e5ed actions: AIR samples 2023-06-05 16:03:19 -07:00
Josh Tynjala
9ca9c2e32c Better Haxe 4.3 extern enum abstract
Previous attempt tried to use @:extern and @:enum for Haxe 3, but enum is fine for both, which is actually what we were using before. Keep @:extern for Haxe 3, but use enum for both
2023-06-05 15:56:26 -07:00
Josh Tynjala
f053205b7e Merge branch 'develop' into 8.1.0-Dev 2023-06-05 14:29:12 -07:00
Josh Tynjala
0918ee2381 SDLApplication: fix inconsistent setting of inBackground flag when dispatching WINDOW_DEACTIVATE and WINDOW_ACTIVATE (closes openfl/openfl#2645)
On SDL_APP_WILLENTERBACKGROUND and SDL_APP_DIDENTERFOREGROUND, inBackground was being toggled, but it was not toggled on SDL_WINDOWEVENT_SHOWN and SDL_WINDOWEVENT_HIDDEN. However, both pairs were dispatching WINDOW_DEACTIVATE and WINDOW_ACTIVATE from C++ to Haxe. When inBackground wasn't toggled, the UPDATE ApplicationEvent continued being dispatched from the C++, but the Haxe assumed that it wouldn't be. This meant that timers were still updated after WINDOW_DEACTIVATE for SDL_WINDOWEVENT_HIDDEN, but then they were still "advanced" as if paused on WINDOW_ACTIVATE for SDL_WINDOWEVENT_SHOWN. The next update time would be some time in the future, roughly equal to how long the Haxe thought the timers were paused. This could make it seem like the timers completed stopped updating, especially if they should have been paused for a long time. They would eventually continue, but they should have paused on WINDOW_DEACTIVATE and continued immediately on WINDOW_ACTIVATE.
2023-06-05 14:22:19 -07:00
Josh Tynjala
5a87d77897 Merge branch 'develop' into 8.1.0-Dev 2023-06-05 10:29:26 -07:00
Josh Tynjala
5634ad72d2 CHANGELOG: 8.0.2 8.0.2 2023-05-30 14:40:16 -07:00
Josh Tynjala
8f1a7df5bb haxelib.json: releasenote 2023-05-30 14:40:16 -07:00
player-03
e01a26759d Suppress libpng warnings.
Per https://github.com/openfl/lime/pull/1531#issuecomment-1568750546
2023-05-30 12:51:08 -04:00
Josh Tynjala
de773dd6b6 mbedtls v3.3.0
Restores Android NDK r15c compatibility
2023-05-30 09:03:55 -07:00
Josh Tynjala
9103be3c98 update curl and mbedtls submodules
Updated to match 8.2.0-Dev branch

Fixes SSL connect error on macOS
2023-05-30 09:03:55 -07:00
Joshua Granick
35d1436dcd Revert WebAssembly improvements (moved to 8.1.0-Dev branch) 2023-05-30 09:03:18 -07:00