Switched iPhoto app for Pages app

This commit is contained in:
Matt Coneybeare
2014-09-18 12:58:22 -04:00
parent 30b8a6bcbb
commit 15a60acb09
4 changed files with 78 additions and 43 deletions

View File

@@ -33,7 +33,7 @@
}
}
let iPhoto = "497786065" // iPhoto iOS
let Pages = "361309726" // Pages iOS
#elseif os(OSX)
@@ -45,7 +45,7 @@
}
let iPhoto = "408981381" // iPhoto Mac
let Pages = "409201541" // Pages Mac
#else
#endif
@@ -62,13 +62,13 @@ extension AppDelegate {
// Normally, all the setup would be here.
// But, because we are presenting a few different setups in the example,
// The config will be in the view controllers
// Armchair.appID("408981381") // iPhoto
// Armchair.appID("408981381") // Pages
//
// It is always best to load Armchair as early as possible
// because it needs to receive application life-cycle notifications
//
// NOTE: The appID call always has to go before any other Armchair calls
Armchair.appID(iPhoto)
Armchair.appID(Pages)
Armchair.debugEnabled(true)
}
}

View File

@@ -78,11 +78,16 @@ extension ViewController {
resetAppReviewManager()
// The AppID is the only required setup
Armchair.appID(iPhoto)
Armchair.appID(Pages)
// Debug means that it will popup on the next available change
Armchair.debugEnabled(true)
#if os(iOS)
// Explicitly disable the storeKit as the default may be true if on iOS 8
Armchair.opensInStoreKit(false)
#endif
// true here means it is ok to show, but it doesn't matter because we have debug on.
Armchair.userDidSignificantEvent(true)
}
@@ -91,7 +96,7 @@ extension ViewController {
resetAppReviewManager()
// The AppID is the only required setup
Armchair.appID(iPhoto)
Armchair.appID(Pages)
// Debug means that it will popup on the next available change
Armchair.debugEnabled(true)
@@ -133,6 +138,11 @@ extension ViewController {
// or you change the default title, message or button titles, set this to YES.
Armchair.useMainAppBundleForLocalizations(true)
#if os(iOS)
// Explicitly disable the storeKit as the default may be true if on iOS 8
Armchair.opensInStoreKit(false)
#endif
// This sets the Affiliate code you want to use, but is not required.
Armchair.affiliateCode("11l7j9")
@@ -180,12 +190,12 @@ extension ViewController {
resetAppReviewManager()
// The AppID is the only required setup
Armchair.appID(iPhoto)
Armchair.appID(Pages)
// Debug means that it will popup on the next available change
Armchair.debugEnabled(true)
// This overrides the default of NO and is iOS 6+. Instead of going to the review page in the App Store App,
// This overrides the default of NO in iOS 7. Instead of going to the review page in the App Store App,
// the user goes to the main page of the app, in side of this app. Downsides are that it doesn't go directly to
// reviews and doesn't take affiliate codes
Armchair.opensInStoreKit(true)