Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Versiontrackerswift | 81 | 1 | a year ago | 2 | September 15, 2016 | 2 | mit | Swift | ||
Versions tracker for your iOS, macOS, and tvOS app | ||||||||||
Swift Ga Tracker For Apple Tvos | 76 | 3 years ago | 9 | bsd-3-clause | Swift | |||||
Google Analytics tracker for Apple tvOS provides an easy integration of Google Analytics’ measurement protocol for Apple TV. | ||||||||||
Apple Swiftpackage Kochavatracker | 5 | a month ago | Objective-C | |||||||
Apple Swift-Package KochavaTracker | ||||||||||
Openavt Ios | 3 | 2 years ago | mit | Swift | ||||||
Open Audio-Video Telemetry for iPhone, iPad, and AppleTV. Multiplatform tracking for audio and video players with events and metrics monitoring. | ||||||||||
Objective C Ga Tracker For Apple Tvos | 2 | 3 years ago | 1 | bsd-3-clause | Objective-C | |||||
Expensetrackertvos | 2 | 3 years ago | Swift | |||||||
Expense Tracker tvOS App SwiftUI and Core Data |
VersionTrackerSwift is a versions / builds tracker to know which version has been installed by a user.
In your ApplicationDelegate, call the method track
to track the current version:
// iOS / tvOS
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
VersionTracker.track()
return true
}
// macOS
func applicationDidFinishLaunching(aNotification: NSNotification) {
VersionTracker.track()
return true
}
Then, call whenever one of the following methods to get the data you need:
VersionTracker.shared.track()
VersionTracker.shared.isFirstLaunchEver // Bool
VersionTracker.shared.isFirstVersionLaunch // Bool
VersionTracker.shared.isFirstBuildLaunch // Bool
VersionTracker.shared.versionHistory // [String]
VersionTracker.shared.buildHistory // [String]
VersionTracker.currentVersion // String
VersionTracker.currentBuild // String
Check out the examples and play with the version / build / number to have a concrete example.
Each time you call the method track
, the version and build are stored in NSUserDefaults
if a new version / build is detected. Then, you can access to any information from the tracker.
The version and build number are the information you specify in your app's Info.plist.
Add the following line in your Podfile:
pod 'VersionTrackerSwift'
Add the following line to your Cartfile:
github "tbaranes/VersionTrackerSwift"
Just drag the Source/*.swift
files into your project.
VersionTrackerSwift is available under the MIT license. See the LICENSE file for more info.