Logo Release And Store Shipping

Release And Store Shipping

Cộng đồng
zakariaf
release-and-store-shipping

Đảm bảo quy trình từ lần chạy CI thành công đến bản dựng phát hành — dùng `version: x.y.z+N` trong pubspec làm nguồn duy nhất cho versionName/versionCode (tăng đơn điệu, không bao giờ dùng lại), xác minh artifact phát hành trên thiết bị thật, không để khóa ký và khóa API của cửa hàng ứng dụng lọt vào repo, dùng `--obfuscate --split-debug-info` và lưu trữ symbol theo từng bản dựng; nếu không, báo cáo sự cố của bản phát hành đó sẽ vĩnh viễn không thể đọc được. Kiểm tra quyền từ manifest MERGED và xác nhận toàn bộ quyền, đảm bảo có thể chứng minh các nội dung khai báo trên cửa hàng (Data Safety, nhãn dinh dưỡng, privacy manifest) bằng repo và đọc lại chúng thay vì chỉ tin tưởng, đặt ngân sách cho kích thước và thời gian khởi động nguội, đồng thời chuẩn bị kế hoạch dừng cho đợt phát hành theo giai đoạn. Dùng khi chuẩn bị hoặc gắn thẻ bản phát hành, chỉnh sửa `android/app/build.gradle(.kts)`, `key.properties`, `AndroidManifest.xml`, `Info.plist` hoặc `PrivacyInfo.xcprivacy`, tăng phiên bản, tải bản dựng lên Play hoặc TestFlight, viết nội dung trang cửa hàng hoặc quyền riêng tư, giải mã symbol của sự cố, điều tra kích thước, hoặc tìm nguyên nhân từ chối tải lên hay chặn gửi duyệt.

Add to TypingMind

Tổng quan

Nhà phát hànhzakariaf
Kho mãFlutter-Skills
Tên kỹ năngrelease-and-store-shipping
Sao
64
Bản fork
15
Tệp đi kèm
6
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 6 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được zakariaf công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Release And Store Shipping trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/zakariaf/Flutter-Skills/tree/main/skills/release-and-store-shipping
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zakariaf/Flutter-Skills.git /tmp/Flutter-Skills
mkdir -p .claude/skills
cp -r /tmp/Flutter-Skills/skills/release-and-store-shipping .claude/skills/release-and-store-shipping
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Release And Store Shipping trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Release And Store Shipping ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Release And Store Shipping với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Release and store shipping

CI proves the code; a release proves the artifact. Everything here is about the exact bundle a stranger installs — built with R8, obfuscation, tree-shaking, and release-mode asserts stripped, signed by a key you must never lose, declaring things about itself to a store that will pull the app if they are untrue. This skill starts where ci-pipeline-and-gates ends and where design-review-workflow signs off.

Building, signing, uploading, and tagging are side-effecting and irreversible in part (a published build number can never be reused; an iOS build can never be unshipped). Never run them because a task seemed to imply a release — run them only when the developer asks for a release by name. Reading and enforcing the config rules below is always in scope.

Run scripts/check-release-hygiene.sh before any release build (and in CI): it is the static half of this skill — tracked credentials, a malformed build number, debug signing, and debug affordances, none of which need a build to catch. Run scripts/check-ipa-slices.sh on the built IPA before spending an upload. Platform depth lives in references/android-play.md, references/ios-app-store.md, references/app-store-connect-submission.md, and references/privacy-permissions-and-claims.md.

