Skip to content

Commit d7db297

Browse files
committed
Remove redundant notification packages
1 parent 72b8f72 commit d7db297

File tree

5 files changed

+0
-307
lines changed

5 files changed

+0
-307
lines changed

src/SDK/Language/Apple.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -246,16 +246,6 @@ public function getFiles(): array
246246
'destination' => '/Sources/{{ spec.title | caseUcfirst}}/WebSockets/WebSocketClientError.swift',
247247
'template' => '/swift/Sources/WebSockets/WebSocketClientError.swift.twig',
248248
],
249-
[
250-
'scope' => 'default',
251-
'destination' => '/Sources/{{ spec.title | caseUcfirst}}/{{ spec.title | caseUcfirst }}Delegate.swift',
252-
'template' => '/swift/Sources/Delegate.swift.twig',
253-
],
254-
[
255-
'scope' => 'default',
256-
'destination' => '/Sources/{{ spec.title | caseUcfirst}}/NotificationHandler.swift',
257-
'template' => '/swift/Sources/NotificationHandler.swift.twig',
258-
],
259249
// Config for project example-swiftui
260250
[
261251
'scope' => 'default',

templates/apple/Package.swift.twig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ let package = Package(
2424
dependencies: [
2525
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.9.0"),
2626
.package(url: "https://github.com/apple/swift-nio.git", from: "2.32.0"),
27-
.package(url: "https://github.com/firebase/firebase-ios-sdk.git", from: "10.4.0")
2827
],
2928
targets: [
3029
.target(
3130
name: "{{spec.title | caseUcfirst}}",
3231
dependencies: [
3332
.product(name: "AsyncHTTPClient", package: "async-http-client"),
3433
.product(name: "NIOWebSocket", package: "swift-nio"),
35-
.product(name: "FirebaseMessaging", package: "firebase-ios-sdk"),
3634
{%~ if spec.definitions is not empty %}
3735
"{{spec.title | caseUcfirst}}Models",
3836
{%~ endif %}

templates/apple/Sources/Client.swift.twig

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ open class Client {
5353
http = Client.createHTTP()
5454
addUserAgentHeader()
5555
addOriginHeader()
56-
57-
NotificationHandler.shared.client = self
5856
}
5957

6058
private static func createHTTP(
@@ -88,7 +86,6 @@ open class Client {
8886
decompression: .enabled(limit: .none)
8987
)
9088
)
91-
9289
}
9390

9491
deinit {
@@ -165,19 +162,6 @@ open class Client {
165162
return self
166163
}
167164

168-
///
169-
/// Set push provider ID.
170-
///
171-
/// @param String endpoint
172-
///
173-
/// @return this
174-
///
175-
open func setPushProviderId(_ providerId: String) -> Client {
176-
NotificationHandler.shared.providerId = providerId
177-
178-
return self
179-
}
180-
181165
///
182166
/// Add header
183167
///

templates/swift/Sources/Delegate.swift.twig

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

templates/swift/Sources/NotificationHandler.swift.twig

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

0 commit comments

Comments
 (0)