You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,30 +88,29 @@ let versionsTracker = iDontMindSingletons ? VersionsTracker.sharedInstance : Ver
88
88
89
89
switch versionsTracker.appVersion.changeState {
90
90
case .installed:
91
-
break
92
91
// 🎉 Sweet, a new user just installed your app
93
92
// ... start tutorial / intro
93
+
print("🆕 Congratulations, the app is launched for the very first time")
94
94
95
95
case .notChanged:
96
-
break
97
96
// 😴 nothing as changed
98
97
// ... nothing to do
98
+
print("🔄 Welcome back, nothing as changed since the last time")
99
99
100
100
case .updated(let previousVersion: Version):
101
-
break
102
101
// 🙃 new build of the same version
103
102
// ... hopefully it fixed those bugs the QA guy reported
103
+
print("🆙 The app was updated making small changes: \(previousVersion) -> \(versionTracker.currentVersion)")
104
104
105
-
case .upgraded(let previousVersion: Version)
106
-
break
105
+
case .upgraded(let previousVersion):
107
106
// 😄 marketing version increased
108
107
// ... migrate old app data
108
+
print("⬆️ Cool, its a new version: \(previousVersion) -> \(versionTracker.currentVersion)")
109
109
110
-
case .downgraded(let previousVersion: Version)
111
-
break
110
+
case .downgraded(let previousVersion):
112
111
// 😵 marketing version decreased (hopefully we are not on production)
113
112
// ... purge app data and start over
114
-
113
+
print("⬇️ Oohu, looks like something is wrong with the current version to make you come back here: \(previousVersion) -> \(versionTracker.currentVersion)")
0 commit comments