Stock Master Tracker docs
v2.0.0
Get help
● Ship · Stores

Release build
sign, build, publish.

The pre-release checklist, Android signing, build commands for Google Play and the App Store, review notes for a finance app, and the privacy forms.

01Before the first release

  • Backend deployed and flutterfire configure done (Firebase, Installation)
  • Your own application id, bundle id and App Group (Rebranding)
  • Console over HTTPS; Legal URLs set; market-data keys and SEC contact entered; display licence confirmed only if your plan allows it; Status without blockers (Console, Market data)
  • APNs key uploaded to Firebase; a test alert received on a real iPhone and Android phone (Alerts and push)
  • If you use ads: your own AdMob app ids in AndroidManifest.xml and Info.plist, UMP message published, tool/check_ad_ids.sh --release passes (Ads)
  • If you sell purchases: products created in both stores, verification set up, one sandbox purchase verified (Purchases)
  • Android release signing set up (below)
  • Every build uses --dart-define=API_BASE_URL=… with your API, and never DEMO_MODE or USE_EMULATOR

02Version number

app/pubspec.yaml has version: 2.0.0+200: 2.0.0 is what users see, 200 the build number. Raise the build number for every upload.

03Android signing

The package signs release builds with the debug key so flutter run --release works (app/android/app/build.gradle.kts, buildTypes.release). Google Play refuses debug-signed apps, so create your own upload key. No keystore ships in the package.

  1. Create the keyKeep the file and passwords safe and outside git.
    keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload
  2. Create app/android/key.properties
    storePassword=<password>
    keyPassword=<password>
    keyAlias=upload
    storeFile=<absolute path to upload-keystore.jks>
  3. Use it in build.gradle.ktsFollow Flutter's "Build and release an Android app" guide: load key.properties, add a signingConfigs block and set signingConfig in buildTypes.release to it.
  4. Fingerprints to FirebaseFor Google sign-in add the SHA-1 and SHA-256 of your upload key and of Play's app signing key in Firebase Project settings.

04Build for Google Play

cd app
flutter build appbundle --dart-define=API_BASE_URL=https://<region>-<your-project-id>.cloudfunctions.net/api

Upload app/build/app/outputs/bundle/release/app-release.aab to Play Console, first to Internal testing. Test prices, a company page, an alert push, both widgets and, if enabled, an ad and a test purchase.

05Build for the App Store

  1. SigningOpen app/ios/Runner.xcworkspace, choose your team for Runner and StockMasterWidget (no team ships in the project). Runner declares Push Notifications, Sign in with Apple, the App Group and the Remote notifications background mode; enable the matching capabilities for your App ID, and In-App Purchase if you sell purchases.
  2. Build
    cd app
    flutter build ipa --dart-define=API_BASE_URL=https://<region>-<your-project-id>.cloudfunctions.net/api
  3. UploadWith Apple's Transporter or Xcode Organizer, then test through TestFlight (set the console's App Store environment to Sandbox while you test purchases).

06Store review notes for a finance app

Describe the app honestly:

  • A tracker only. Market information, a manual portfolio, alerts, news, filings. No orders, no brokerage, no custody.
  • No investment advice. Summaries describe data and are labelled "AI-generated" or "Automatic summary" with a disclaimer; analyst ratings are counts.
  • Data source. Say that prices come from a licensed market-data plan and filings from SEC EDGAR.
  • No sign-in needed. Reviewers can use everything right away; an anonymous account is created in the background.
  • Paid content and links, if enabled: sponsored items are labelled "Sponsored", broker links "Affiliate link" with a disclosure.

Example review note:

Stock tracker. Read-only: quotes, charts, SEC filings, a manual portfolio, alerts and news.
No trading, no brokerage, no investment advice. Summaries are labelled AI-generated or
Automatic summary. No account is needed; the app signs in anonymously.

07Privacy forms

  • Google Play Data safety and Apple App Privacy must match what you enabled: an anonymous account id, optional e-mail (sign-in), push tokens, purchase records, and, with ads on, the advertising id and ad-network data.
  • Account deletion: the app has in-app deletion; give the Play Console the deletion URL or describe the in-app path.
  • Apple privacy manifest: the Runner target in this package does not include its own PrivacyInfo.xcprivacy; the SDKs you build with bring theirs. Check Apple's current rules for required-reason APIs and add a manifest for your app's own use if your review requires it.
  • Export compliance: the app uses standard HTTPS only; answer the questions in App Store Connect for your own situation.

08Optional: host the example build

cd app
flutter build web -t lib/main_showcase.dart -o build/showcase

Upload build/showcase to any static host. It shows fictional companies labelled "Example data". Do not build the web app against your live API for public use unless your data licence covers web display.