Commit Graph

4691 Commits

Author SHA1 Message Date
Josh Tynjala
1f954d268f Better naming/organization for application/metadata/window validation types 2022-04-26 14:21:07 -07:00
Josh Tynjala
10b8f962cd update lime and lime-samples repo paths 2022-04-26 13:56:15 -07:00
Josh Tynjala
ee39b85a9e Fix compatibility with older Haxe 2022-04-26 13:20:43 -07:00
Josh Tynjala
80f83f69c7 Github Actions: Haxe version matrix 2022-04-26 08:56:30 -07:00
Josh Tynjala
da3705ed20 Electron: update to latest version 18
-lib hxnodejs is no longer included in the compilation of ApplicationMain (but it is still included for compilation of ElectronSetup, of course). hxnodejs was removed from ApplicationMain because it forces some require() calls to be included in the generated .js, which would require disabling certain Electron security features to work properly in newer versions of Electron than we targeted previously. Electron's documentation recommends not to do that.

To use Node.js APIs, you need to run them in more secure contexts, while communicating over IPC with a "preload script" from the "renderer" process. In Lime/OpenFL, this would require a custom ElectronSetup template override, but that shouldn't be all that surprising. See: https://www.electronjs.org/docs/latest/tutorial/process-model for more details on the Electron side.
2022-04-14 12:08:58 -07:00
Joshua Granick
1c92c707cc Run Haxe formatter 2022-03-23 14:02:39 -07:00
Joshua Granick
362be074f4 Merge HXProject defaults and exclude architectures at end 2022-03-23 14:00:32 -07:00
Joshua Granick
54338c082a Default to high DPI on HTML5 2022-03-21 16:53:05 -07:00
Joshua Granick
92b213b56b Revert "Set window.scale on DOM mode"
This reverts commit 5189413361.
2022-03-21 08:40:08 -07:00
Joshua Granick
5189413361 Set window.scale on DOM mode 2022-03-21 08:30:02 -07:00
Joshua Granick
6917d04090 Fix preloader for processed libraries (IE: NyanCat) 2022-03-19 12:01:55 -07:00
Joshua Granick
f34c274bb1 Silence deprecated motionevent warnings on Firefox 2022-03-19 11:29:01 -07:00
Joshua Granick
79cf3ea998 Increment version to 8.0.0 2022-03-19 10:53:53 -07:00
Josh Tynjala
5977601ca8 Fix Github repo URLs to go to haxelime/lime instead of openfl/lime 2022-03-18 16:24:47 -07:00
Josh Tynjala
dbecf2276c HTTPRequest: withCredentials in XMLHttpRequest and manageCookies in AIR's URLLoader are not the same
HTML5 doesn't have the ability to disable cookies, as far as I can tell, but we can disable them on native targets.
2022-03-18 15:14:46 -07:00
player-03
ac88927b1a Merge pull request #1523 from Apprentice-Alchemist/patch-1
Remove custom zip reader.
2022-03-13 23:20:40 -04:00
Zeta
68135c0d33 Remove custom zip reader.
This file was added 8 years ago, and currently breaks `haxe.zip.Reader` usage on all targets but Neko.
I don't see a reason why it should be kept around, so let's delete it.
Closes #1400.
2022-03-13 21:35:04 +01:00
Josh Tynjala
fbefc24a22 Fix PP_vOdiii__v required but PP_vOiiii__v found in hdll error (references #1521)
Includes tweaks to commit 45955412eb to allow the code to continue working in HashLink

Co-authored-by: ShaharMS <88977041+ShaharMS@users.noreply.github.com>
2022-03-10 14:52:16 -08:00
Josh Tynjala
2e31ae9fd0 NativeHTTPRequest: manage cookies for the current session if withCredentials is true 2022-03-09 15:51:39 -08:00
Josh Tynjala
bd4c10a715 CURLBindings: implement CURLINFO_COOKIELIST
Returns an array of strings
2022-03-09 15:35:57 -08:00
player-03
8397294017 Merge pull request #1519 from Apprentice-Alchemist/feature/android-api-21
Upgrade to android API level 21.
2022-03-09 01:48:32 -05:00
Josh Tynjala
3ba4c4c5c0 CommandLineTools: added --template option to add a custom template path
Works similarly to --source
2022-02-24 15:55:08 -08:00
Josh Tynjala
925e2b67e7 Image: compatibility fix to allow use of genes library to compile as ES modules 2022-02-11 10:32:47 -08:00
Apprentice-Alchemist
b15dcb94c1 Upgrade to android API level 21. 2022-02-03 17:23:43 +01:00
Joshua Granick
45955412eb Resolve KeyCode data type issue on Neko 2022-01-13 15:11:25 -08:00
player-03
2f35e0b24c Merge pull request #1498 from player-03/loadAudioBuffer
Fix error when loading embedded audio.
2021-12-20 10:05:16 -05:00
player-03
8ab755d359 Merge pull request #1497 from player-03/gitignore-obj
Ignore project/obj in extensions.
2021-12-20 10:03:45 -05:00
Josh Tynjala
7bfaa441f2 Github Actions: better .gitignore exclusion 2021-12-09 13:26:36 -08:00
Josh Tynjala
67543f7417 Github Actions: fix typo 2021-12-09 13:09:56 -08:00
Josh Tynjala
9d6d398871 Github Actions: skip .gitignore file when uploading ndll artifacts 2021-12-09 13:08:48 -08:00
Josh Tynjala
5df1faf3c4 Github Actions: no Discord notify on pull request or fork 2021-12-09 12:46:47 -08:00
Josh Tynjala
0ecf27d2d6 disable_preloader_assets haxedef
When the project contains no assets, excludes asset-related classes for big file size savings
2021-11-18 10:46:07 -08:00
Josh Tynjala
e3d49867fb AssetHelper: don't bother creating the default library if there are no assets 2021-11-17 15:13:02 -08:00
Joshua Granick
568eaefa83 Fix OpenAL build with newer GCC on Linux 2021-11-13 15:54:00 -08:00
Josh Tynjala
bedeed591b Added new -air-simulator option for lime test air -ios (or lime test air -android)
This launches the AIR simulator (ADL), but it passes additional options to tell it to simulate a mobile device.
2021-11-12 14:58:22 -08:00
Joseph Cloutier
9f6da5e5c5 Fix error when loading embedded audio.
`loadAudioBuffer` skipped actually creating an `AudioBuffer`. Oops!
Fortunately, `getAudioBuffer` works fine, so I copied that code.
2021-11-09 15:35:21 -05:00
player-03
dc637ca98c Ignore project/obj in extensions.
No one ever wants to include the intermediate build files. However, some choose to include the outputs, so I left them as comments.
2021-11-07 12:33:47 -05:00
Joseph Cloutier
66d906395a Remove lime-samples dependency in createProject.
As pointed out in issue #976, `lime create project XYZ` doesn't rely on any project but Lime itself, and shouldn't try to load lime-samples.
2021-11-01 10:13:50 -07:00
Justin Espedal
ed3686661a Fix GC issues on iOS 15 with iPhone 12
https://github.com/HaxeFoundation/hxcpp/issues/969#issuecomment-941127280
2021-11-01 10:10:12 -07:00
Joshua Granick
2750cf5011 Allow unset values for library.preload/.generate 2021-10-31 15:44:57 -07:00
player-03
290f0bd588 Remove <uses-sdk /> from manifest.
The Android Gradle plugin prefers to retrieve this value from build.gradle, and some versions of the plugin actively complain about the tag being there.

Closes #1435
2021-10-28 03:14:05 -04:00
player-03
33cd3b15fd Set extension-api's defaultConfig.
The Android Gradle plugin prefers to use these values instead of the values in AndroidManifest.xml, and it will always ignore the manifest's `minSdkVersion` even without `defaultConfig.minSdkVersion`.
2021-10-27 20:38:26 -04:00
player-03
53c22391e2 Update extension-api's min/target sdk versions. 2021-10-27 15:16:20 -04:00
Josh Tynjala
f6fb941c99 Electron window width/height should default to 0, the same as html5, for consistency
Before this change, html5 would automatically resize the stage if the window resized, but electron would be letterboxed. They should both automatically resize the stage when the window is resized
2021-10-19 18:05:33 -07:00
Josh Tynjala
b17bc6100b electron: sets -D electron to allow differentiation between plain html5 and electron, if needed 2021-10-19 17:57:36 -07:00
player-03
fc0e31ac33 Merge pull request #1480 from pfoof/documentation
Added comment/docs for some classes.
2021-10-14 20:46:13 -04:00
player-03
e2b66cbe95 More clarifications. 2021-10-14 20:34:53 -04:00
pfoof
ed477763cb More clarifications. 2021-10-07 21:50:55 +02:00
pfoof
c31349e7ed Clarified lime.net.URIParser 2021-10-07 21:34:51 +02:00
pfoof
7754ae8a5a Merge branch 'documentation' of github.com:pfoof/lime into documentation 2021-10-07 21:12:18 +02:00