Josh Tynjala
06baca4396
README: use correct file name for installing nightly build
2022-07-11 15:29:28 -07:00
Josh Tynjala
f004b968d0
README: link to development builds shows only successful builds
2022-07-11 14:53:34 -07:00
player-03
2a81e10ba9
Merge pull request #1559 from mgambrell/develop
...
vorbisfile.cpp - change free(x) to `delete x` (fixes #1556 )
2022-07-07 20:47:17 -04:00
Josh Tynjala
8d715cb741
docs website URL
...
This may change, but this is where it is right now
2022-07-05 08:51:01 -07:00
Josh Tynjala
7e33d52645
docs: logo not required to be served from root of domain
2022-07-05 08:49:08 -07:00
mgambrell
0125e939a9
vorbisfile.cpp - change free(x) to delete x ( fixes #1556 )
2022-07-04 00:00:38 -05:00
Justin Espedal
b4110480c1
Don't set AL.BYTE_OFFSET immediately after calling AL.sourcePlay
...
The sourcePlay call in NativeAudioSource.play is removed, since
setCurrentTime will always do that itself. Additionally, within
setCurrentTime, sourcePlay was happening before setting the byte
offset for non-streamed sounds.
This appears to fix the problem of sounds playing the first part
multiple times, described here:
https://community.openfl.org/t/sounds-play-twice-on-ios/12163
2022-07-04 12:17:43 +09:00
player-03
4f83af5848
Merge pull request #1545 from player-03/configChanges
...
Suppress `uiMode` configuration changes.
2022-06-27 01:49:18 -04:00
player-03
b542d62429
Merge pull request #1552 from player-03/JNI_safety
...
Rename `ForegroundWorker` → `JNISafety`.
2022-06-18 22:20:08 -04:00
Joseph Cloutier
da5704e263
Rename ForegroundWorker → JNISafety.
...
This change places the focus on the one known use case, while clearing
up potential confusion caused by similar-sounding classes that function
totally differently.
2022-06-18 21:18:02 -04:00
Joseph Cloutier
0fd3144323
Expose more information to project.xml users.
...
Previously, they could access `${app.file}` and `${config.android}`, but
not `${project.platformType}` or `${config.android.target-sdk-version}`.
Now they can!
I don't know if we want to phase out `${projectDirectory}`, but it's now
an option.
2022-06-14 21:01:07 -04:00
Josh Tynjala
33502b099e
Preloader: if disable_preloader_assets is defined, keep the public API available
...
Ensures that existing custom templates still work
2022-06-14 07:42:30 -07:00
Josh Tynjala
e3a755ff60
ManifestResources: use Dynamic instead of AssetLibrary when disable_preloader_assets is defined
2022-06-14 07:41:50 -07:00
Josh Tynjala
4e1974fc9f
ManifestResources: if disable_preloader_assets is defined, keep the public API available
...
Ensures that existing custom templates still work
2022-06-14 07:07:22 -07:00
Joseph Cloutier
2a2b5ebd22
Update Android SDK setup instructions.
...
Not only are we no longer targeting API 19, the minimum is now 21.
2022-06-12 13:22:00 -04:00
Joseph Cloutier
9a81ae8798
Merge branch 'develop' into DeprecatedGradleFeatures
2022-06-12 10:00:23 -04:00
Joseph Cloutier
bb9b64af81
Suppress uiMode configuration changes.
...
When the user switches between dark and light themes, Android destroys
and recreates the activity. However, Lime activities can't be recreated
like this, and just close instead.
Since we don't actually use the system theme, there's no reason to do
this. Simplest solution is to suppress it.
https://developer.android.com/guide/topics/resources/runtime-changes
https://developer.android.com/guide/topics/ui/look-and-feel/darktheme#config-changes
2022-06-11 20:28:41 -04:00
Joseph Cloutier
5ffbfd7f3a
Add AndroidX options to <config:android />.
...
`enableJetifier` defaults to false because it can slow compilation.
2022-06-11 20:20:33 -04:00
Joseph Cloutier
00fd063026
Use implementation instead of api.
...
This is recommended as a best practice, though AFAIK this only matters
for projects that are going to be imported by other projects.
For instance, you used to be able to include `:deps:extension-api` by
including any extension that depended on it. Now, every project that
wants to use `extension-api` has to include it directly. (Which is fine
because in practice, they all already do so.)
2022-06-11 20:10:34 -04:00
Joseph Cloutier
619b67b472
Remove reference to nonexistant folder.
...
libs/ doesn't exist; only app/libs/ does, and that's handled by app/build.gradle.
2022-06-11 20:10:34 -04:00
Joseph Cloutier
1ff434043c
Remove trailing spaces.
2022-06-11 20:09:42 -04:00
player-03
89158a9b7f
Merge pull request #1541 from Stencyl/fix-native-audio-stream-pos
...
Fix getCurrentTime for streaming native sounds
2022-06-10 13:27:00 -04:00
Josh Tynjala
4be9bcf6ff
CommandLineTools: mention new --template option from commit 3ba4c4c5c0 in help text
2022-06-10 09:55:50 -07:00
Justin Espedal
8660a189ba
Fix getCurrentTime for streaming native sounds
...
vorbisFile.timeTell() returns the current decoding offset in seconds,
and it's updated each time vorisFile.read() is called. Since data is
buffered by calling vorbisFile.read() multiple times, the associated
time values also need to be preserved in order to get the correct time
offset.
Without this change, getCurrentTime() will return some time in the
future relative to the amount of buffered data.
2022-06-10 13:57:13 +09:00
Josh Tynjala
81d682d355
Window: add new setTextInputRect() method to optionally specify the location of the input when textInputEnabled is set to true
...
On native, this uses SDL_SetTextInputRect
2022-06-09 14:14:05 -07:00
player-03
439535a9d4
Explain how to build HashLink binaries.
2022-06-08 15:17:01 -04:00
player-03
5f6f762ff8
Merge pull request #1536 from player-03/android-21
...
Set minimum-sdk-version to 21.
2022-06-07 16:46:36 -04:00
Joseph Cloutier
f14dfc8462
Work around unreliable clipboard on Linux.
...
Most likely SDL_waylandvideo.c is to blame, but I don't know enough to
rule out SDL_x11video.c.
2022-06-07 13:36:35 -04:00
Joseph Cloutier
be8fd592a3
Document JNI function arguments.
2022-06-07 12:14:32 -04:00
Joseph Cloutier
14671facef
Parse JNI class names more intelligently.
2022-06-07 12:05:50 -04:00
Joseph Cloutier
0e6bfa830b
Allow running native apps from other directories.
...
It isn't always safe to assume `./` is the app directory, and removing
that assumption opens up options.
Requires at least Haxe 3.4, but I don't think Lime supports 3.3 anyway.
2022-06-07 11:47:18 -04:00
Joseph Cloutier
c13f02ef9c
Check all asset types if type == null.
...
According to OpenFL's documentation, `type` is
"The asset type to match, or null to match any type."
2022-06-06 23:07:03 -04:00
Joseph Cloutier
6652a6f7ab
Simplify switch statement.
...
`cast` can handle `null`; no need for a ternary operator.
2022-06-06 23:00:01 -04:00
Joseph Cloutier
3d3bcc4ebc
Set minimum-sdk-version to 21.
...
For parity with #1519 , and to resolve #757 .
2022-06-06 22:20:15 -04:00
player-03
2286704ed3
Add HashLink to the list of submodules.
2022-06-06 20:51:42 -04:00
player-03
238428c7ea
Merge pull request #1509 from player-03/icon_priorities
...
Implement `Icon` priorities.
2022-06-06 01:14:55 -04:00
player-03
d4f5c04d22
Merge pull request #1496 from player-03/android-ndll
...
Don't expect Android extensions to use ndlls
2022-06-06 01:02:49 -04:00
Joseph Cloutier
2f68d916e2
Merge branch 'develop' into submodules
2022-06-06 00:08:47 -04:00
player-03
b03edaec73
Use Java 11 to build Android.
...
This is required by the newer Gradle plugin.
2022-06-05 23:53:53 -04:00
Joseph Cloutier
ab8003640b
Use type hint in findMatch().
...
Haxe 3 can't deduce the type without it.
2022-06-05 23:49:21 -04:00
Joseph Cloutier
744b476f54
Add acceptSmaller argument.
...
I finally figured out why `findNearestMatch()` was coded the way it was.
2022-06-05 23:25:56 -04:00
Joseph Cloutier
793aa69ff4
Don't ignore priority argument.
2022-06-05 23:09:07 -04:00
Joseph Cloutier
67e4044abc
Merge branch 'develop' into single_threaded_async
2022-06-05 22:42:29 -04:00
Joseph Cloutier
46acd3b373
Target Android API level 30.
...
https://developer.android.com/distribute/best-practices/develop/target-sdk
2022-06-05 22:38:48 -04:00
Joseph Cloutier
8bcbafd587
Update the Android Gradle Plugin.
2022-06-05 22:38:08 -04:00
Joseph Cloutier
96bfa805cf
Add instructions to debug Java classes.
...
The Java compiler complains about deprecated features and unsafe
operations, but it's surprisingly hard to get the details. Here's how.
2022-06-05 22:37:07 -04:00
Joseph Cloutier
87611eeed1
Remove uses-sdk tag.
...
This is now redundant, and sometimes even causes builds to fail.
2022-06-05 22:37:07 -04:00
Joseph Cloutier
f81439d1d2
Use androidX when available.
...
https://developer.android.com/jetpack/androidx/
2022-06-05 22:37:07 -04:00
Joseph Cloutier
ded22af195
Replace references to jcenter().
...
https://developer.android.com/studio/build/jcenter-migration
Gradle considers this function a "deprecated feature."
2022-06-05 22:37:07 -04:00
Joseph Cloutier
fa7f487595
Replace ndk.dir with ndkPath.
...
https://developer.android.com/studio/projects/configure-agp-ndk#agp_version_41
The documentation tells you to be careful about this, since you're
putting local-only information into a file that gets uploaded to version
control, but Lime doesn't really need to worry about that.
Granted, Lime DID use local.properties, but that's no longer practical.
2022-06-05 22:37:07 -04:00