Non-negotiable rules

  1. pubspec.yaml's version: x.y.z+N is the only version source. x.y.z → versionName / CFBundleShortVersionString, N → versionCode / CFBundleVersion. Override per build only with --build-name / --build-number; never hardcode a version in build.gradle or Info.plist. WHY: two sources silently diverge and the crash report then names a version that never shipped.
  2. The build number only ever goes up, and a published one is burned forever. Play rejects a reused or lower versionCode; App Store Connect rejects a reused CFBundleVersion for the same short version. A failed upload still burns the number — bump, don't retry.
  3. No signing material in the repository, ever. Keystore/.jks/.p12, the App Store Connect API key (.p8), the Play service-account JSON, and android/key.properties are gitignored and injected from a secret store. WHY: a key in git history is compromised permanently, and rotating an app signing key is a store-side process you do not want to discover during a release.
  4. Enroll in Play App Signing and keep the upload key separate. With Play App Signing, a lost upload key is recoverable via support; a lost app signing key for an unenrolled app means the listing can never be updated again — a dead app.
  5. Obfuscate and split debug info, then archive the symbols with the artifact. --obfuscate --split-debug-info=<dir> is mandatory for every uploaded build, and <dir> must be versioned per build (symbols/<x.y.z>+<N>/) and stored off-machine. WHY: symbol files are the only way to read that release's stack traces; regenerating them later produces different symbols and decodes nothing.
  6. Verify the release artifact itself, on real hardware. Install the exact .aab (via Play internal app sharing / bundletool) or the exact TestFlight build — never a debug or profile build, never "it worked in the emulator." WHY: R8, resource shrinking, and obfuscation only run in release, so reflective plugins, missing ProGuard rules, and stripped asserts fail first in the artifact you ship.
  7. Assert the permission set whole, from the MERGED manifest. Transitive plugins inject permissions you never wrote. Read the merged output (not your source manifest), strip what you do not need with tools:node="remove", and keep a committed expected-permission list that a gate diffs against. On iOS every NS*UsageDescription present must be honest and every one you need must exist — a missing usage string is an App Review rejection, an unused one is a claim you cannot defend. See references/privacy-permissions-and-claims.md.
  8. Every store declaration must be provable in the repo. Play Data Safety, App Store privacy nutrition labels, and PrivacyInfo.xcprivacy (required-reason APIs
    • third-party SDK privacy manifests) describe what the code does. Add a crash reporter, an ads SDK, or an analytics package and the declaration changes in the same PR. WHY: a false declaration is a takedown, not a warning.
  9. No absolute privacy claims. Ban "nothing ever leaves your device" and "completely private" as listing/onboarding copy. State the mechanism instead — what is stored, where, what leaves, and when. WHY: one crash upload, one share-sheet export, or one map tile makes the absolute sentence a lie.
  10. Debug affordances must be unreachable in release. Dev menus, fixture seeding, eraseDatabaseOnSchemaChange, log-everything sinks, and staging endpoints are compiled out or behind a flavor that is not the store flavor — proved by a grep gate, not by memory. WHY: shipped, they wipe or leak real user data.
  11. Size and cold start are measured on the release build and recorded per release. --analyze-size for bytes, --trace-startup in profile for the first frame, on a real low-end target device. A regression past the recorded budget is a release blocker, not a note.
  12. Roll out in stages with a written halt criterion. internal → closed → production at a staged percentage, with the crash-free-sessions threshold that triggers a halt decided before the rollout starts. WHY: Play rollouts can be halted; an App Store release can only be superseded by another build.
  13. One tagged commit ships. Tag the exact commit, attach release notes, and keep the artifact + symbol archive with the tag. The dated design-review sign-off (design-review-workflow) is a precondition, not part of this pass.
  14. Store-side gates are account-holder-only, and store-side state is never assumed. Creating the app record, the privacy questionnaire, and the Paid Applications Agreement have no API and block on a human — raise them on day one. An inactive Paid Applications Agreement makes StoreKit return zero products, which presents as a broken purchase button, not as a missing agreement. Everything that is API-settable (price, territory availability, in-app purchase state, screenshots, metadata) is read back from the store before submission — a green upload log is not server state, and a committed screenshot folder is not an uploaded screenshot set. WHY: every one of these blocks submission with a message that names a symptom rather than the setting.
  15. A first release submits the app version AND its first in-app purchase together. Apple requires the first purchase of each type to ride an app-version submission; ship the version alone and App Review closes the submission without reviewing the app (Guideline 2.1(b)), and the remedy costs a new binary plus a full review cycle. Verify with one request before submitting — GET /v1/reviewSubmissions/{id}/items must return 2 items, not 1. WHY: a configured purchase reports a submittable state that reads, to every tool and every human, exactly like a submitted one. See references/app-store-connect-submission.md.

The ordered release ritual

