Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.44 KB

File metadata and controls

40 lines (31 loc) · 1.44 KB

MathBlitz Android Production Guide

This project has been wrapped using Capacitor 6.

Current Build (v1.1 - Unique)

  • Package Name: com.xdevmathblitz.game
  • App Bundle (AAB): MathBlitz-xdev-v1.1.aab (Recommended for Play Store)
  • Unsigned APK: MathBlitz-xdev-v1.1-release-unsigned.apk
  • Debug APK: MathBlitz-xdev-debug.apk

How to Build a Release APK (for Play Store)

To host on the Play Store, you need a Signed Release APK or Android App Bundle (AAB).

1. Generating a Key (One-time)

If you don't have a keystore, generate one:

keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-key-alias

2. Building the Release AAB (Recommended for Play Store)

Navigate to the android directory and run:

./gradlew bundleRelease

The AAB will be at android/app/build/outputs/bundle/release/app-release.aab.

3. Signing the AAB

Use jarsigner to sign the bundle:

jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA256 -keystore my-release-key.jks app-release.aab my-key-alias

Important Files

  • android/: The full Android Studio project.
  • www/: The source web assets.
  • capacitor.config.json: Capacitor configuration.

Java Version Note

This project has been patched to support Java 17. If you upgrade your local environment to Java 21, you may remove the compatibility blocks in build.gradle and capacitor.build.gradle.