This must have been an oversight when implementing the documents
provider (6d714bbf0d). There is a
method on DocumentsProvider that gives us access to the context, so
trying to get it via the Application is unnecessary, and we can delete
that code. Apparently this also fixes the mysterious crashes when
opening the file manager the first few times.
Change-Id: Iab674e05104a7c895a2df2a2fcf9d0f1942f125b
Also plumbs through the "branding", giving a different package name and
display name to (for example) preview builds.
Change-Id: I2bd40dbc560de55c2ef9b16efc5dd4a28a769c36
The default generator on windows does not respect CC and CXX env
variables. Instead of manually overwriting the compiler for all c/c++
builds we can overwite the generator with one that respects the
environment ie ninja.
Change-Id: Iae72276b09c77f1f45fc121bd0ed44a8c2307b11
I upgraded to Android Studio 2024.3.2 Patch 1 locally, and then:
- The AGP and Gradle versions were bumped using Android Studio's
Upgrade Assistant. It also made some required config changes:
- The package name was moved from AndroidManifest.xml to
build.gradle
- Some stuff was added to gradle.properties
- I updated the CI and build docs for these changes.
- The Kotlin plugin version was manually updated due to an
incompatibility with the newer JDK bundled with Android Studio,
as suggested here: https://stackoverflow.com/a/79167210
- JDK target versions for Java and Kotlin were specified in order
to fix the newly-fatal error when they don't match.
Change-Id: I4a9e838cf4b3f8243fc66d4dc3a4e1b3194a8baf
I can't see a use case for building touchHLE as a library. This
simplfies the build and makes it easier to move to the new modern
practices. Also matches what libsdl does nowdays.
Change-Id: I4d65ae650b679c849a55e3b42225bda4ffd14939
Ensures that windows uses the ndk bundled compiler for android builds
Co-authored-by: ciciplusplus <ciciplusplus@gmail.com>
Co-authored-by: Oscar1640 <oscarduvan4950@gmail.com>
Change-Id: Iaec1d7a7dccb0964f3c75fd74aa1ded43ed56a2e
This commit also contains some Android build fixes. For some reason,
the GitHub Actions runner encountered problems I don't get on my
machine.
Change-Id: I8f052aa0feadbbbd356d453a2f44220decf52111
1881e89974 accidentally broke the Android
build because it made the bundled feature not be set in Cargo.toml.
While it's redundant where the default features are set, we don't use
those for the Android build, so it needs to explicitly ask for this.
This is a squashed merge of the Android branch, the final commit of
which was 3c517a36b1, tagged as
android-before-merge.
@ciciplusplus took the initiative to start porting touchHLE to Android
and got the first version working. @hikari-no-yume's contributions came
later and are mostly fixes and cleanups of various kinds.
There are still various unfinished things in this port, but it's now
in a clean enough state that it no longer needs its own branch.
(Merged pull request by @ciciplusplus, resolves #88.)
Co-authored-by: ciciplusplus <ciciplusplus@gmail.com>