Run only when a release is explicitly requested. Do not reorder or skip.

  1. Preconditions. Working tree clean; CI green on the release commit; the dated design-review sign-off exists; the changelog/release notes are written.
  2. Bump version: in pubspec.yaml — semantic x.y.z for the user-visible change, +N incremented past the highest number ever uploaded. Commit alone.
  3. Build the artifact with obfuscation and versioned symbols.
    bash
    flutter build appbundle --release \
      --obfuscate --split-debug-info=build/symbols/1.4.0+42
    flutter build ipa --release \
      --obfuscate --split-debug-info=build/symbols/1.4.0+42 \
      --export-options-plist=ios/ExportOptions.plist
  4. Archive build/symbols/1.4.0+42/ off-machine alongside the artifact, before anything is uploaded. This is the step nobody misses twice.
  5. Verify the artifact on real hardware — install the built bundle, walk the primary flow, force-stop and relaunch, and upgrade over the previous released version so the real migration path runs (see run-migration).
  6. Measure the budgets and record them next to the previous release's numbers:
    bash
    flutter build appbundle --release --analyze-size   # bytes, by library/asset
    flutter run --profile --trace-startup              # start_up_info.json
  7. Reconcile the declarations — merged permission set, Data Safety / nutrition labels / PrivacyInfo.xcprivacy, and every privacy sentence in the listing, against what the code now does.
  8. Upload to the internal track / TestFlight and smoke-test from the store, not from a local install — store delivery re-signs and re-compresses the artifact.
  9. Reconcile store-side configuration by reading it back — price and territory availability set, in-app purchases ready and attached to the version, screenshots present for every required display type, metadata complete, and the account-holder-only gates (privacy questionnaire, Paid Applications Agreement) done. Query the store; do not trust the tool that wrote them (references/app-store-connect-submission.md).
  10. Tag the commit, publish the notes, then start the staged rollout and watch the crash-free rate against the halt criterion agreed in step 1.

Version and build number mapping

pubspec.yamlAndroidiOSRules
x.y.zversionNameCFBundleShortVersionStringUser-visible; may repeat across builds of the same release
+NversionCodeCFBundleVersionInteger, strictly increasing, never reused; a failed upload still consumes it

Override for a rebuild with --build-name=1.4.0 --build-number=43; never edit the generated values in Gradle or Info.plist. In a flavored app, the store flavor's applicationId / bundle id is fixed for the lifetime of the listing — changing it creates a new app that existing users never receive.

Symbols and crash symbolization

An obfuscated release produces stack traces of meaningless symbols. They decode only against the symbol files produced by that exact build:

bash
flutter symbolize -i crash.txt -d build/symbols/1.4.0+42/app.android-arm64.symbols

Keep one directory per version+build, uploaded to the same durable store as the artifact, retained at least as long as the release can still be running on a device. A rebuilt binary produces different symbols — "just build it again" recovers nothing.

What a release proves that CI cannot

CI runs debug/JIT code on a clean runner. Only the release pass can prove: R8 and tree-shaking left reflective plugins working; the merged permission set is what you intend; the signed artifact installs and upgrades over the previous release; first frame and size fit the budget on real low-end hardware; store-delivered binaries run. State this honestly rather than claiming a green pipeline means shippable.

Anti-patterns

  • A version hardcoded in build.gradle or Info.plist — diverges from pubspec; crash reports name a build that does not exist.
  • Reusing or lowering a build number after a failed upload — the store rejects it, and worse, an accepted lower number can hide a newer build from updates.
  • Committing a keystore, key.properties, .p8, or a service-account JSON — compromised permanently; scrubbing history does not un-leak it.
  • Building with --obfuscate but not archiving --split-debug-info output — the release's crashes become permanently unreadable the moment the build dir is wiped.
  • Shipping a build verified only in debug/profile — R8, shrinking, and stripped asserts change behavior; reflective plugin failures appear only in release.
  • Auditing your own AndroidManifest.xml instead of the merged one — the permissions users see on the listing come from the merge, not from your file.
  • Declaring "we collect no data" with a crash reporter or ads SDK linked — a false Data Safety / nutrition-label declaration is a takedown risk.
  • A dev menu, seeded fixtures, or eraseDatabaseOnSchemaChange reachable in the store flavor — destroys or exposes real user data.
  • Publishing straight to 100% — with no staged rollout there is no halt, only a hotfix that itself takes a review cycle.
  • Changing applicationId/bundle id to "fix" a signing problem — it creates a new app; every existing user is stranded on the old one.
  • Uploading an IPA built from a tree that last built for the simulator — Apple rejects it (90087/91169) and thinning the binary cannot fix it; only a clean rebuild can.
  • Trusting the tool that configured the store instead of reading the store back — price, availability, in-app-purchase state and screenshots are all commonly "set" and not actually set.
  • Treating a committed screenshot folder as an uploaded screenshot set — submission is blocked per display type, and the message names a device class, not a file.
  • Submitting a first app version without its first in-app purchase — App Review closes the submission without reviewing the app, and the fix needs a whole new binary.
  • Reading a purchase's "ready to submit" state as "submitted" — it means configured and untouched by anyone.

