Commit Graph

586 Commits

Author SHA1 Message Date
Joseph Cloutier
88d3fa7184 Add CoreHaptics.framework.
This is required by SDL_mfijoystick.m as long as `ENABLE_MFI_RUMBLE` is
defined. And guess what? That's the file that defines it. There's no way
to disable it except decreasing the max iOS version.

Seems like iOS 13 is the new minimum.
2022-05-21 16:52:31 -04:00
Joseph Cloutier
c37e48faaf Disable HIDAPI.
Problem one: it requires its own binary, which we haven't built. There
are instructions in sdl/src/hidapi/README.txt, if we ever want to try.

Problem two: the Android app segfaults when `hid_init()` calls
`g_JVM->AttachCurrentThread()`. This might be a bug in NDK 21's jni.h,
but that seems unlikely. Perhaps a version mismatch?

In any case, we aren't using the code at the moment, so the easy answer
is to leave it out.
2022-05-20 01:00:35 -04:00
Joseph Cloutier
d21847e65c Update SDL to 2.0.22.
On Android, `SDL_RWops` no longer stores a plain file descriptor,
so the `AAsset` API must be used instead:
https://developer.android.com/ndk/reference/group/asset

`HAVE_INOTIFY` is required on Linux at the moment, but the bug will be
fixed in the next SDL release.
2022-05-19 17:34:20 -04:00
Apprentice-Alchemist
ad70700a14 Try to fix Windows mess a bit.
Default to 64 bit on windows too.
2022-05-19 20:46:08 +02:00
arm32x
3c4ddbab17 Fix Main.cpp template for -static -debug builds
When building a Lime application in debug mode on Windows, the console
subsystem is used and Windows looks for a 'main' function. However, the
Main.cpp file used when linking statically always defines a 'WinMain'
function regardless of whether the application is being built in debug
mode.

This commit adds an additional check in the Main.cpp that defines a
'main' function instead of 'WinMain' when building in debug mode.
2022-05-04 13:10:13 -04:00
Apprentice-Alchemist
a44fe3669a Put hashlink binaries in templates/bin again.
Add setup script for macOS codesigning.
2022-04-28 19:42:45 +02:00
Apprentice-Alchemist
a3b3d8593f Update hashlink. 2022-04-28 19:42:40 +02:00
Apprentice-Alchemist
daca1a2a62 Update hashlink. 2022-04-28 19:42:39 +02: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
Joseph Cloutier
630aa1a62f Fix web worker errors.
It took a lot of work to get web workers to work, but web workers finally work!

`transferList` doesn't seem to work, though. It makes the object
inaccessible as expected, but it doesn't seem to affect performance.
2022-02-28 19:15:19 -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
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
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
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
zatrit
75407f5db8 Fixed dialog on android APK signing 2021-07-23 09:00:09 -07:00
Josh Tynjala
216096270e ios: add missing required Metal.framework dependency to Xcode project 2021-04-29 14:42:46 -07:00
player-03
fd89a87dfb Standardize formatting
This file isn't entirely consistent with the rest of Lime, but it is self-consistent and I think we should keep it that way.

