Skip to content

Commit eef28fd

Browse files
author
David Seek
committed
Updated the Example application
1 parent bc6bda0 commit eef28fd

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

ChangelogKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'ChangelogKit'
11-
s.version = '0.1.1'
11+
s.version = '0.1.3'
1212
s.summary = 'A library that offers tools to display a changelog using webviews and user defaults.'
1313

1414
# This description is used to generate tags and improve search results.

Example/ChangelogKit/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1717

1818
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
1919

20-
ChangelogKit.changelogURL = "http://changelogdemo.davidseek.md2site.com/"
20+
ChangelogKit.changelogURL = "https://voicepitchanalyzerchangelog.davidseek.md2site.com/"
2121
return true
2222
}
2323
}

Example/ChangelogKit/ViewController.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@ class ViewController: UIViewController {
1313

1414
override func viewDidAppear(_ animated: Bool) {
1515
super.viewDidAppear(animated)
16-
ChangelogKit.ready(on: self, useForce: true)
16+
/// Presents a banner for every new version
17+
/// Important: You need to make sure to update the
18+
/// `AppVersion` before running. Otherwise nothing will show.
19+
// ChangelogKit.ready(on: self) <---- Uncomment me
20+
21+
/// Shows the changelog regardless of user preference
22+
/// This API makes the most sense as part of a Settings screen
23+
/// You could have an entry like `Show Changelog` and then call this as action.
24+
ChangelogKit.presentChangelog(on: self)
1725
}
1826
}
1927

0 commit comments

Comments
 (0)