Josh Tynjala
2e578d3e56
Default to Android target-sdk-version 34, and support 35 ( closes #1888 )
...
34 is the minimum required version by Google Play, so it should be default.
Bumping to 34 and 35 requires updating both gradle-version and gradle-plugin-version.
The new versions now require an ndkVersion flag in build.gradle. This can be obtained by reading source.properties in the root of the NDK.
JDK 17 will be required for these updates. Previously required JDK 11.
2025-01-14 14:00:54 -08:00
Josh Tynjala
951d5510c2
GameActivity: check for VIBRATE permission on Android
...
While we add this permission by default, if a developer sets custom permissions, we want to avoid crashing when we try to access an API that we don't have permission to use
2025-01-07 12:47:30 -08:00
Josh Tynjala
c81ad95ae5
output.js: fix broken breakpoints in debug builds ( closes #1872 )
...
::SOURCE_FILE:: must appear on the first line so that the .js.map line numbers match with our generated .js file line numbers
Added a comment to explain why that part of the file isn't formatted nicely with line breaks like the rest of the file.
This partially reverts bbcb8bea07
2024-12-09 09:23:12 -08:00
Josh Tynjala
95baa58eff
Merge branch 'develop' into 8.2.0-Dev
2024-07-22 10:01:46 -07:00
Tobiasz Laskowski
a5844a42df
Fix curl static linking on mac
...
This was overlooked in #1682
2024-07-12 12:28:59 +01:00
Joshua Granick
88e21e6cc9
Fix JS, minor improvements to readability after generate
2024-07-09 10:53:53 -07:00
Josh Tynjala
8f3ea8d271
Merge branch 'develop' into 8.2.0-Dev
2024-07-08 14:31:23 -07:00
player-03
e295c8e758
Merge pull request #1804 from MAJigsaw77/vibration-deprecation-fix
...
Android vibration fixes.
2024-07-07 16:18:13 -04:00
player-03
c85c50c4bf
Remove delay before vibration begins.
2024-07-07 16:17:05 -04:00
player-03
f0ae60d1ef
Remove log message.
...
`GameActivity` doesn't print any other messages, so this seems out of place. Plus, it would happen every time even if there's no vibration ongoing.
2024-07-07 14:34:09 -04:00
player-03
1e6fdee508
Simplify and document vibration pattern logic.
2024-07-07 13:53:16 -04:00
player-03
99ff0afeab
Reduce duplicate logic.
...
I'd rather duplicate the SDK version check, not the math.
2024-07-07 13:20:06 -04:00
Mihai Alexandru
24ac93a18a
Alright
2024-07-07 20:18:11 +03:00
Josh Tynjala
e257b7ebe4
Merge branch 'develop' into 8.2.0-Dev
2024-07-01 08:53:48 -07:00
player-03
5f7e63425e
Remove package from extension AndroidManifest.xml
...
Per https://developer.android.com/guide/topics/manifest/manifest-element#package
2024-06-26 20:13:10 -04:00
Mihai Alexandru
97e1af377a
Use namespace for gradle projects to fix deprecation warnings.
2024-06-26 20:13:10 -04:00
Mihai Alexandru
b7d44342d1
Oops
2024-06-17 12:01:00 +03:00
Mihai Alexandru
165d478cb9
Oops
2024-06-17 10:22:28 +03:00
Mihai Alexandru
3d8ad8a0e3
Cancel the vibration when the app pauses or when is being destroyed.
2024-06-17 09:48:22 +03:00
Mihai Alexandru
0e0dd0b5a2
Support VIEW intents on Android. ( #1799 )
...
* Add Drop file event support for android.
* Updated MIME type configuration and intent filter generation.
* "supportedMimeTypes" => "mimeType"
* `mimeType` -> `accept-file-intent`
2024-06-16 19:29:25 -04:00
Mihai Alexandru
bd3bbc532e
Maintain style
2024-06-16 10:53:20 +03:00
Mihai Alexandru
3f5d797cf0
Update GameActivity.java
2024-06-16 10:47:40 +03:00
Joseph Cloutier
2874ac9cab
Use globalThis.
...
It's designed to solve exactly this problem, and has been universally available since 2020.
The most likely scenario for `globalThis` to fail is if the user is stuck with an old browser, in which case `self` will be available. `window` will be too, but `self` also works in web workers.
2024-06-10 14:26:46 -04:00
Joseph Cloutier
832ac358c1
Use === and !== in output.js.
2024-06-10 14:14:39 -04:00
Joseph Cloutier
bbcb8bea07
Format output.js for readability.
2024-06-10 14:12:19 -04:00
Joseph Cloutier
8066037cdd
Bug fix: Node.js was being treated as a web worker context.
2024-06-10 14:07:22 -04:00
Josh Tynjala
c3170a0577
Merge branch '8.2.0-Dev' into feature/hlc
2024-01-30 09:16:34 -08:00
player-03
55dfc267bb
Merge branch '8.2.0-Dev' into ConfigData
2024-01-13 23:41:14 -05:00
Joseph Cloutier
2f8da1d39d
Remove excess whitespace from AndroidManifest.xml.
...
Grouping these blocks makes logical sense, and makes the output a bit prettier. Win-win.
2023-12-21 23:01:37 -05:00
Joseph Cloutier
f0a040727c
Allow clearing attributes by passing "".
...
project.xml can't pass `null`, so this seems like the next best thing.
2023-12-21 22:46:13 -05:00
Joseph Cloutier
60064f55b3
Make AndroidManifest.xml more configurable.
...
Now if you need to add something to the `<application />` or `<activity />` tags, you can do it from project.xml. This will require new documentation, however.
2023-12-21 22:30:58 -05:00
Joseph Cloutier
b0c7025e45
Simplify permissions in AndroidManifest.xml.
...
`AndroidPlatform` provides a default value, so the array will never be null.
2023-12-21 22:12:14 -05:00
Josh Tynjala
f0ecccf5eb
HL/C on macOS
2023-10-19 15:00:27 -07:00
Joseph Cloutier
9a9b89ae06
Merge branch 'develop' into 8.2.0-Dev
2023-08-17 21:07:12 -04:00
Josh Tynjala
987e3dd425
Merge branch 'develop' into 8.1.0-Dev
2023-08-14 15:53:18 -07:00
Josh Tynjala
b6ebe15d15
Replace Adobe AIR debug certificate because it expired
2023-06-29 10:23:03 -07:00
Joshua Granick
35d1436dcd
Revert WebAssembly improvements (moved to 8.1.0-Dev branch)
2023-05-30 09:03:18 -07:00
Joshua Granick
2ccee960dc
Rename Emscripten target to WebAssembly
2023-05-30 08:53:09 -07:00
Joshua Granick
f285df6f76
Support JS dependency embedding on Emscripten output
2023-05-30 08:52:56 -07:00
Joshua Granick
b410a90121
Print http-server message, allow auto port finding starting at 3000
2023-05-30 08:52:38 -07:00
Joshua Granick
9adab8f8c6
Add favicon to Emscripten output
2023-05-30 08:47:01 -07:00
Joshua Granick
be19381999
Emscripten fixes
2023-05-30 08:46:52 -07:00
Joshua Granick
3dbc73f9ab
Rename Emscripten target to WebAssembly
2023-05-23 14:19:32 -07:00
Joshua Granick
deecd6c6f8
Support JS dependency embedding on Emscripten output
2023-05-20 11:19:33 -07:00
Joshua Granick
a90915cb3f
Print http-server message, allow auto port finding starting at 3000
2023-05-20 11:05:47 -07:00
Joshua Granick
3596f83a41
Patch node http-server for wasm mime-type
2023-05-20 10:07:31 -07:00
Joshua Granick
7c73bff438
Add favicon to Emscripten output
2023-05-19 23:22:16 -07:00
Joshua Granick
eec6e5e0fa
Emscripten fixes
2023-05-19 23:10:16 -07:00
Josh Tynjala
a0c6f92136
http-server: update module to latest
2023-05-16 12:53:26 -07:00
Josh Tynjala
763b982bd1
HTML5Helper: use bundled terser, but also add optional -npx flag to use npx version
2023-05-16 12:45:29 -07:00