Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
lbrdev committed Mar 21, 2022
2 parents 0d44bc4 + 0ca8161 commit 30db381
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Mindbox.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "Mindbox"
spec.version = "1.3.3"
spec.version = "2.0.0"
spec.summary = "SDK for integration with Mindbox"
spec.description = "This library allows you to integrate data transfer to Mindbox Marketing Cloud"
spec.homepage = "https://github.com/mindbox-moscow/ios-sdk"
Expand Down
2 changes: 1 addition & 1 deletion Mindbox/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>3551</string>
<string>3553</string>
</dict>
</plist>
11 changes: 9 additions & 2 deletions Mindbox/Model/Bodies/MobileApplicationInfoUpdated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
import Foundation

struct MobileApplicationInfoUpdated: Codable {


let notificationProvider: String

let token: String

var isTokenAvailable: Bool
Expand All @@ -20,12 +22,17 @@ struct MobileApplicationInfoUpdated: Codable {

let instanceId: String

init(token: String?, isNotificationsEnabled: Bool, version: Int, instanceId: String) {
init(token: String?,
isNotificationsEnabled: Bool,
version: Int,
instanceId: String,
notificationProvider: String = "APNS") {
self.token = token ?? ""
self.isTokenAvailable = !self.token.isEmpty
self.isNotificationsEnabled = isNotificationsEnabled
self.version = version
self.instanceId = instanceId
self.notificationProvider = notificationProvider
}

}
8 changes: 6 additions & 2 deletions Mindbox/Model/Bodies/MobileApplicationInstalled.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
import Foundation

struct MobileApplicationInstalled: Codable {


let notificationProvider: String

let token: String

var isTokenAvailable: Bool
Expand All @@ -33,7 +35,8 @@ struct MobileApplicationInstalled: Codable {
subscribe: Bool?,
externalDeviceUUID: String?,
version: Int,
instanceId: String
instanceId: String,
notificationProvider: String = "APNS"
) {
self.token = token ?? ""
self.isTokenAvailable = !self.token.isEmpty
Expand All @@ -43,6 +46,7 @@ struct MobileApplicationInstalled: Codable {
self.externalDeviceUUID = externalDeviceUUID
self.version = version
self.instanceId = instanceId
self.notificationProvider = notificationProvider
}

}
2 changes: 1 addition & 1 deletion MindboxNotifications.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "MindboxNotifications"
spec.version = "1.3.3"
spec.version = "2.0.0"
spec.summary = "SDK for integration notifications with Mindbox"
spec.description = "This library allows you to integrate notifications and transfer them to Mindbox Marketing Cloud"
spec.homepage = "https://github.com/mindbox-moscow/ios-sdk"
Expand Down

0 comments on commit 30db381

Please sign in to comment.