Release builds
signing and uploading.
The commands that build a release, and how to sign it with your own keys. As shipped, the release build is debug-signed so that it runs; stores will refuse it.
01Version number
In app/pubspec.yaml the line version: 1.0.0+1 is name + build number. Raise the build number for every upload.
02Android
Run the shell commands on this page in WSL 2 (Ubuntu), not in PowerShell: install Node.js inside WSL for the server commands. Flutter can also run natively on Windows for Android builds; iOS builds need a Mac. macOS and Linux users can ignore this note.
- Create an upload key (keep it and its passwords safe, forever):
keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload - Create
app/android/key.propertieswithstorePassword,keyPassword,keyAlias,storeFile, and editapp/android/app/build.gradle.ktsso thereleasebuild type uses a signing config built from it. It currently sayssigningConfig = signingConfigs.getByName("debug"). - Build an App Bundle for Play:
or an APK:cd app flutter build appbundle --release \ --dart-define=API_BASE_URL=https://your-server.exampleflutter build apk --release --dart-define=API_BASE_URL=.... The author's debug-signed release APK was 69.5 MB. The result is inbuild/app/outputs/. - Upload the .aab in Play Console, fill in the data safety form (Privacy), and release to a test track first.
Do not commit key.properties or the keystore.
03iOS
- Set your team and bundle id in Xcode (Rename).
- Multicast entitlement. Finding TVs by multicast (SSDP and mDNS) needs Apple's Multicast Networking entitlement,
com.apple.developer.networking.multicast. You request it from Apple for your own app id (search Apple's developer site for "multicast networking entitlement"), then add it to the Runner entitlements in Xcode, Signing & Capabilities. No entitlements file ships with the project. Without it the app still works when the person types the TV's address; approval time is up to Apple. - Already in the project:
NSLocalNetworkUsageDescription, the Bonjour services,NSCameraUsageDescription(QR scan only) andPrivacyInfo.xcprivacy. - Build:
or opencd app flutter build ipa --release --dart-define=API_BASE_URL=https://your-server.exampleios/Runner.xcworkspace, choose Any iOS Device, Product, Archive. - Upload with Xcode Organizer (Distribute App, App Store Connect) or Transporter.
- In App Store Connect add the in-app purchases to the version, screenshots, and the privacy details.
The author's checks were flutter build ios --no-codesign (it works) and flutter build apk --release (debug-signed). Signed store builds are yours to run.
04Listing wording
Describe the app as remote TV help for family with the parent's consent. State that the parent's app must be open, that the connection is protected by TLS, and which TV brands are supported (TV support). Use screenshots from your own build with your own sample data.