(I fixed a few unrelated lines while I was at it. I know it makes the pull request less tidy, but I wanted to confine simple formatting changes to a single commit.)
2021-03-29 05:25:00 -04:00
Kostas Chatzikokolakis
7ac8d0c27e ManifestResources: append "/" to rootPath if missing 2021-01-27 13:37:02 +02:00
Josh Tynjala
152bd3df2c air: template supports window allow-high-dpi for desktop apps 2021-01-26 15:24:48 -08:00
Rainy
6ee94bcf60 Compatible with electron version 11.
Compatible with electron version 11.
2021-01-04 11:55:39 -08:00
dustinaux
a7451bb9a4 Fix Touch not working on some Google Pixel phones 2021-01-04 11:16:15 -08:00
Joshua Granick
c43be68eab Revert "add failIfMajorPerformanceCaveat setting"
This reverts commit aa77fcbdd7.
2020-12-17 12:37:37 -08:00
Александр Хохлов
aa77fcbdd7 add failIfMajorPerformanceCaveat setting 2020-10-14 09:23:52 +04:00
Joshua Granick
1b809a4918 Update ios-deploy 2020-10-05 19:45:18 -07:00
dependabot[bot]
93eddd1f3d Bump electron from 1.8.8 to 9.1.0 in /templates/electron/template
Bumps [electron](https://github.com/electron/electron) from 1.8.8 to 9.1.0.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/master/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v1.8.8...v9.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-19 20:42:40 -07:00
m0rkeulv
bf2b51ce1e fix for android rotation 2020-08-03 10:25:40 -07:00
m0rkeulv
f3adce068c fix for android screen orientation 2020-08-03 10:25:40 -07:00
Jens Fischer
8aba4fdfe0 Update Google Closure to v20200315 2020-05-11 19:21:22 -07:00
Joshua Granick
42283e61bb Update to SDL 2.0.12 2020-03-18 13:36:35 -07:00
mc0239
7708353a6a Change http to https in gradle-wrapper.properties as services.gradle.org is inacessible over http 2020-01-27 12:47:52 -08:00
mc0239
1fcc76ee12 Use gradle built-in shorthand notations for jcenter and google 2020-01-27 12:47:52 -08:00
Joshua Granick
883ba6260e Add hxnodejs to Electron template 2019-11-11 11:07:47 -08:00
Justin Espedal
d5e80fa5c1 Allow use of launch storyboard instead of launch images on iOS 2019-11-06 12:27:48 -08:00
flashultra
72beeced30 Update to the latest Gradle 5.6.3 and Gradle Android plugin 3.5.1
Fix issue with ANDROID_GRADLE_TASK. Set apk file  in separate folder ( from
gradle  4.x)
2019-11-01 13:21:36 -07:00
Joshua Granick
bb2af5eed1 Rely on SDL for Android fullscreen window behavior 2019-10-08 13:41:36 -07:00
Joshua Granick
274ae5fe3b Fix double root path 2019-10-08 13:13:10 -07:00
Joshua Granick
21d64f9c1c Remove hxelectron dependency 2019-10-05 17:46:13 -07:00
Lewis Sobotkiewicz
e2ae97d6cc Don't use the hxelectron library when building ApplicationMain. That sets the 'nodejs' compiler flag, which emits improper JavaScript when running in the Electron window. 2019-09-20 21:10:48 -07:00
Joshua Granick
4eaf5fe290 Update lime.exe template file 2019-09-05 09:16:54 -07:00
Joshua Granick
aeff90d3b0 Update lime.exe to work with Neko 64-bit installed 2019-09-05 08:01:05 -07:00
Joshua Granick
80867b3f62 Android root path changes (fix #1346) 2019-08-22 08:00:55 -07:00
Joshua Granick
e9a790a4ea Update SDL to 2.10 2019-08-20 12:59:31 -07:00
Joshua Granick
d215e9c344 Update HL Mac binary to 0.10 2019-08-20 07:41:43 -07:00
jgranick
9359e1ed37 Update HL Linux/Windows binaries to 1.10 2019-08-19 14:37:35 -07:00
Joshua Granick
1caf9d92f8 Revert "Update ManifestResources.hx"
This reverts commit dfdb576e37.
2019-08-13 10:57:51 -07:00
Joshua Granick
dfdb576e37 Update ManifestResources.hx 2019-08-13 10:38:41 -07:00
Joshua Granick
d0f15395a5 Asset manifest fix 2019-08-12 14:48:55 -07:00
Joshua Granick
7bc1d06634 Update SDL 2019-07-03 13:18:39 -07:00
Justin Espedal
0fdbb6b2ed Fix asset loading on Windows 2019-06-24 12:39:20 -07:00
Joshua Granick
ef154d2916 Revert "Move native DLL directory to 'lib'"
This reverts commit 20f626dab8.
2019-06-24 10:37:22 -07:00