App Rebranding
Deployment Protocol
Complete step-by-step checklist for white-labeling and configuring the news application for new clients.
📊 Pre-Migration Check-list
In Progress
| Parameter | Old (Source) Value | New (Client) Value | File Reference |
|---|---|---|---|
| App ID | com.old.newsapp | com.client.name | build.gradle.kts |
| App Label | Source News | Client Daily | AndroidManifest.xml |
| Blogger ID | 84920411... | Required | .env |
| Firebase JSON | project-old-123 | project-client-abc | google-services.json |
🆔 01. Package Identity & Namespace
Updating Application ID
android/app/build.gradle.kts
- Locate
applicationIdunderdefaultConfigand change it. - Locate
namespaceat the top of the file and match it with applicationId. - Ensure the directory structure in
src/main/kotlin/matches the new package name.
# Automation Command (If plugin exists)
flutter pub run change_app_package_name:main com.newclient.appname
🎨 02. Visual Assets & Branding
App Name & Launcher Icons
android/app/src/main/AndroidManifest.xml
- Change
android:label="App Name"to client's preferred name. - Replace
assets/images/logo.pngwith the new 1024x1024 transparent PNG. - Run the launcher icon generator command:
flutter pub get
flutter pub run flutter_launcher_icons
Splash Screen & Theme
lib/core/theme/app_colors.dart
- Update Primary, Secondary, and Accent hex codes.
- Check
splash_screen.dartfor hardcoded colors or logos.
🌐 03. API, Blogger & Firebase Integration
Environment Configuration
.env
- BLOG_ID: Obtain this from Blogger Dashboard > Settings.
- API_KEY: Generate a new API Key from Google Cloud Console (Blogger API v3).
Firebase Setup
- Create a new project on Firebase Console.
- Register the Android App using the Step 01 Package Name.
- Download
google-services.jsonand place it inandroid/app/.
Purani
google-services.json ko delete karna na bhoolein, warna build conflict ho sakta hai.💰 04. AdMob Monetization
Ad Unit Configuration
.env
- Update
ADMOB_APP_IDinAndroidManifest.xmland.env. - Replace all Unit IDs (Banner, Interstitial, Rewarded).
# AndroidManifest.xml Meta-Data
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/>
App-Ads.txt
Ensure the client hosts the app-ads.txt on their website's root domain.
🔑 05. Security & Signing Keys
Generate New Keystore
Har client ke liye ek fresh JKS file hona mandatory hai.
keytool -genkey -v -keystore client_key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
Key Properties Mapping
android/key.properties
storePassword=password123
keyPassword=password123
keyAlias=key
storeFile=client_key.jks
🚀 06. Deployment & Build Check
Version Bump
Update versionCode (e.g., 1) and versionName (e.g., 1.0.0) in build.gradle.
Clean Build Sequence
flutter clean
flutter pub get
flutter build appbundle --release
Build complete hone ke baad
build/app/outputs/bundle/release/ folder check karein.