Repository navigation
feat(device-utils): add StoreKit 2 installer lookup and installation time APIs - #332
Conversation
There was a problem hiding this comment.
Devin Review found 1 potential issue.
3 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
|
@codex review |
|
@codex security review |
|
Cursor review failed. Remote error: |
|
Skipping Bugbot: Bugbot is disabled for this repository. Visit the Bugbot dashboard to update your settings. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
getInstallerPackageNameAsync(): Promise<InstallerPackageName>to@onekeyfe/react-native-device-utils:AppTransaction.sharedwithout requesting a refresh instead of the deprecatedBundle.main.appStoreReceiptURL, prioritizing simulator (unknown) andembedded.mobileprovision(other), and mapping.production->appStore,.sandbox->testFlight,.xcode->other, unverified/error ->unknown. The signed transaction may require connectivity or an authenticated App Store account, so a genuine store install can temporarily returnunknown.PackageManager.getInstallSourceInfo/getInstallerPackageName.getInstallerPackageName()for backwards compatibility and mark it@deprecatedfor iOS callers.getInstallationTime(): Promise<number>(Unix epoch milliseconds):DocumentsdirectoryFileAttributeKey.creationDateoff the main thread.PackageInfo.firstInstallTime(API 33+PackageInfoFlags.of(0)compatible) viaPromise.async.StoreKitand ship the DeviceUtilsPrivacyInfo.xcprivacyresource bundle with file timestamp reasonC617.1and UserDefaults reasonCA92.1in the iOS pod.native-modules/react-native-device-utils/docs/SPEC.mdandREADME.md.Verification
yarn workspace @onekeyfe/react-native-device-utils prepare(nitrogen + bob build)yarn workspace @onekeyfe/react-native-device-utils typecheck./gradlew :onekeyfe_react-native-device-utils:assembleDebugxcodebuild test -workspace example.xcworkspace -scheme ReactNativeDeviceUtils-Unit-Tests(8 new XCTest cases inInstallInfoTests.swift+ existingAppleAdsAttributionTests.swift)PackageManagerfor installer valuesunknownandotherandfirstInstallTimeat package-dump precision. On API 34, verified the owner and a secondary user with distinct install times.AppTransaction.shared(production/sandbox) still requires an App Store or TestFlight device build.