Skip to content

Normalize substrate naming: drop NATI-/NATEMPLATE_API_ abbreviations#60

Merged
dadachi merged 1 commit intosubstrate-v2from
substrate-v2--naming-normalization
May 1, 2026
Merged

Normalize substrate naming: drop NATI-/NATEMPLATE_API_ abbreviations#60
dadachi merged 1 commit intosubstrate-v2from
substrate-v2--naming-normalization

Conversation

@dadachi
Copy link
Copy Markdown
Contributor

@dadachi dadachi commented May 1, 2026

Summary

Eliminate the two abbreviations the upstream agent's Layer 1 renamer can't reach so NativeAppTemplate -> <slug> covers every product-name occurrence. Mirrors upstream PR nativeapptemplate/NativeAppTemplate-iOS#71.

  • Env vars: NATEMPLATE_API_{SCHEME,DOMAIN,PORT} -> NATIVEAPPTEMPLATE_API_* in Constants.swift, README.md, and the local .xcscheme (gitignored, updated locally)
  • Error codes: NATI-XXXX -> NATIVEAPPTEMPLATE-XXXX across all production and test Swift files, plus CHANGELOG.md
  • CLAUDE.md: error-code section reframed as a shared iOS+Android prefix; dropped the stale NFCError.swift / NATIVEAPPTEMPLATE-3xxx row (file is not present in this fork)

After this lands, rg -n "NATEMPLATE_API|NATI-" outside docs-private/ matches nothing.

Test plan

  • make lint (0 violations, SwiftFormat clean)
  • xcodebuild build (Debug, iPhone 17 Pro / iOS 26.2) succeeds
  • xcodebuild test for AppErrorTest, CodedErrorTest, NativeAppTemplateAPIErrorTest, MessageBusTest, and the four touched ViewModel tests — all pass
  • Smoke-test against a local API server: re-export the env vars under their new names (NATIVEAPPTEMPLATE_API_DOMAIN, etc.) in the Xcode scheme — the old NATEMPLATE_API_* names will no longer be picked up

🤖 Generated with Claude Code

- Env vars: NATEMPLATE_API_{SCHEME,DOMAIN,PORT} -> NATIVEAPPTEMPLATE_API_*
  in Constants.swift and README.md
- Error codes: NATI-XXXX -> NATIVEAPPTEMPLATE-XXXX across production and
  test Swift files, plus CHANGELOG.md
- CLAUDE.md: error-code section reframed as a shared iOS+Android prefix;
  dropped the stale NFCError.swift / NATIVEAPPTEMPLATE-3xxx row (file no
  longer present in this fork)

Mirrors upstream PR nativeapptemplate/NativeAppTemplate-iOS#71.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dadachi dadachi merged commit c4c5af0 into substrate-v2 May 1, 2026
2 checks passed
@dadachi dadachi deleted the substrate-v2--naming-normalization branch May 1, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant