Commit Graph

852 Commits

Author SHA1 Message Date
tobil4sk
60aabeeff3 Fix mingw check in System.hx
HXCPP_MINGW does not get defined by hxcpp, so it may not always be set.
2023-04-12 23:17:07 +01:00
Josh Tynjala
1ac0810895 XcodeHelper: search for default iPhone simulator device id with a regular expression instead of a specific string
Previously, the value was "iphone-11". Now the regex is ~/iphone-\d+/g

As long as the naming scheme stays the same, this should choose the newest iPhone supported by Xcode, and we won't need to update manually anymore, like in commit 72dd60f1c8
2023-04-11 16:02:17 -07:00
Josh Tynjala
04b69a9cef AIRHelper: display a warning when no selected iOS simulator is found when building AIR for iOS app
Ideally, we'd always get a simulator name, but better to fail gracefully
2023-04-11 15:51:56 -07:00
Josh Tynjala
2e19898c28 XCodeHelper: fix null exception when trying to get the ID or name of the selected iOS simulator
Ideally, it shouldn't return null, but if it does, fail gracefully
2023-04-11 15:50:53 -07:00
Josh Tynjala
e753c5c933 AIRHelper: fix failed Adobe AIR for iOS build on Windows
It was incorrectly trying to list simulators from Xcode (and Xcode, obviously, doesn't exist on Windows)
2023-04-11 15:21:55 -07:00
Josh Tynjala
f07e94708b Window: minWidth/minHeight/setMinSize and maxWidth/maxHeight/setMaxSize 2023-04-11 09:46:10 -07:00
Josh Tynjala
f43173b942 Application: call __unregisterLimeModule on exit, similar to match the call to __registerLimeModule in the constructor
For some reason, this method was never called.
2023-04-10 13:41:14 -07:00
Josh Tynjala
ea8ed5bbe4 HTML5Window: clean up canvas/div and event listeners on window close() 2023-04-10 13:36:52 -07:00
Josh Tynjala
e9a085311e AIRApplication: check for null with Application.current 2023-04-10 13:31:40 -07:00
Josh Tynjala
906492a5b1 Application: fix handling of canceled when onExit is dispatched 2023-04-10 13:31:02 -07:00
Josh Tynjala
82ec709831 Application: on exit, clear Application.current if it is equal to this
This matches setting Application.current in the constructor, and helps avoid memory leaks
2023-04-10 12:54:48 -07:00
Josh Tynjala
23bafb2035 System: exit() on html5 "closes" the main application window 2023-04-10 12:54:37 -07:00
Josh Tynjala
48dc64373b Application: let AIR handle checking for all windows closed with its own autoExit behavior 2023-04-10 10:40:25 -07:00
player-03
780ec7e837 Merge pull request #1615 from player-03/eval_tools
Add the `-eval` flag to run Lime tools using Eval.
2023-04-06 19:34:24 -04:00
player-03
adda161ec6 Use "password" text input only on Android.
Using `userAgent` to tell whether the app is running on Android. This isn't foolproof, but will work more often than the previous approach (where you chose at compile time and your choice applied to all devices). Resolves #1655.
2023-04-05 16:36:36 -04:00
Josh Tynjala
0f694662f9 HTML5HTTPRequst: status 400 should be considered an error 2023-04-04 09:00:28 -07:00
player-03
4d3ae39d50 Use forward slashes to load lime.ndll.
`substr(7)` returns the substring _starting_ at character 7, which will never be "windows". The author meant to type `substr(0, 7)` instead, to get the substring ending at 7.

We could easily make this change, but given that the code has been successfully using forward slashes for several years, I prefer to simplify.
2023-04-01 11:56:41 -04:00
player-03
2026f404ff Initialize variable. 2023-04-01 11:33:20 -04:00
player-03
776db44e37 Add missing type declaration.
Nowadays you're supposed to omit this type declaration, but what I didn't realize is that that feature was added in Haxe 4.1. Since Lime still needs to support earlier versions, we'll just have to do it the old way.
2023-04-01 11:29:35 -04:00
player-03
77f3d4bacf Improve "Could not find NekoAPI interface" message.
This message comes up relatively often when a new user tries to set up Lime, but fails to give any instructions a new user could use.

This commit adds a new message explaining the most common issue and how to solve it. It also provides file paths, which may help with more in-depth debugging.
2023-04-01 11:20:05 -04:00
Josh Tynjala
2b8e3c439e Merge branch '8.1.0-Dev' into 8.2.0-Dev 2023-03-20 09:44:45 -07:00
jf
aefce3c4ae change hl_al_filteri argument type 2023-03-17 18:14:42 +00:00
Josh Tynjala
0160c12311 Window: visible property to show and hide window 2023-03-16 08:41:56 -07:00
Josh Tynjala
4105b97fc8 Window: save the initial title from WindowAttributes
If not saved, the title getter will return the wrong value
2023-03-15 15:03:29 -07:00
Joseph Cloutier
22032ef6b5 Allow eval for HXP projects.
Plus, do some cleanup. For instance, `nekoOutput` is only used in one
spot, so might as well declare it there.

Aside: I doubt `fullPath()` is needed, but I don't care to test it.
2023-03-13 18:26:44 -04:00
Joseph Cloutier
5b0e798582 Emulate all of Event's public properties.
Even the `@:noCompletion` ones.
2023-03-02 14:36:39 -05:00
Joseph Cloutier
9b9d433ce8 Add deprecation warning to BackgroundWorker.
I also reworded it, focusing on what to do.
2023-03-02 14:30:23 -05:00
Joseph Cloutier
edc5ab3719 Revert "BackgroundWorker: Depreciate BackgroundWorker"
This reverts commit 4ffc4422b2.
2023-03-02 14:08:17 -05:00
Joseph Cloutier
ec32da4c3e Merge branch '8.2.0-Dev' into doWork_compatibility 2023-03-02 14:06:30 -05:00
Chris Speciale
8de5ddbfbd BackgroundWorker: Update warning
Minor mistake. I'm tired..
2023-03-02 14:02:39 -05:00
Joseph Cloutier
94ecdeb7df Improve doWork's backwards compatibility. 2023-03-02 14:00:37 -05:00
Chris Speciale
4ffc4422b2 BackgroundWorker: Depreciate BackgroundWorker
This revives the BackgroundWorker implementation and adds a depreciation warning.
2023-03-02 13:56:34 -05:00
Josh Tynjala
95e0ea58b2 HTML5Window: add lime_enable_html5_ime define (references openfl/openfl#2564) 2023-02-22 13:24:18 -08:00
Josh Tynjala
c175168d12 HTML5Window: use HTMLInputElement password instead of text to avoid IME issues on Android (closes openfl/openfl#2564) 2023-02-22 13:24:18 -08:00
Josh Tynjala
d1b055633d HTML5Window: rename inputing to imeCompositionActive 2023-02-22 13:24:18 -08:00
Josh Tynjala
46012b9fdb HTML5Window: call blur() before removing the compositionend listener (references openfl/openfl#2564)
This ensures that incomplete IME input gets committed
2023-02-22 13:24:18 -08:00
player-03
46d2145baa Change "A" to "An." 2023-02-22 13:24:18 -08:00
ecanela
2787450163 fix my mystake typo..
sorry for the previous mistake,
2023-02-22 13:24:17 -08:00
ecanela
8911550100 fix a typo in merge function comment 2023-02-22 13:24:17 -08:00
player-03
baa5bc79b7 Strip trailing whitespace. 2023-02-22 13:24:16 -08:00
Josh Tynjala
3ea3f90842 HXProject: null check for keystore.path 2023-02-22 13:24:16 -08:00
Josh Tynjala
923ebf789a ProjectXMLParser: don't require path to be specified in <certificate/> element to create Keystore object (can also be created if type is specified, which allows keystores without paths) 2023-02-22 13:24:16 -08:00
Josh Tynjala
1aa0398ded AIRHelper: allow Adobe AIR apps to be signed with storetypes that don't have a keystore file
For example, -storetype KeychainStore can be used to sign with an -alias value stored in the macOS Keychain
2023-02-22 13:24:16 -08:00
Vulpicula
49d8628e10 Fix openFile not working on Linux.
Thanks to LeotomasMC for some assistance with this.

I noticed and was quite confused by the fact that certain things in Flixel failed to work on Linux, such as FlxG.openURL, which returned "xdg-open: unexpected argument '&'". This appears to fix that and seems to work quite fine, with that segment of Flixel now working once more.

May be good to have someone more qualified than I check this out before er... merging, as I'm not exactly the best programmer around.
2023-02-22 13:24:15 -08:00
player-03
66ad36f8f3 Fix error when using JNI in macro context. 2023-02-22 13:24:15 -08:00
Josh Tynjala
cebe8dff82 Merge branch 'develop' into 8.1.0-Dev 2023-02-22 08:52:43 -08:00
Dimitri Pomier
db0a8e95fa Allow Assets.registerLibrary() for default library 2023-02-06 13:27:13 +01:00
Joseph Cloutier
c422b1f0a2 Work around Promise being @:generic.
On at least some static targets, trying to cast a generic type just results in null.
2023-02-05 09:01:54 -05:00
player-03
eb4a210a18 Remove references to "virtual" threads.
Java has essentially redefined this term, so let's avoid using it.
2023-02-04 17:23:13 -05:00
player-03
74b79f5c31 Remove unnecessary type check syntax.
Apparently it could cause a null pointer error on RPi.
2023-02-04 17:04:26 -05:00