Skip to content

Commit

Permalink
Updated the Example application
Browse files Browse the repository at this point in the history
  • Loading branch information
David Seek committed May 1, 2021
1 parent bc6bda0 commit eef28fd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ChangelogKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion Example/ChangelogKit/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

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

ChangelogKit.changelogURL = "http://changelogdemo.davidseek.md2site.com/"
ChangelogKit.changelogURL = "https://voicepitchanalyzerchangelog.davidseek.md2site.com/"
return true
}
}
Expand Down
10 changes: 9 additions & 1 deletion Example/ChangelogKit/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ class ViewController: UIViewController {

override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
ChangelogKit.ready(on: self, useForce: true)
/// Presents a banner for every new version
/// Important: You need to make sure to update the
/// `AppVersion` before running. Otherwise nothing will show.
// ChangelogKit.ready(on: self) <---- Uncomment me

/// Shows the changelog regardless of user preference
/// This API makes the most sense as part of a Settings screen
/// You could have an entry like `Show Changelog` and then call this as action.
ChangelogKit.presentChangelog(on: self)
}
}

0 comments on commit eef28fd

Please sign in to comment.