[PR #201] [MERGED] Introduce Environment #485

Closed
opened 2026-03-03 01:12:37 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Clipy/Clipy/pull/201
Author: @Econa77
Created: 8/9/2017
Status: Merged
Merged: 8/12/2017
Merged by: @Econa77

Base: developHead: feature/environment


📝 Commits (3)

  • 882e473 Introduce environments
  • 4162bce Replace shared object to environment
  • b653f8e Remove unused properties

📊 Changes

17 files changed (+251 additions, -138 deletions)

View changed files

📝 Clipy.xcodeproj/project.pbxproj (+16 -0)
📝 Clipy/Sources/AppDelegate.swift (+25 -25)
Clipy/Sources/Environments/AppEnvironment.swift (+76 -0)
Clipy/Sources/Environments/Environment.swift (+41 -0)
📝 Clipy/Sources/Managers/MenuManager.swift (+26 -28)
📝 Clipy/Sources/Preferences/CPYPreferencesWindowController.swift (+2 -3)
📝 Clipy/Sources/Preferences/Panels/CPYExcludeAppPreferenceViewController.swift (+4 -4)
📝 Clipy/Sources/Preferences/Panels/CPYShortcutsPreferenceViewController.swift (+9 -9)
📝 Clipy/Sources/Preferences/Panels/CPYTypePreferenceViewController.swift (+1 -2)
📝 Clipy/Sources/Preferences/Panels/CPYUpdatesPreferenceViewController.swift (+1 -3)
📝 Clipy/Sources/Services/ClipService.swift (+11 -12)
📝 Clipy/Sources/Services/DataCleanService.swift (+5 -7)
📝 Clipy/Sources/Services/ExcludeAppService.swift (+4 -9)
📝 Clipy/Sources/Services/HotKeyService.swift (+18 -20)
📝 Clipy/Sources/Services/PasteService.swift (+3 -6)
📝 Clipy/Sources/Snippets/CPYSnippetsEditorWindowController.swift (+4 -5)
📝 Clipy/Sources/Utility/CPYUtilities.swift (+5 -5)

📄 Description

Introduced kickstarter style Environments for more easy tests and DI 🎉
Thanks kickstarter-ios oss projects


🔄 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/Clipy/Clipy/pull/201 **Author:** [@Econa77](https://github.com/Econa77) **Created:** 8/9/2017 **Status:** ✅ Merged **Merged:** 8/12/2017 **Merged by:** [@Econa77](https://github.com/Econa77) **Base:** `develop` ← **Head:** `feature/environment` --- ### 📝 Commits (3) - [`882e473`](https://github.com/Clipy/Clipy/commit/882e4730b9ea0fa8a08b8e52cf41e2000a18834f) Introduce environments - [`4162bce`](https://github.com/Clipy/Clipy/commit/4162bcec0d755ad5d332e6180773dfef92fd774e) Replace shared object to environment - [`b653f8e`](https://github.com/Clipy/Clipy/commit/b653f8e8e810d369c39cf55fc90aeb9fc75f73c0) Remove unused properties ### 📊 Changes **17 files changed** (+251 additions, -138 deletions) <details> <summary>View changed files</summary> 📝 `Clipy.xcodeproj/project.pbxproj` (+16 -0) 📝 `Clipy/Sources/AppDelegate.swift` (+25 -25) ➕ `Clipy/Sources/Environments/AppEnvironment.swift` (+76 -0) ➕ `Clipy/Sources/Environments/Environment.swift` (+41 -0) 📝 `Clipy/Sources/Managers/MenuManager.swift` (+26 -28) 📝 `Clipy/Sources/Preferences/CPYPreferencesWindowController.swift` (+2 -3) 📝 `Clipy/Sources/Preferences/Panels/CPYExcludeAppPreferenceViewController.swift` (+4 -4) 📝 `Clipy/Sources/Preferences/Panels/CPYShortcutsPreferenceViewController.swift` (+9 -9) 📝 `Clipy/Sources/Preferences/Panels/CPYTypePreferenceViewController.swift` (+1 -2) 📝 `Clipy/Sources/Preferences/Panels/CPYUpdatesPreferenceViewController.swift` (+1 -3) 📝 `Clipy/Sources/Services/ClipService.swift` (+11 -12) 📝 `Clipy/Sources/Services/DataCleanService.swift` (+5 -7) 📝 `Clipy/Sources/Services/ExcludeAppService.swift` (+4 -9) 📝 `Clipy/Sources/Services/HotKeyService.swift` (+18 -20) 📝 `Clipy/Sources/Services/PasteService.swift` (+3 -6) 📝 `Clipy/Sources/Snippets/CPYSnippetsEditorWindowController.swift` (+4 -5) 📝 `Clipy/Sources/Utility/CPYUtilities.swift` (+5 -5) </details> ### 📄 Description Introduced kickstarter style Environments for more easy tests and DI 🎉 Thanks [kickstarter-ios oss projects](https://github.com/kickstarter/ios-oss/blob/master/Library/AppEnvironment.swift) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 01:12:37 +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/Clipy#485
No description provided.