Skip to content

feat(location): add per-app CoreLocation spoofing compatibility - #265

Open
Rengwang wants to merge 1 commit into
PlayCover:masterfrom
Rengwang:pr/feat-mock-location
Open

Rengwang wants to merge 1 commit into
PlayCover:masterfrom
Rengwang:pr/feat-mock-location

Conversation

@Rengwang

@Rengwang Rengwang commented Nov 27, 2026 •

Copy link
Copy Markdown

Adds per-app CoreLocation spoofing compatibility on Mac Catalyst so apps receive configured GPS coordinates instead of the Mac's real location.

Summary

  • Adds PlayTools/LocationCompatibility.m (pt_installLocationCompatibility) reading mockLocationEnabled, mockLocationLatitude, and mockLocationLongitude from PlaySettings.
  • Invokes pt_installLocationCompatibility() during PlayLoader initialization under TARGET_OS_MACCATALYST.
  • Adds mockLocation* fields to PlaySettings.swift with backwards-compatible init(from:) using decodeIfPresent.
  • Paired with PlayCover UI PR: feat(location): add per-app GPS location spoofing and map picker PlayCover#2297

Verification

  • Built PlayTools (-sdk iphoneos), AKInterface (-sdk macosx), and LocationCompatibility.m for arm64-apple-ios15.0-macabi.
  • swiftlint --strict passed with 0 violations.

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