Documentation Index
Fetch the complete documentation index at: https://amethyst.geoxor.moe/llms.txt
Use this file to discover all available pages before exploring further.
Setting up environment
Second Step
Windows
Install Adoptium JavaJDK 21Make sure to enable Add JAVA_HOME to PATH during installation.
MacOS
brew install openjdk@21
sudo ln -sfn /opt/homebrew/opt/openjdk@21/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-21.jdk
echo 'export PATH="/opt/homebrew/opt/openjdk@21/bin:$PATH"' >> ~/.zshrc
Linux
Third Step
Install Android StudioMake sure to download Meerkat Feature Drop | 2024.3.2 from the page
Fourth Step
Add these paths to your environment variablesC:\Users\$USER\AppData\Local\Android\Sdk\emulator
C:\Users\$USER\AppData\Local\Android\Sdk\platform-tools
Fifth Step
Create a virtual emulator device on Android Studio
or connect your android phone to your computer with USB debugging enabled from Developer settings. Sixth Step
Generate a keystore by running the command and following the instructionskeytool -genkey -v -keystore debug.keystore -alias key0 -keyalg RSA -keysize 2048 -validity 10000
Rename the empty example.env to .env in the project rootKEYSTORE_PATH=<path to your .keystore file>
KEYSTORE_PASSWORD=<keystore password>
KEY_PASSWORD=<keystore password>
KEY_ALIAS=<key alias>
NODE_ENV=development
and fill the example values according to the instructionsYou can run the pwd command to get the current absolute path of the folder for keystore
Running the app
First Step
Start the Vite development server Second Step
Start the Capacitor development appyarn cap run android -l --port 6969 --host 127.0.0.1 --forwardPorts 6969:6969
The following command will promt you for device selection, select your Emulator or real device and it will install and launch the development app
Debugging (via ADB)
You can see the debug logs with ADB
adb shell 'logcat --pid $(pidof moe.geoxor.amethyst)'
Devtools can be launched in the target device, follow these steps to see how