Repository navigation
Platform templates (Flutter 3.50.1), flavors, platform fixes and setup.sh - #125
Open
amaury901130 wants to merge 8 commits into
Open
amaury901130 wants to merge 8 commits into
amaury901130 wants to merge 8 commits into
Conversation
Compared with a clean 3.50.1 project: the Gradle scripts move to the Kotlin DSL (settings, root and app build.gradle.kts), keeping the identity from build.properties, the key.properties release signing and the .debug suffix. The manifest gains taskAffinity="" and the PROCESS_TEXT query; gradle.properties, .gitignore and MainActivity match the template. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Compared with a clean 3.50.1 project: add the template's SceneDelegate (a FlutterSceneDelegate subclass) and the new project-level settings (asset symbol extensions, string catalog symbols, script sandboxing off) in every build configuration. The Dev and QA schemes are rebuilt from the Runner scheme; their Profile action now uses the Profile dev/qa configurations. The empty RunnerTests target and the generated DEVELOPMENT_TEAM are intentionally not copied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The debug banner drew its controls under the status bar. Its background still extends behind the status bar, the controls sit in a SafeArea, and the page below no longer receives the top inset (it would add the status-bar padding a second time). Widget tests cover both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Android product flavors dev, qa and prod, and an iOS Prod scheme, so --flavor works the same on both platforms. Each variant's ID and name match the iOS configurations (<id>[.debug][.dev|.qa]). The app pubspec sets default-flavor: dev; CI passes --flavor dev. - Android declares the photo and notification permissions that PermissionManager requests (they always failed on Android 13+) and marks the camera as optional for Google Play. - Release app bundles require key.properties outside CI; release builds use R8. The unused dart-defines block is removed. - iOS: clearer, translated permission texts (InfoPlist.strings en/es), CFBundleLocalizations, debug names without the version, no UIViewControllerBasedStatusBarAppearance, and the flavor xcconfig files are no longer copied into the app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README (run, release, IDE and CI instructions, latest-upgrade notes and what changes for existing checkouts), CLAUDE.md commands, overview, project initialization (ID and name table per flavor) and the customization checklist (signing, permissions). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The initializer accepts an issue tracker URL (Jira, Linear, GitHub Projects), validates it, links it from the pull request template's Issue section and records it in flutter_base.json. The interactive flow asks for it after the required values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Installs FVM, the Flutter version pinned in .fvmrc and Melos, runs the initializer with the app name, bundle ID and optional board, then melos bootstrap and melos run verify. In an initialized project it only sets up the toolchain, for teammates cloning the repository. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Refreshes the Android and iOS projects against a clean Flutter 3.50.1 project (still the latest stable), adds
dev/qa/prodflavors on both platforms, and fixes the issues a review of the native configuration found. One commit per step:Android template (
87a2a61): Gradle scripts move to the Kotlin DSL (*.gradle.kts), keeping identity frombuild.properties,key.propertiessigning and the.debugsuffix. The manifest gainstaskAffinity=""and thePROCESS_TEXTquery.iOS template (
28d5d92): the template'sSceneDelegate.swift, its new project settings in all 9 configurations, and Dev/QA schemes rebuilt from Runner (their Profile action now usesProfile dev/qa). The emptyRunnerTeststarget and the generatedDEVELOPMENT_TEAMare intentionally not copied.web/already matched the template.DEV banner fix (
b773c84): its controls sit inside the safe area instead of under the status bar; the page below doesn't get the top inset twice. Widget tests (they fail on the old banner).Flavors and platform fixes (
11d2236):Flavors: Android
productFlavorsdev/qa/prodand a new iOSProdscheme, so--flavorworks the same on both platforms. IDs and names match the iOS configurations, anddefault-flavor: devis set in the app pubspec:<id>.debug.dev, " Dev"<id>.dev<id>.debug.qa, " QA"<id>.qa<id>.debug, " Debug"<id>, ""Android permissions: declares the photo and notification permissions
PermissionManagerrequests (they always failed on Android 13+), and marks the camera as optional for Google Play.Android release: an app bundle now needs
key.propertiesoutside CI (CI=truebypasses the check). Release builds use R8. The unused dart-defines block is removed.iOS:
InfoPlist.strings), plusCFBundleLocalizations.UIViewControllerBasedStatusBarAppearancekey is removed.dev.xcconfigandqa.xcconfigare no longer copied into the app bundle.CI: the Android build passes
--flavor dev.Docs (
225ca6e): README (run, release, IDE, CI, latest-upgrade notes, what changes for you), CLAUDE.md, overview, project initialization (ID/name table per flavor), customization checklist.Initializer
--board(a4ad029): optional project board (issue tracker) URL. It is validated, linked from the PR template's "Issue" section, and recorded influtter_base.json. The interactive init asks for it; Enter skips it. Tests included.setup.sh(40b10c7): one-command setup. It installs FVM, the pinned Flutter and Melos, runs init, thenmelos bootstrapandmelos run verify. In an initialized project, running it with no options only sets up the toolchain, for teammates.--dry-runand--skip-verifyare available. It keeps the committed.vscode/settings.json, whichfvm userewrites../setup.sh --name "My App" --bundle-id com.company.myapp --board https://company.atlassian.net/jira/boards/1Docs (
ed4b27c): README "Start a new project" now starts withsetup.sh, with the manual steps kept as a fallback. Also updated: project-initialization.md (the--boardrow, what init changes) and CLAUDE.md.firebase_coreis kept on purpose, for production projects.What changes for developers
--flavor prod. Without it, the defaultdevflavor is built.flutter runinstalls<id>.debug.devon both platforms. An app installed earlier as<id>.debugstays on the device as a separate app.app/android/key.properties.Issue
N/A
Preview
Verified locally:
melos run verifypasses, including the initializer tests.aapt. The app bundle fails withoutCI/key.propertieswith a clear message, and builds withCI=true.es.lprojtexts, and that no xcconfig ships in the bundle all checked.setup.sh, on a copy of this branch:flutter_base.jsonare updated.Notes:
setup.shnot verified on Linux, and shellcheck was not run. On Windows, people use the manual steps in the README.PermissionManageryet), and dark mode on iOS after the status-bar key removal.CLAUDE.mdtoAGENTS.md, so whichever PR merges second needs a small conflict resolution. Itsworkspace.mdrule should then mention the Android flavors.🤖 Generated with Claude Code