Repository navigation
NSMotionUsageDescriptionを各iOSターゲットに追加してTestFlight配信のブロックを解消 - #6668
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01En5fqKFDDaQo9kpstNC1QL
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthrough各iOSターゲットに Changesモーションセンサー利用目的の追加
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Note This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. Track spend and usage in your billing settings. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Expo SDK 57 の
expo-locationが iOS のCMMotionActivityManagerを参照するようになり、NSMotionUsageDescription未設定を理由に TestFlight でテストを開始できない状態になっていた。各 iOS ターゲットに purpose string を追加してブロックを解消する。変更の種類
変更内容
ios/TrainLCD/Schemes/Prod/Info.plistとios/TrainLCD/Schemes/Dev/Info.plistにNSMotionUsageDescriptionを追加ios/ProdAppClip/Info.plistとios/CanaryAppClip/Info.plistにも同キーを追加(App Clip は Podfile 上でアプリターゲットのネストターゲットであり、同じ Pod をリンクするため)ios/ja.lproj/InfoPlist.strings/ios/en.lproj/InfoPlist.stringsにローカライズ済みの説明文を追加(既存の位置情報・写真ライブラリの purpose string と同じ運用に合わせた)背景:
[email protected]のios/Providers/MotionActivityStreamer.swift/ios/Requesters/MotionActivityPermissionRequester.swift/ios/LocationModule.swiftがimport CoreMotionとCMMotionActivityManagerを使用している(SDK 57 で追加されたgetMotionActivityAsync/watchMotionActivityAsync用)NSMotionUsageDescriptionを既定値で注入する設計だが、本リポジトリはios/を直接管理しており Info.plist もSchemes/{Prod,Dev}配下の独自パスのため、plugin による注入が届かないリグレッションリスク: 変更は Info.plist へのキー 1 件追加とローカライズ文字列の追加のみで、既存キーの変更・削除は無い。実行時の挙動には影響せず、モーションアクティビティ API を呼んだ場合にのみ本文言が表示される。
テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること作業環境が Node 22 / npm 10 で
engines: npm>=11と不整合になりnpm ciが失敗するため、npm test/npm run typecheckはローカル実行できていない。npm run lint相当のbiome check ./src(631 ファイル)のみ単体実行し指摘なし。差分は iOS の Info.plist / InfoPlist.strings のみで JS/TS を含まないため、残り 2 つは CI での確認をお願いしたい。あわせて 4 つの plist がplistlibでパースできることを確認済み。関連Issue
スクリーンショット(任意)
Generated by Claude Code
Summary by CodeRabbit