mirror of
https://github.com/UrbanApps/Armchair.git
synced 2026-04-24 01:38:33 +02:00
Update Readme, Fix custom alerts, update review URL
Update version in podspec to 0.3.0 (Swift 3) Update readme to match podfile Make custom alert closure parameters escaping Review URL: auto-open to write review page
This commit is contained in:
committed by
whitepixelstudios
parent
b9b50559aa
commit
bf8c97e92b
@@ -1,7 +1,7 @@
|
|||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
|
|
||||||
s.name = "Armchair"
|
s.name = "Armchair"
|
||||||
s.version = "0.1.1"
|
s.version = "0.3.0"
|
||||||
s.summary = "A simple yet powerful App Review Manager for iOS and OSX in Swift"
|
s.summary = "A simple yet powerful App Review Manager for iOS and OSX in Swift"
|
||||||
s.description = <<-DESC
|
s.description = <<-DESC
|
||||||
A simple yet powerful App Review Manager for iOS and OSX in Swift.
|
A simple yet powerful App Review Manager for iOS and OSX in Swift.
|
||||||
@@ -28,5 +28,7 @@ Pod::Spec.new do |s|
|
|||||||
s.ios.deployment_target = '8.0'
|
s.ios.deployment_target = '8.0'
|
||||||
s.osx.deployment_target = '10.10'
|
s.osx.deployment_target = '10.10'
|
||||||
s.requires_arc = true
|
s.requires_arc = true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
17
README.md
17
README.md
@@ -93,7 +93,22 @@ platform :ios, '8.0'
|
|||||||
platform :osx, '10.10'
|
platform :osx, '10.10'
|
||||||
use_frameworks!
|
use_frameworks!
|
||||||
|
|
||||||
pod 'Armchair', '>= 0.1'
|
pod 'Armchair', '>= 0.3'
|
||||||
|
|
||||||
|
#Add the following in order to automatically set debug flags for armchair in debug builds
|
||||||
|
post_install do |installer|
|
||||||
|
installer.pods_project.targets.each do |target|
|
||||||
|
if target.name == 'Armchair'
|
||||||
|
target.build_configurations.each do |config|
|
||||||
|
if config.name == 'Debug'
|
||||||
|
config.build_settings['OTHER_SWIFT_FLAGS'] = '-DDebug'
|
||||||
|
else
|
||||||
|
config.build_settings['OTHER_SWIFT_FLAGS'] = ''
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, run the following command:
|
Then, run the following command:
|
||||||
|
|||||||
@@ -564,7 +564,7 @@ public func rateApp() {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public typealias ArmchairClosure = () -> ()
|
public typealias ArmchairClosure = () -> ()
|
||||||
public typealias ArmchairClosureCustomAlert = (_ rateAppClosure: ArmchairClosure, _ remindLaterClosure: ArmchairClosure, _ noThanksClosure: ArmchairClosure) -> ()
|
public typealias ArmchairClosureCustomAlert = (_ rateAppClosure: @escaping ArmchairClosure, _ remindLaterClosure: @escaping ArmchairClosure, _ noThanksClosure: @escaping ArmchairClosure) -> ()
|
||||||
public typealias ArmchairAnimateClosure = (Bool) -> ()
|
public typealias ArmchairAnimateClosure = (Bool) -> ()
|
||||||
public typealias ArmchairShouldPromptClosure = (ArmchairTrackingInfo) -> Bool
|
public typealias ArmchairShouldPromptClosure = (ArmchairTrackingInfo) -> Bool
|
||||||
public typealias ArmchairShouldIncrementClosure = () -> Bool
|
public typealias ArmchairShouldIncrementClosure = () -> Bool
|
||||||
@@ -749,7 +749,7 @@ open class Manager : ArmchairManager {
|
|||||||
|
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
fileprivate var ratingAlert: UIAlertView? = nil
|
fileprivate var ratingAlert: UIAlertView? = nil
|
||||||
fileprivate let reviewURLTemplate = "itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&id=APP_ID&at=AFFILIATE_CODE&ct=AFFILIATE_CAMPAIGN_CODE"
|
fileprivate let reviewURLTemplate = "itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&id=APP_ID&at=AFFILIATE_CODE&ct=AFFILIATE_CAMPAIGN_CODE&action=write-review"
|
||||||
#elseif os(OSX)
|
#elseif os(OSX)
|
||||||
private var ratingAlert: NSAlert? = nil
|
private var ratingAlert: NSAlert? = nil
|
||||||
private let reviewURLTemplate = "macappstore://itunes.apple.com/us/app/idAPP_ID?ls=1&mt=12&at=AFFILIATE_CODE&ct=AFFILIATE_CAMPAIGN_CODE"
|
private let reviewURLTemplate = "macappstore://itunes.apple.com/us/app/idAPP_ID?ls=1&mt=12&at=AFFILIATE_CODE&ct=AFFILIATE_CAMPAIGN_CODE"
|
||||||
|
|||||||
Reference in New Issue
Block a user