Skip to content

Commit d84975d

Browse files
authored
Develop (#8)
What's new in 0.8: * New Rules support. Old rules (win back lapsed subscribers, billing issue) are deprecated and no longer supported since this SDK version. When upgrading to this SDK version, you should create your new screens and rules in web dashboard; * Method `func submitReceipt(_ productIdentifier : String, _ callback : ((ApphudSubscription?, Error?) -> Void)?)` is now deprecated. You don't need to call it anymore, as starting now Apphud SDK automatically tracks all your in-app purchases and submits App Store receipt to Apphud. If you were using callback from this method, you can use `apphudSubscriptionsUpdated` delegate method instead; * Added new protocol `ApphudUIDelegate` with screen controller delegate methods; * Delete method `func apphudScreenPresentationStyle(controller: UIViewController) -> UIModalPresentationStyle` is moved from `ApphudDelegate` to new protocol `ApphudUIDelegate`; * Added new method `func showPendingScreen()` to present Apphud screen that was delayed (i.e. returned `false`) in `apphudShouldShowScreen` delegate method; * Added new method `func migrateSubscriptionsIfNeeded(callback: @escaping ([ApphudSubscription]?) -> Void)` which helps you to migrate existing subscribers into Apphud. Useful when adding Apphud SDK to live app. * Other minor bug fixes and improvements.
1 parent d9b7b60 commit d84975d

28 files changed

+1329
-1134
lines changed

ApphudSDK.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'ApphudSDK'
3-
s.version = '0.7.5'
3+
s.version = '0.8'
44
s.summary = 'Track and control iOS auto-renewable subscriptions.'
55

66
s.description = 'Track, control and analyze iOS auto-renewable subscriptions with Apphud.'
@@ -11,6 +11,6 @@ Pod::Spec.new do |s|
1111
s.frameworks = 'StoreKit'
1212
s.ios.deployment_target = '11.2'
1313
s.swift_version = '4.2'
14-
s.source_files = 'Source/*.swift'
14+
s.source_files = 'Sources/**/*.swift'
1515

1616
end

Package.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// swift-tools-version:5.1
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "ApphudSDK",
6+
platforms: [
7+
.iOS(.v11)
8+
],
9+
products: [
10+
.library(name: "ApphudSDK", targets: ["ApphudSDK"])
11+
],
12+
targets: [
13+
.target(name: "ApphudSDK")
14+
],
15+
swiftLanguageVersions: [.v4_2]
16+
)

Source/ApphudFeedbackController.swift

Lines changed: 0 additions & 184 deletions
This file was deleted.

0 commit comments

Comments
 (0)