Commit Graph

619 Commits

Author SHA1 Message Date
Josh Tynjala
f8ec10b969 AIRHelper: allow listen=port in <config:air/> to use USB debugging instead of wifi debugging for Adobe AIR apps on Android or iOS 2023-04-13 15:42:05 -07: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
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
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
Josh Tynjala
d75b9f9cfa HTML5Window: add lime_enable_html5_ime define (references openfl/openfl#2564) 2023-01-11 16:00:57 -08:00
Josh Tynjala
e03cc18d31 HTML5Window: use HTMLInputElement password instead of text to avoid IME issues on Android (closes openfl/openfl#2564) 2023-01-11 15:59:49 -08:00
Josh Tynjala
0a0a6f17a6 HTML5Window: rename inputing to imeCompositionActive 2023-01-11 12:51:15 -08:00
Josh Tynjala
26c6930c41 HTML5Window: call blur() before removing the compositionend listener (references openfl/openfl#2564)
This ensures that incomplete IME input gets committed
2023-01-11 12:49:52 -08:00
player-03
908905b887 Change "A" to "An." 2023-01-06 13:40:58 -05:00
ecanela
da40e9ea27 fix my mystake typo..
sorry for the previous mistake,
2023-01-06 12:39:16 -06:00
ecanela
fb596e9d8b fix a typo in merge function comment 2023-01-05 17:10:42 -06:00
player-03
1545179b5b Strip trailing whitespace. 2023-01-03 14:15:23 -05:00
Josh Tynjala
603a3619b6 HXProject: null check for keystore.path 2022-12-30 22:08:14 -08:00
Josh Tynjala
468c193330 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) 2022-12-30 22:08:14 -08:00
Josh Tynjala
7d7f6fbbd3 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
2022-12-30 22:08:14 -08:00
player-03
e9202b2355 Merge pull request #1589 from Vulpicula/patch-1
Fix openFile not working on Linux.
2022-12-20 14:45:48 -05:00
player-03
505d90b6ae Don't modify the argument array.
Just on the off chance that the user reuses it.
2022-12-20 14:10:14 -05:00
player-03
14340b5f87 Fix error when using JNI in macro context. 2022-11-20 11:51:56 -05:00
player-03
63d2f896fb Merge pull request #1597 from player-03/remove_kha
Remove the defunct Kha backend.
2022-11-18 14:07:20 -05:00
Joseph Cloutier
1546e826c2 Remove the defunct Kha backend. 2022-11-14 12:14:22 -05:00
Sirox
b3bf305fc4 Update JNI.hx 2022-11-01 10:43:51 +03:00
Vulpicula
6900d18971 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.
2022-10-19 18:50:15 -07:00
Josh Tynjala
6e8fb70d04 Application: extract the auto exit behavior into a separate method from __removeWindow()
This will allow OpenFL to override the behavior based on the NativeApplication class.
2022-10-10 13:27:36 -07:00
player-03
54c5ea4542 Merge pull request #1551 from player-03/replaceVariable
Expose more information to project.xml users.
2022-10-10 13:41:59 -04:00
player-03
59eedb6aa6 Merge pull request #1539 from player-03/JNI
Parse JNI class names more intelligently.
2022-10-10 13:37:11 -04:00
player-03
76e1df8ef4 Merge pull request #1538 from player-03/programPath
Allow running native apps from other directories.
2022-10-10 13:35:54 -04:00
player-03
fe6f1db7fd Merge pull request #1579 from ShaharMS/develop
Implement `clickCount` on HTML5 and Native.
2022-10-10 13:32:34 -04:00
player-03
9204858082 Merge pull request #1570 from Apprentice-Alchemist/feature/window-opacity
Implement window transparency.
2022-10-10 13:32:18 -04:00