Skip to content

Commit

Permalink
Remove UIKit References for Cleaner Codebase (#228)
Browse files Browse the repository at this point in the history
* Remove UIViewController extension

* Replace UIKit import with Foundation for streamlined functionality
  • Loading branch information
richherrera authored Dec 18, 2023
1 parent 52f2106 commit 84542b0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 26 deletions.
4 changes: 0 additions & 4 deletions Demo/Demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
BECD84A227036DDB007CCAE4 /* Intent.swift in Sources */ = {isa = PBXBuildFile; fileRef = BECD84A127036DDB007CCAE4 /* Intent.swift */; };
BED042312710833F00C80954 /* CardType.swift in Sources */ = {isa = PBXBuildFile; fileRef = BED042302710833F00C80954 /* CardType.swift */; };
BED04233271084DF00C80954 /* CardFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = BED04232271084DF00C80954 /* CardFormatter.swift */; };
BEDE304A275EA33500D275FD /* UIViewController+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEDE3049275EA33500D275FD /* UIViewController+Extension.swift */; };
CB1AC3B82982AAD70081AED6 /* CardPayments.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CB1AC3B72982AAD70081AED6 /* CardPayments.framework */; };
CB1AC3B92982AAD70081AED6 /* CardPayments.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = CB1AC3B72982AAD70081AED6 /* CardPayments.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
CB1AC3BB2982BB130081AED6 /* PaymentButtons.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CB1AC3BA2982BB130081AED6 /* PaymentButtons.framework */; };
Expand Down Expand Up @@ -206,7 +205,6 @@
BECD84A127036DDB007CCAE4 /* Intent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Intent.swift; sourceTree = "<group>"; };
BED042302710833F00C80954 /* CardType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CardType.swift; sourceTree = "<group>"; };
BED04232271084DF00C80954 /* CardFormatter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CardFormatter.swift; sourceTree = "<group>"; };
BEDE3049275EA33500D275FD /* UIViewController+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIViewController+Extension.swift"; sourceTree = "<group>"; };
CB1AC3B72982AAD70081AED6 /* CardPayments.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = CardPayments.framework; sourceTree = BUILT_PRODUCTS_DIR; };
CB1AC3BA2982BB130081AED6 /* PaymentButtons.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = PaymentButtons.framework; sourceTree = BUILT_PRODUCTS_DIR; };
CB1AC3BF2982C4030081AED6 /* PayPalWebPayments.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = PayPalWebPayments.framework; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -484,7 +482,6 @@
BEDE3048275EA31800D275FD /* Extensions */ = {
isa = PBXGroup;
children = (
BEDE3049275EA33500D275FD /* UIViewController+Extension.swift */,
CB9ED44B283FDA900081F4DE /* PaymentButtonEnums+Extension.swift */,
3BCCFE452A9D47AC00C5102F /* CardExtensions.swift */,
);
Expand Down Expand Up @@ -632,7 +629,6 @@
BE8117662B080202009867B9 /* PayPalWebStatusView.swift in Sources */,
3BA5700B2AA13C1C0081D14F /* CoreConfigManager.swift in Sources */,
80E4300C2AD82C8D003CA748 /* ShippingPreference.swift in Sources */,
BEDE304A275EA33500D275FD /* UIViewController+Extension.swift in Sources */,
80F33CE826F8DE29006811B1 /* DemoMerchantAPI.swift in Sources */,
80F33CEF26F8E7CC006811B1 /* CreateOrderParams.swift in Sources */,
BECD84A227036DDB007CCAE4 /* Intent.swift in Sources */,
Expand Down
20 changes: 0 additions & 20 deletions Demo/Demo/Extensions/UIViewController+Extension.swift

This file was deleted.

2 changes: 1 addition & 1 deletion Demo/Demo/ViewModels/CardVaultViewModel.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import UIKit
import Foundation
import CardPayments
import CorePayments

Expand Down
2 changes: 1 addition & 1 deletion Demo/Demo/ViewModels/PayPalViewModel.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import UIKit
import Foundation
import PayPalNativePayments
import CorePayments

Expand Down

0 comments on commit 84542b0

Please sign in to comment.