Skip to content

Commit 8110f65

Browse files
committed
Created Assets & improved Chapter 16
1 parent df2e4ad commit 8110f65

File tree

15 files changed

+22
-35
lines changed

15 files changed

+22
-35
lines changed

Assets/01.jpg

561 KB
Loading

Assets/02.jpg

547 KB
Loading

Assets/03.jpg

831 KB
Loading

Assets/04.jpg

798 KB
Loading

Assets/05.jpg

761 KB
Loading

Chapter 16/MyProjectClient/iOS/Sources/AppDelegate.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ extension AppDelegate: UIApplicationDelegate {
2929
return .init(name: "Default Configuration",
3030
sessionRole: connectingSceneSession.role)
3131
}
32+
//...
3233

3334
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
3435
let token = deviceToken.map { String(format: "%02.2hhx", $0) }.joined()

Chapter 16/MyProjectClient/iOS/Sources/Modules/Account/AccountInteractor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extension AccountInteractor: AccountInteractorPresenterInterface {
2121
.mapError { $0 as Error }
2222
.eraseToAnyPublisher()
2323
}
24-
24+
//...
2525
func register(deviceToken: String, bearerToken: String) -> AnyPublisher<Void, Error> {
2626
self.services.api.register(deviceToken: deviceToken, bearerToken: bearerToken)
2727
.mapError { $0 as Error }

Chapter 16/MyProjectClient/iOS/Sources/Modules/Account/AccountPresenter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ extension AccountPresenter: AccountPresenterViewInterface {
6464
UserDefaults.standard.synchronize()
6565
self.view.displayLogin()
6666
}
67-
67+
//...
6868
func registerUserDevice(_ block: @escaping (() -> Void)) {
6969
guard
7070
let bearerToken = UserDefaults.standard.string(forKey: "user-token"),

Chapter 16/MyProjectClient/iOS/Sources/Services/Api/MyProject/MyProjectApiService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ final class MyProjectApiService: ApiServiceInterface {
8080
}
8181
.eraseToAnyPublisher()
8282
}
83-
83+
//...
8484
func register(deviceToken: String, bearerToken: String) -> AnyPublisher<Void, HTTP.Error> {
8585
struct Body: Codable {
8686
let token: String

Chapter 16/myProject/Sources/App/Extensions/Environment+App.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ extension Environment {
1818
static let siwaTeamId = Self.get("SIWA_TEAM_ID")!
1919
static let siwaJWKId = Self.get("SIWA_JWK_ID")!
2020
static let siwaKey = Self.get("SIWA_KEY")!.base64Decoded()!
21-
//...
21+
2222
static let apnsKeyId = Self.get("APNS_KEY_ID")!
2323
static let apnsTeamId = Self.get("APNS_TEAM_ID")!
2424
static let apnsTopic = Self.get("APNS_TOPIC")!

0 commit comments

Comments
 (0)