Android App Building & Publishing

📱 Android App Publishing Overview

This step guides you through building a signed Android App Bundle (AAB) or APK for publishing on the Google Play Store. The process includes keystore generation, signing configuration, and build generation.

Step 12: Building the Android App Bundle for Publishing

To publish your app on the Google Play Store, you need to generate a signed Android App Bundle (AAB) or APK. Follow these steps.

1Verify google-services.json

Ensure that the Firebase configuration file is present:

2Generate a Keystore for Signing

Run the following command to generate a signing key:

keytool -genkeypair -v -keystore release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias your_key_alias

Follow the prompts to enter the keystore password, alias name, and other details.

Keystore Generation
3Move the Keystore File

Move the generated release-key.jks file into the android/app/ directory.

4Create keystore.properties File

Create a file named keystore.properties inside the android/ directory with the following content:

storeFile=release-key.jks storePassword=your_store_password keyAlias=your_key_alias keyPassword=your_key_password
Keystore Properties File
5Update build.gradle for Signing

Modify the android/app/build.gradle file by adding the signing configuration:

android { ... signingConfigs { release { keyAlias keystoreProperties['keyAlias'] keyPassword keystoreProperties['keyPassword'] storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null storePassword keystoreProperties['storePassword'] } } buildTypes { release { signingConfig signingConfigs.release minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } }
6Build the Release APK or AAB

Run the following command to generate the build:

For APK:

flutter build apk --release

For App Bundle (recommended for Play Store):

flutter build appbundle
7Locate the Generated Files

Once built, the output files will be in:

These files are ready for upload to the Google Play Store.

🎉 Build Complete!

Your Android app is now ready for publishing. The generated AAB file is the recommended format for the Google Play Store as it provides better optimization and smaller download sizes for users.

🎨 Customizing App Icons & Branding

Before publishing your app, customize the app icons and logos with your school's branding:

Android App Icons

Replace the following files with your school logo in the specified sizes:

Folder: android/app/src/main/res/

Web Icons & PWA Assets

Replace files in web/icons/ and web/favicon.png:

Static Logos (In-App Branding)

Replace files in assets/images/logo/:

💡 Icon Generation Tools

Use online tools to generate all required sizes:

⚠️ Important: Icon changes require a full app restart (not hot reload). Always test on physical devices after making changes.

📋 Next Steps: Google Play Store Upload

After building your app, follow these steps to publish on the Google Play Store:

⚠️ Important Security Note:

Keep your keystore file and passwords secure. If you lose them, you won't be able to update your app on the Play Store. Consider backing up your keystore in a secure location.