Skip to content

refactor: Rename package from monext_payment to monext_flutter_sdk - #37

Merged
taorepoara merged 4 commits into
mainfrom
claude/flutter-ios-spm-error-jb5b9q
Aug 6, 2026
Merged

refactor: Rename package from monext_payment to monext_flutter_sdk#37
taorepoara merged 4 commits into
mainfrom
claude/flutter-ios-spm-error-jb5b9q

Conversation

@taorepoara

Copy link
Copy Markdown
Member

Summary

This PR renames the Flutter plugin package from monext_payment to monext_flutter_sdk across all source files, configuration files, and documentation. This aligns the package name with the repository name and simplifies the Swift Package Manager integration by eliminating the need for custom checkout paths.

Key Changes

  • Package Naming: Renamed all references from monext_payment to monext_flutter_sdk in:

    • pubspec.yaml (main plugin and example app)
    • iOS podspec and Swift Package Manager configuration
    • Dart import statements and test files
    • Android package namespaces and manifest files
    • Documentation and README files
  • CI/CD Simplification: Removed the custom checkout path (path: monext_payment) from the macOS CI workflow since the repository name now matches the package name, eliminating the Swift Package Manager identity mismatch issue

  • Example App Updates:

    • Renamed example app from monext_payment_example to monext_example
    • Updated Android namespace and application ID
    • Updated iOS bundle name and display name
    • Updated all import statements and references
  • File Reorganization: Reorganized iOS source files from monext_payment/Sources/monext_payment/ to monext_flutter_sdk/Sources/monext_flutter_sdk/ directory structure

  • Documentation: Updated all references in guides and README files to reflect the new package name

Notable Details

The CI workflow now relies on the default checkout path since the repository name (monext_flutter_sdk) matches the package name, which satisfies Swift Package Manager's identity requirements without needing a custom path configuration.

https://claude.ai/code/session_01EtxvB7XVMNDEoLJdX5PtqU

claude added 2 commits August 6, 2026 07:40
…example

The plugin's pubspec/iOS Package.swift name (monext_payment) didn't match
the repo's checkout directory name, which Flutter's Swift Package Manager
integration uses to compute the plugin's local package identity. This
caused Xcode to fail with "unable to override package... doesn't match
override's identity" when adding SPM integration. Renaming the package to
match the (to be renamed) repo name fixes it at the source instead of
requiring a directory-naming workaround in every consuming app and in CI.

The example app is renamed to monext_example (pubspec name and UI/native
identifiers only, folder stays `example/`) to no longer reference the old
plugin name. Android package (io.lenra.monext_payment) is left unchanged
since it isn't affected by this issue.
The GitHub repo is still named monext-flutter, so the default checkout
path doesn't match the plugin's new pubspec/Package.swift name
(monext_flutter_sdk), which reintroduces the SPM identity mismatch this
rename was meant to fix. Force the checkout directory name until the repo
itself is renamed to match.
@taorepoara taorepoara changed the title Rename package from monext_payment to monext_flutter_sdk refactor: Rename package from monext_payment to monext_flutter_sdk Aug 6, 2026
claude added 2 commits August 6, 2026 08:00
Files already live under the monext_flutter_sdk package and export
payment-domain symbols (MonextPaymentResult, MonextPaymentNotInitialized-
Exception, etc.), so the "_payment_" segment in their own file names was
redundant. Only file names change; the shared MethodChannel name
("monext_payment", used by the Android/iOS native sides too) is untouched.
@taorepoara
taorepoara merged commit 93e0350 into main Aug 6, 2026
5 checks passed
@taorepoara
taorepoara deleted the claude/flutter-ios-spm-error-jb5b9q branch August 6, 2026 08:22
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.

2 participants