This part is not written very well.
See also Developer Guide.
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.2.2 with gradle 8.5).
- The connected and fast network.
Development:
Plus Android Studio
with correspond Android Gradle Plugin
(currently Hedgehog (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
using keytool
from JDK
keytool -genkeypair -storepass <keystore-password> -alias <key-alias> -keypass <key-password> -keyalg RSA -keysize 2048 -keystore <your-signing-key-file-path->
create file signing.properties
on repository's root:
storeFile=<your-signing-key-file-path->
storePassword=<keystore-password>
keyAlias=<key-alias>
keyPassword=<key-password>
replace <*> with yours.
You can create signing.properties
by command:
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
We are building the build variant Stable
(Build Type Release
) now.
See more in section Build Variant.
./gradlew assembleStableRelease --parallel
Built apk is in ./app/build/outputs/apk/stable/release/
with name PhonographPlus_<VERSION>-stable-release.apk
You can run
./gradlew PublishStableRelease
to move apk to ./products/stableRelease
and rename to Phonograph Plus_<VERSION>.apk