change-app-id

change-app-id is a cursor rule for Cursor from abhinav503/flutter-agentic. It costs 26 tokens per session (608 once invoked), scanned A, original, MIT.

A set of rules for changing an Android or iOS application ID, also called a bundle identifier or package name.

In plain words
What is it for?
It helps update Android namespaces and package paths or iOS identifiers, handle apps inside a monorepo, and verify that old references are gone.
Why use it?
It reduces the chance of leaving the old identifier in build settings, source packages, folders, or other project files.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It helps update Android namespaces and package paths or iOS identifiers, handle apps inside a monorepo, and verify that old references are gone.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/abhinav503/flutter-agentic/change-app-id
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/abhinav503/flutter-agentic

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for change-app-id

README.md
[![agentmods](https://agentmods.dev/badge/rules/abhinav503/flutter-agentic/change-app-id/github.svg)](https://agentmods.dev/rules/abhinav503/flutter-agentic/change-app-id)
Your own site
<a href="https://agentmods.dev/rules/abhinav503/flutter-agentic/change-app-id"><img src="https://agentmods.dev/badge/rules/abhinav503/flutter-agentic/change-app-id/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for change-app-id

Your own site · 80×15
<a href="https://agentmods.dev/rules/abhinav503/flutter-agentic/change-app-id"><img src="https://agentmods.dev/badge/rules/abhinav503/flutter-agentic/change-app-id.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 608 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00608
Opus 5.5 $0.00010 $0.00243
Sonnet 5.5 $0.00005 $0.00122
Haiku 4.5 $0.00003 $0.00061

Measured 3mo ago against content hash 40b28aaea457, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

change-app-id scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/change-app-id.mdc · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

If the new application ID was not provided, ask: "What is the new application ID? Use reverse-domain notation, e.g. com.company.appname"

Monorepo note: application IDs are per app. All paths below are relative to the target app folder apps/{app}/ (e.g. apps/doc_scanner/android/app/build.gradle.kts). Run verification commands from inside that app folder.

Derive the old application ID from the applicationId field in apps/{app}/android/app/build.gradle.kts.


Android

1. android/app/build.gradle.kts

Update both occurrences:

namespace = "{NEW_ID}"
applicationId = "{NEW_ID}"

2. MainActivity.kt — package declaration and directory

The file lives at android/app/src/main/kotlin/{OLD_ID_AS_PATH}/MainActivity.kt ({OLD_ID_AS_PATH} = old ID with . replaced by /).

Steps:

  1. Create android/app/src/main/kotlin/{NEW_ID_AS_PATH}/
  2. Write MainActivity.kt with package {NEW_ID} as the first line.
  3. Delete the old directory tree.

3. Verify no remaining references

grep -r "{OLD_ID}" android/ --include="*.kt" --include="*.java" --include="*.xml" --include="*.gradle" --include="*.kts"

Any hits must also be updated.


iOS

Update every PRODUCT_BUNDLE_IDENTIFIER line in ios/Runner.xcodeproj/project.pbxproj:

Target Value
Runner (3 entries: Debug, Release, Profile) {NEW_ID}
RunnerTests (3 entries) {NEW_ID}.RunnerTests

Do a find-and-replace across the whole file — 6 lines total.

Verify:

grep "PRODUCT_BUNDLE_IDENTIFIER" ios/Runner.xcodeproj/project.pbxproj

If the user prefers Xcode

  1. Open ios/Runner.xcworkspace in Xcode.
  2. Select the Runner project → Runner target → General tab.
  3. Update Bundle Identifier to {NEW_ID}.
  4. Repeat for RunnerTests target ({NEW_ID}.RunnerTests).

Note: If Push Notifications, Sign in with Apple, or other capabilities are registered against the old bundle ID in the Apple Developer portal, create a new App ID there and re-download provisioning profiles. Xcode handles this automatically with automatic signing enabled.

Read the full file on GitHub · 80 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 80 lines · 26 tokens per session scan A 40b28aaea457

Subscribe to this mod's changes

change-app-id is a cursor rule published in the GitHub repository abhinav503/flutter-agentic (10 stars, last pushed 3mo ago), licensed MIT. It adds 26 tokens to every session and 608 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

change-app-id compared with cursor rules from other repositories

change-app-id next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
change-app-idabhinav503/flutter-agenticCursor rule103mo agoMITA26Cursor
fluttertsnAnh/flutter-agentic-starterCursor rule84mo agoMITA0Cursor
intentflowemrecanozturk/intentflow-iosCursor rule94mo agoMITA349Cursor
flutter-appBlackLeg15/desafio_bloc_1Cursor rule74mo agononeA0Cursor
gradlesanjeed5/awesome-cursor-rules-mdcCursor rule3.6k7d agoCC0-1.0A1,896Cursor
nativescriptPatrickJS/awesome-cursorrulesCursor rule41k6mo agoCC0-1.0A711Cursor
swiftui-patternsgetsentry/XcodeBuildMCP-iOS-TemplateCursor rule441y agoMITA46Cursor