Skip to content

feat: macOS 対応 - #48

Merged
LibraryLibrarian merged 13 commits into
developfrom
feature/macos-support
Oct 1, 2026
Merged

LibraryLibrarian merged 13 commits into
developfrom
feature/macos-support

Conversation

@LibraryLibrarian

Copy link
Copy Markdown
Owner

概要

macOS 12.0 以降を対応プラットフォームに追加。認証処理(flutter_web_auth_2 / flutter_secure_storage の呼び出し)は変更なし。macOS では flutter_web_auth_2 が ASWebAuthenticationSession を使うため、カスタムスキームのコールバックは Info.plist への登録なしで受け取れる。

変更内容

  • pubspec.yaml の platforms: に macos を追加、description を更新。CHANGELOG.md の [Unreleased] に ### Added を追記
  • example に macOS ランナーを追加
    • entitlement に com.apple.security.network.client と keychain-access-groups を追加
    • keychain-access-groups はチーム署名が必要なため Runner に Team を設定。macOS の Bundle ID を com.librarylibrarian.misskeyAuthExample に変更(iOS は変更なし)
  • SecureTokenStore の保存先は flutter_secure_storage の既定(Data Protection キーチェーン)のまま。entitlement を使わない代替として MacOsOptions(usesDataProtectionKeychain: false) を docs に記載
  • example の integration test を、macOS では example とは別の保存領域(accountName)で実行するよう変更
  • example のコールバックスキームのエラー文言(6言語)を、Android / iOS の確認先として明示
  • .pubignore に /example/macos/ を追加
  • CI に example-macos ジョブ(署名なしビルド)を追加し、gate.needs に追加
  • docs(6言語)と README(6言語)に macOS の設定手順・対応 OS を追記

確認

  • dart format --output=none --set-exit-if-changed . / dart analyze --fatal-infos
  • flutter test(ルート 99件、example 9件)
  • flutter build macos --debug(署名あり / FLUTTER_XCODE_CODE_SIGNING_ALLOWED=NO)、flutter build macos --release(署名あり)
  • codesign -d --entitlements - で Debug / Release の entitlement を確認
  • flutter test integration_test/secure_token_store_test.dart -d macos
  • flutter pub publish --dry-run(警告 0 件、example/macos/ は含まれない)
  • docs のビルド(6言語)

LibraryLibrarian and others added 13 commits September 26, 2026 19:50
flutter create --platforms=macos で生成したファイルのみ。

Co-Authored-By: Claude <noreply@anthropic.com>
外部通信用の network.client と、flutter_secure_storage の既定キーチェーン用の
keychain-access-groups を追加。keychain-access-groups はチームでの開発署名を
要するため Runner に Team を設定し、Bundle ID を登録可能な
com.librarylibrarian.misskeyAuthExample に変更。

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
macOS では URL スキームの登録が不要なため、登録先の確認を促す対象を限定。

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@LibraryLibrarian
LibraryLibrarian merged commit c9b1671 into develop Oct 1, 2026
11 checks passed
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