Added `glfwGetWindowTitle` (which doesn't seem to be used by Minecraft)
Added `glfwPlatformSupported`
Added `glfwSetPreeditCallback`, `glfwSetPreeditCandidateCallback`,
`glfwSetIMEStatusCallback`
Hash the jar (which is now reproducable) and use that for version file
Also made it so it is no longer dependent on `pwd` being the root
project.
Should fix part of the issues this has on compiling in android (termux /
Android Code Studio)
Axiom uses a fork with a different naming scheme for the libraries. This
argument overrides that with what we use, which is a fork of the
official repo with android build instructions.
New behavior is as follows.
If below 1.17, use the GL4ES based renderer.
If below 1.17 and modded, use the Mesa renderer (Zink in this case).
If above 1.17 and/or modded, use MobileGlues.
Simplifies to one constructor. We don't need to copy the approach of
forge because neoforge integrates the minecraft version into their
version scheme, thus we have no use for the minecraft version provided
to us.
For some reason it keeps trying to use the system apache commons instead
of the one in the app, and because that one is really old, this method
is missing so it crashes.
Crash report
- Time: 26-Dec-2025 6:46:49 PM
- Device: lineage_Hol-U19 Hol-U19
- Android version: 7.1.2
- Crash stack trace:
- Launcher version:
amethyst-legacy-20251226-c798f65-feat/import-modpack
java.lang.NoSuchMethodError: No static method
encodeHexString([B)Ljava/lang/String; in class
Lorg/apache/commons/codec/binary/Hex; or its super classes (declaration
of 'org.apache.commons.codec.binary.Hex' appears in
/system/framework/org.apache.http.legacy.boot.jar)
We want to be able to grey out files that are not .zip or .mrpack so
people can have an easier chance of seeing their modpacks. To do this,
we match the `application/x-modrinth-modpack+zip` and `application/zip`
mimetypes as prescribed in the Modrinth documentation
https://support.modrinth.com/en/articles/8802351-modrinth-modpack-format-mrpack.
Stock android does not have `application/x-modrinth-modpack+zip`. OEM
vendors seem to include this in their ROMs, possibly from just using
https://gitlab.freedesktop.org/xdg/shared-mime-info as part of where
they source their additional mimetypes from.
There's a tendency for Android 12 and below to not have the
`application/x-modrinth-modpack+zip` mimetype, likely due to the
addition of it being relatively recent, so we have to account for that
by also adding `application/octet-stream`.
We cannot only have `application/octet-stream` or else it fails to match
.mrpack in systems that have `application/x-modrinth-modpack+zip`.
Sadly there seems to be no reliable way to check whether or the the ROM
has the `application/x-modrinth-modpack+zip` mimetype so we just match
it along with `application/octet-stream` to cover our bases.