← Back to Pull requests

Avoid static privacy API references in PermissionManager #48

Closed
unknown closed this pull request without merging on Oct 09, 2026 21:12 UTC
View on GitHub
unknown unknown commented on Oct 09, 2026 16:17 UTC
Author

This PR extends the existing dynamic API resolution approach used by LocationManager to other permission-related APIs in PermissionManager. This avoids unnecessary privacy usage description requirements for apps that don't use the corresponding functionality.

For example, when uploading my app to App Store Connect, I encountered ITMS-90683 requiring NSMicrophoneUsageDescription, even though my app doesn't even use the microphone. This was caused by static API references in SkipKit which prevented App Store Connect from successfully processing the uploaded build.

The changes preserve the existing permission functionality while avoiding these static references. Apps that actually use the corresponding APIs still need to provide the required privacy usage descriptions, while apps that don't use them no longer need to add unnecessary usage descriptions to their Info.plist just to satisfy App Store Connect's validation.

---

Thank you for contributing to the Skip project! Please use this space to describe your change and add any labels (bug, enhancement, documentation, etc.) to help categorize your contribution.

Please review the contribution guide at https://skip.dev/docs/contributing/ for advice and guidance on making high-quality PRs.

Skip Pull Request Checklist:

  • [X] REQUIRED: I have signed the Contributor Agreement

  • [X] REQUIRED: I have tested my change locally with swift test

  • [X] OPTIONAL: I have tested my change on an iOS simulator or device

  • [X] OPTIONAL: I have tested my change on an Android emulator or device
  • -----

  • [X] AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes.

  • I used Codex to help implement and iteratively refine the changes, investigate issues, and run targeted validation checks. I reviewed the changes and manually verified them by building and uploading my own iOS app to TestFlight using the modified Skip package. The upload no longer triggered any ITMS privacy-related warnings, and I confirmed that location fetching, camera access, and photo library access still work as expected.

    -----

    Diff: 279 lines (+209 / -70) across 3 files Reviewer: marcprux Review duration: 294m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 279 lines diff across 3 files
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.337
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #48"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 62.8% (MEDIUM) · Higher = larger blast radius
    62.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 24.8% · Safe to merge
    24.8%