Definition of done

  • version: x.y.z+N bumped in pubspec.yaml only; N higher than every number ever uploaded; no version hardcoded in platform files.
  • Artifact built --release with --obfuscate --split-debug-info=<per-build dir>; symbols archived off-machine with the artifact before upload.
  • No keystore, key.properties, .p8, or service-account JSON tracked by git; Play App Signing enrolled; upload key held separately.
  • The exact release artifact was installed on real hardware, upgraded over the previous released version, force-stopped and relaunched.
  • Merged permission set diffed against the committed expected list; every iOS NS*UsageDescription present and honest.
  • Data Safety / nutrition labels / PrivacyInfo.xcprivacy reconciled with the current dependency set; no absolute privacy claim in listing or onboarding copy.
  • Debug affordances proved unreachable in the store flavor by a gate.
  • Size (--analyze-size) and cold start (--trace-startup) recorded against the previous release's numbers; no unexplained regression.
  • Dated design-review sign-off present; commit tagged; notes published.
  • Rollout staged with a written halt criterion and someone watching it.
  • scripts/check-release-hygiene.sh passes on the release commit, and scripts/check-ipa-slices.sh passes on the IPA before it is uploaded.
  • Store-side state read back before submission: price and territory availability, in-app purchases ready and attached to the version, screenshots present for every required display type, metadata complete, account-holder-only gates done.
  • On a first release, the submission carries both the app version and the first in-app purchase (reviewSubmissions/{id}/items returns 2), each purchase having its review screenshot, tax category, availability and one localization per app locale.

When multi-flavor

Build each flavor with its own --flavor and entry point, and keep one symbol directory per flavor and build (symbols/<flavor>/<x.y.z>+<N>/). Store flavors and their applicationIds are fixed for the life of the listing; non-store flavors (dev, QA) must never be uploadable — enforce it in the release script, not in a person's memory. See service-boundary-and-native for the flavor composition roots.

Related skills

  • ci-pipeline-and-gates — the gates that must be green before this pass starts, and the honest statement of what CI cannot prove.
  • design-review-workflow — the dated sign-off that is a precondition for step 1.
  • run-migration — the upgrade-over-previous-release path step 5 exercises.
  • dependency-hygiene — where a new dependency is audited before it changes a store declaration here.
  • service-boundary-and-native — flavors, native seams, and the plugins whose manifests get merged.
  • flutter-performance — the profile-mode measurement discipline behind the budgets.
  • ads-and-iap-monetization — the entitlement, restore-before-init and preload-or-hide rules that decide what an App Review reviewer actually sees, and the ad identifiers the release gate checks.

References

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Release And Store Shipping làm được gì?

Đảm bảo quy trình từ lần chạy CI thành công đến bản dựng phát hành — dùng `version: x.y.z+N` trong pubspec làm nguồn duy nhất cho versionName/versionCode (tăng đơn điệu, không bao giờ dùng lại), xác minh artifact phát hành trên thiết bị thật, không để khóa ký và khóa API của cửa hàng ứng dụng lọt vào repo, dùng `--obfuscate --split-debug-info` và lưu trữ symbol theo từng bản dựng; nếu không, báo cáo sự cố của bản phát hành đó sẽ vĩnh viễn không thể đọc được. Kiểm tra quyền từ manifest MERGED và xác nhận toàn bộ quyền, đảm bảo có thể chứng minh các nội dung khai báo trên cửa hàng (Data Safet...

Vì sao nên dùng Release And Store Shipping trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Release And Store Shipping là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Release And Store Shipping trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/zakariaf/Flutter-Skills/tree/main/skills/release-and-store-shipping. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Release And Store Shipping?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Release And Store Shipping với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Release And Store Shipping với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Release And Store Shipping có miễn phí không?

Có. Kỹ năng này được zakariaf phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