Skip to content

Commit

Permalink
Merge pull request #450 from PermanentOrg/feature/VSP-1463-Remove-old…
Browse files Browse the repository at this point in the history
…-tutorial

VSP-1463 [IOS] Remove old tutorial when you first install the app
  • Loading branch information
luciancerbu-vsp authored Aug 28, 2024
2 parents 118d95e + 2a055b1 commit b5f5386
Show file tree
Hide file tree
Showing 28 changed files with 212 additions and 2,586 deletions.
152 changes: 20 additions & 132 deletions Permanent.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions Permanent/App/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,14 @@ extension AppDelegate {
}

extension AppDelegate: MessagingDelegate {
func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String) {
print("Saving push token: " + fcmToken)
PreferencesManager.shared.set(fcmToken, forKey: Constants.Keys.StorageKeys.fcmPushTokenKey)

if rootViewController.isDrawerRootActive && AuthenticationManager.shared.session != nil {
rootViewController.sendPushNotificationToken()
func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String?) {
if let fcmToken = fcmToken {
print("Saving push token: " + fcmToken)
PreferencesManager.shared.set(fcmToken, forKey: Constants.Keys.StorageKeys.fcmPushTokenKey)

if rootViewController.isDrawerRootActive && AuthenticationManager.shared.session != nil {
rootViewController.sendPushNotificationToken()
}
}
}
}
Expand Down
1 change: 0 additions & 1 deletion Permanent/Common/Constants/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ extension Constants.API.NotificationType {
}

extension Constants.Keys.StorageKeys {
static let isNewUserStorageKey = "isNewUser"
static let uploadFilesKey = "uploadFilesKey"
static let shareURLToken = "shareURLTokenStorageKey"
static let publicURLToken = "publicURLTokenKey"
Expand Down
3 changes: 0 additions & 3 deletions Permanent/Common/Constants/StoryboardName.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ enum StoryboardName: String {
case main
case authentication
case launch
case onboarding
case welcomePage
case members
case share
Expand All @@ -21,13 +20,11 @@ enum StoryboardName: String {
case archives
case profile
case donate
case accountOnboarding
case archiveSettings
case legacyPlanning

var name: String {
switch self {
case .accountOnboarding: return "AccountOnboarding"
case .archiveSettings: return "ArchiveSettings"
case .legacyPlanning: return "LegacyPlanning"

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b5f5386

Please sign in to comment.