Skip to content

Commit 322803b

Browse files
committed
Remove GIPHY SDK
1 parent 2cc2276 commit 322803b

5 files changed

Lines changed: 2 additions & 155 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,4 @@ iOSInjectionProject/
9292
IceCubesApp.xcconfig
9393
*.resolved
9494
buildServer.json
95+
.vscode/settings.json

IceCubesApp.xcodeproj/project.pbxproj

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@
4747
9FC2A38F2B49D1AA00DFD1C1 /* StatusKit in Frameworks */ = {isa = PBXBuildFile; productRef = 9FC2A38E2B49D1AA00DFD1C1 /* StatusKit */; };
4848
9FD542E72962D2FF0045321A /* Lists in Frameworks */ = {isa = PBXBuildFile; productRef = 9FD542E62962D2FF0045321A /* Lists */; };
4949
9FE3DB57296FEFCA00628CB0 /* AppAccount in Frameworks */ = {isa = PBXBuildFile; productRef = 9FE3DB56296FEFCA00628CB0 /* AppAccount */; };
50-
9FE4CCAB2B4C848A00DA5F13 /* GiphyUISDK in Frameworks */ = {isa = PBXBuildFile; platformFilters = (ios, maccatalyst, ); productRef = 9FE4CCAA2B4C848A00DA5F13 /* GiphyUISDK */; };
51-
9FE4CCAD2B4C849F00DA5F13 /* GiphyUISDK in Frameworks */ = {isa = PBXBuildFile; productRef = 9FE4CCAC2B4C849F00DA5F13 /* GiphyUISDK */; };
5250
9FE6A42E2BD043A90055D388 /* RevenueCat in Frameworks */ = {isa = PBXBuildFile; productRef = 9FE6A42D2BD043A90055D388 /* RevenueCat */; };
5351
9FFF677C299B7B2C00FE700A /* Notifications in Frameworks */ = {isa = PBXBuildFile; productRef = 9FFF677B299B7B2C00FE700A /* Notifications */; };
5452
9FFF6780299B7D2B00FE700A /* DesignSystem in Frameworks */ = {isa = PBXBuildFile; productRef = 9FFF677F299B7D2B00FE700A /* DesignSystem */; };
@@ -256,7 +254,6 @@
256254
9FAD85A2297456A400496AB1 /* Env in Frameworks */,
257255
9FAD85A0297456A100496AB1 /* Models in Frameworks */,
258256
9FAD85A4297456A800496AB1 /* DesignSystem in Frameworks */,
259-
9FE4CCAD2B4C849F00DA5F13 /* GiphyUISDK in Frameworks */,
260257
9FAD859E2974569B00496AB1 /* Account in Frameworks */,
261258
9FAD859C2974422700496AB1 /* AppAccount in Frameworks */,
262259
9FC2A38F2B49D1AA00DFD1C1 /* StatusKit in Frameworks */,
@@ -269,7 +266,6 @@
269266
buildActionMask = 2147483647;
270267
files = (
271268
9F7335EF29674F7100AFF0BA /* QuickLook.framework in Frameworks */,
272-
9FE4CCAB2B4C848A00DA5F13 /* GiphyUISDK in Frameworks */,
273269
9F7335ED2967463400AFF0BA /* AVKit.framework in Frameworks */,
274270
9F2A540E2969A0B0009B2D7C /* StoreKit.framework in Frameworks */,
275271
9F55C6902955993C00F94077 /* Explore in Frameworks */,
@@ -437,7 +433,6 @@
437433
9FAD85A1297456A400496AB1 /* Env */,
438434
9FAD85A3297456A800496AB1 /* DesignSystem */,
439435
9FC2A38E2B49D1AA00DFD1C1 /* StatusKit */,
440-
9FE4CCAC2B4C849F00DA5F13 /* GiphyUISDK */,
441436
);
442437
productName = IceCubesShareExtension;
443438
productReference = 9FAD858829743F7400496AB1 /* IceCubesShareExtension.appex */;
@@ -479,7 +474,6 @@
479474
9FE3DB56296FEFCA00628CB0 /* AppAccount */,
480475
DA0B24FA2A6876D50045BDD7 /* SFSafeSymbols */,
481476
9FC2A38A2B49D19A00DFD1C1 /* StatusKit */,
482-
9FE4CCAA2B4C848A00DA5F13 /* GiphyUISDK */,
483477
9FE6A42D2BD043A90055D388 /* RevenueCat */,
484478
9F9191582C6DDF20001C89E7 /* WishKit */,
485479
);
@@ -568,7 +562,6 @@
568562
packageReferences = (
569563
9FAE4ACC29379A5A00772766 /* XCRemoteSwiftPackageReference "keychain-swift" */,
570564
DA0B24F92A6876D40045BDD7 /* XCRemoteSwiftPackageReference "SFSafeSymbols" */,
571-
9FE4CCA92B4C848A00DA5F13 /* XCRemoteSwiftPackageReference "giphy-ios-sdk" */,
572565
9FE6A42C2BD043A80055D388 /* XCRemoteSwiftPackageReference "purchases-ios" */,
573566
9F9191572C6DDF20001C89E7 /* XCRemoteSwiftPackageReference "wishkit-ios" */,
574567
);
@@ -1316,14 +1309,6 @@
13161309
kind = branch;
13171310
};
13181311
};
1319-
9FE4CCA92B4C848A00DA5F13 /* XCRemoteSwiftPackageReference "giphy-ios-sdk" */ = {
1320-
isa = XCRemoteSwiftPackageReference;
1321-
repositoryURL = "https://github.com/Giphy/giphy-ios-sdk";
1322-
requirement = {
1323-
kind = upToNextMajorVersion;
1324-
minimumVersion = 2.2.8;
1325-
};
1326-
};
13271312
9FE6A42C2BD043A80055D388 /* XCRemoteSwiftPackageReference "purchases-ios" */ = {
13281313
isa = XCRemoteSwiftPackageReference;
13291314
repositoryURL = "https://github.com/RevenueCat/purchases-ios";
@@ -1471,16 +1456,6 @@
14711456
isa = XCSwiftPackageProductDependency;
14721457
productName = AppAccount;
14731458
};
1474-
9FE4CCAA2B4C848A00DA5F13 /* GiphyUISDK */ = {
1475-
isa = XCSwiftPackageProductDependency;
1476-
package = 9FE4CCA92B4C848A00DA5F13 /* XCRemoteSwiftPackageReference "giphy-ios-sdk" */;
1477-
productName = GiphyUISDK;
1478-
};
1479-
9FE4CCAC2B4C849F00DA5F13 /* GiphyUISDK */ = {
1480-
isa = XCSwiftPackageProductDependency;
1481-
package = 9FE4CCA92B4C848A00DA5F13 /* XCRemoteSwiftPackageReference "giphy-ios-sdk" */;
1482-
productName = GiphyUISDK;
1483-
};
14841459
9FE6A42D2BD043A90055D388 /* RevenueCat */ = {
14851460
isa = XCSwiftPackageProductDependency;
14861461
package = 9FE6A42C2BD043A80055D388 /* XCRemoteSwiftPackageReference "purchases-ios" */;

IceCubesApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 1 addition & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Packages/StatusKit/Sources/StatusKit/Editor/Components/AccessoryView.swift

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import DesignSystem
22
import Env
3-
#if !os(visionOS) && !DEBUG
4-
import GiphyUISDK
5-
#endif
63
import Models
74
import NukeUI
85
import PhotosUI
@@ -24,7 +21,6 @@ extension StatusEditor {
2421
@State private var isPhotosPickerPresented: Bool = false
2522
@State private var isFileImporterPresented: Bool = false
2623
@State private var isCameraPickerPresented: Bool = false
27-
@State private var isGIFPickerPresented: Bool = false
2824

2925
var body: some View {
3026
@Bindable var viewModel = focusedSEVM
@@ -94,14 +90,6 @@ extension StatusEditor {
9490
} label: {
9591
Label("status.editor.browse-file", systemImage: "folder")
9692
}
97-
98-
#if !os(visionOS)
99-
Button {
100-
isGIFPickerPresented = true
101-
} label: {
102-
Label("GIPHY", systemImage: "party.popper")
103-
}
104-
#endif
10593
} label: {
10694
if viewModel.isMediasLoading {
10795
ProgressView()
@@ -132,30 +120,6 @@ extension StatusEditor {
132120
}))
133121
.background(.black)
134122
})
135-
.sheet(isPresented: $isGIFPickerPresented, content: {
136-
#if !os(visionOS) && !DEBUG
137-
#if targetEnvironment(macCatalyst)
138-
NavigationStack {
139-
giphyView
140-
.toolbar {
141-
ToolbarItem(placement: .topBarLeading) {
142-
Button {
143-
isGIFPickerPresented = false
144-
} label: {
145-
Image(systemName: "xmark.circle")
146-
}
147-
}
148-
}
149-
}
150-
.presentationDetents([.medium, .large])
151-
#else
152-
giphyView
153-
.presentationDetents([.medium, .large])
154-
#endif
155-
#else
156-
EmptyView()
157-
#endif
158-
})
159123
.accessibilityLabel("accessibility.editor.button.attach-photo")
160124
.disabled(viewModel.showPoll)
161125

@@ -216,22 +180,6 @@ extension StatusEditor {
216180
return false
217181
}
218182

219-
#if !os(visionOS) && !DEBUG
220-
@ViewBuilder
221-
private var giphyView: some View {
222-
@Bindable var viewModel = focusedSEVM
223-
GifPickerView { url in
224-
GPHCache.shared.downloadAssetData(url) { data, _ in
225-
guard let data else { return }
226-
viewModel.processGIFData(data: data)
227-
}
228-
isGIFPickerPresented = false
229-
} onShouldDismissGifPicker: {
230-
isGIFPickerPresented = false
231-
}
232-
}
233-
#endif
234-
235183
private var AIMenu: some View {
236184
Menu {
237185
ForEach(AIPrompt.allCases, id: \.self) { prompt in

Packages/StatusKit/Sources/StatusKit/Editor/Components/GIF/GIFPickerView.swift

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)