This part is not written very well.
See also Developer Guide.
Last Update: 2024.11.01
Build:
- a PC : any desktop operate system platform (only
Windows
andUbuntu 20.04
are tested), I am not sure if it works onAndroid(Termux)
because jvm version. - JDK 17 (we are using AGP 8.7.2 with gradle 8.10.2).
- The connected and fast network.
Development:
Plus Android Studio
with correspond Android Gradle Plugin
(currently Ladybug | 2024.2.1 Patch 2
).
(IDEA
might be not compatible because Android Gradle Plugin
is too new)
bash
(on Linux) and powershell
(on Windows) are tested.
a. go to release page to download parked release code
b. use git
git clone <REPO-URL> --depth=1 -b <VERSION>
on Windows
winget install --id EclipseAdoptium.Temurin.17.JDK
# or JDK by other vendor
on Linux (Debian
based)
apt-get install temurin-17-jdk
on Linux ( Fedora
/ RedHat
/ SUSE
)
yum install temurin-17-jdk
See Also Appendix Generate A New Keystore for Signing
create file signing.properties
on repository's root:
(Replace <*> with yours.)
storeFile=<your-signing-key-file-path->
storePassword=<keystore-password>
keyAlias=<key-alias>
keyPassword=<key-password>
See Also Appendix Generate A New Keystore for Signing
Now, we can build project in variant of Modern
and Stable
with Build Type Release
now. 1
./gradlew assembleModernStableRelease --parallel
Built apk is in ./app/build/outputs/apk/modernStable/release/
with name PhonographPlus_<VERSION>-modern-stable-release.apk
You can run
./gradlew PublishModernStableRelease
to move apk to ./products/ModernStableRelease
and rename to Phonograph Plus_<VERSION>_ModernStableRelease.apk
Use keytool
from JDK:
keytool -genkeypair -storepass <keystore-password> -alias <key-alias> -keypass <key-password> -keyalg RSA -keysize 2048 -keystore <your-signing-key-file-path->
You can create signing.properties
by command:
(Replace <*> with yours.)
echo "storeFile=<your-signing-key-file-path->" >> ./signing.properties
echo "storePassword=<keystore-password>" >> ./signing.properties
echo "keyAlias=<key-alias>" >> ./signing.properties
echo "keyPassword=<key-password>" >> ./signing.properties
Footnotes
-
See more in section Build Variant from Development Guild. ↩