[PR #538] [MERGED] feat: (slightly) more robust uri handler #1653

Closed
opened 2026-03-03 19:08:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/PlayCover/PlayCover/pull/538
Author: @ohaiibuzzle
Created: 11/24/2022
Status: Merged
Merged: 2/23/2023
Merged by: @Depal1

Base: developHead: feat/uri-handler


📝 Commits (6)

  • 4af5902 feat: (slightly) more robust URI Handler
  • 1fbf718 fix: behavior tweaks
  • 3d052e5 chore: undo Cartfile.resolved changes
  • c1437b8 fix: use host instead of path for uri parsing
  • 9db7839 chore: remove print statement
  • 5912b93 fix: even tighter checks

📊 Changes

6 files changed (+131 additions, -12 deletions)

View changed files

📝 PlayCover.xcodeproj/project.pbxproj (+4 -0)
PlayCover/Utils/URLHandler.swift (+101 -0)
📝 PlayCover/Views/MainView.swift (+7 -1)
📝 PlayCover/Views/PlayCoverApp.swift (+1 -11)
📝 PlayCover/Views/Settings/IPASourceSettings.swift (+10 -0)
📝 PlayCover/Views/Sidebar Views/IPALibraryView.swift (+8 -0)

📄 Description

This PR proposes a new, (slightly) more robust URI handler for the playcover: URI scheme, with support for adding sources directly from other applications

Also includes RuntimeVM, which is like StoreVM, but is not persistent, which can be useful for passing around temp data later.

Example: playcover://source?action=add&url=<source_url>


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/PlayCover/PlayCover/pull/538 **Author:** [@ohaiibuzzle](https://github.com/ohaiibuzzle) **Created:** 11/24/2022 **Status:** ✅ Merged **Merged:** 2/23/2023 **Merged by:** [@Depal1](https://github.com/Depal1) **Base:** `develop` ← **Head:** `feat/uri-handler` --- ### 📝 Commits (6) - [`4af5902`](https://github.com/PlayCover/PlayCover/commit/4af590216fb3f2c88ddaee22c8bf9750899f9593) feat: (slightly) more robust URI Handler - [`1fbf718`](https://github.com/PlayCover/PlayCover/commit/1fbf718c9aecf4a4052541d3842016cf7016f4c5) fix: behavior tweaks - [`3d052e5`](https://github.com/PlayCover/PlayCover/commit/3d052e5bcd04bb6f65eba914de11a2e5aef2612f) chore: undo Cartfile.resolved changes - [`c1437b8`](https://github.com/PlayCover/PlayCover/commit/c1437b890ea9e010abc318ec4706a475e2683ed7) fix: use host instead of path for uri parsing - [`9db7839`](https://github.com/PlayCover/PlayCover/commit/9db78398d4079f087deb9148bc25ae66f9d48cc5) chore: remove print statement - [`5912b93`](https://github.com/PlayCover/PlayCover/commit/5912b933d6e46d7ec3c3ffed4988fac712843f3b) fix: even tighter checks ### 📊 Changes **6 files changed** (+131 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `PlayCover.xcodeproj/project.pbxproj` (+4 -0) ➕ `PlayCover/Utils/URLHandler.swift` (+101 -0) 📝 `PlayCover/Views/MainView.swift` (+7 -1) 📝 `PlayCover/Views/PlayCoverApp.swift` (+1 -11) 📝 `PlayCover/Views/Settings/IPASourceSettings.swift` (+10 -0) 📝 `PlayCover/Views/Sidebar Views/IPALibraryView.swift` (+8 -0) </details> ### 📄 Description This PR proposes a new, (slightly) more robust URI handler for the `playcover:` URI scheme, with support for adding sources directly from other applications Also includes RuntimeVM, which is like StoreVM, but is not persistent, which can be useful for passing around temp data later. Example: `playcover://source?action=add&url=<source_url>` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 19:08:12 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/PlayCover#1653
No description provided.