Skip to content

Commit a882c56

Browse files
rename inBox => inbox
1 parent c421954 commit a882c56

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Tests/swift-sdk-swift-tests/InAppHelperTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class InAppHelperTests: XCTestCase {
332332
}
333333
"""
334334
var customPayload2 = customPayloadStr2.toJsonDict()
335-
customPayload2["inAppType"] = "inBox"
335+
customPayload2["inAppType"] = "inbox"
336336
customPayload2["contentType"] = "html"
337337

338338
let payload = """
@@ -397,7 +397,7 @@ class InAppHelperTests: XCTestCase {
397397
XCTAssertTrue(TestUtils.areEqual(dict1: message1.customPayload!, dict2: customPayloadStr1.toJsonDict()))
398398

399399
let message2 = messages[1]
400-
XCTAssertEqual(message2.inAppType, .inBox)
400+
XCTAssertEqual(message2.inAppType, .inbox)
401401
XCTAssertTrue(TestUtils.areEqual(dict1: message2.customPayload!, dict2: customPayloadStr2.toJsonDict()))
402402

403403
let message3 = messages[2]
@@ -446,7 +446,7 @@ class InAppHelperTests: XCTestCase {
446446
"customPayload" : \(customPayloadStr1)
447447
},
448448
{
449-
"inAppType" : "inBox",
449+
"inAppType" : "inbox",
450450
"content" : {
451451
"contentType" : "html",
452452
"html" : "<a href=\\"http://somewhere.com\\">Click here</a>"
@@ -493,7 +493,7 @@ class InAppHelperTests: XCTestCase {
493493
XCTAssertTrue(TestUtils.areEqual(dict1: message1.customPayload!, dict2: customPayloadStr1.toJsonDict()))
494494

495495
let message2 = messages[1]
496-
XCTAssertEqual(message2.inAppType, .inBox)
496+
XCTAssertEqual(message2.inAppType, .inbox)
497497
XCTAssertTrue(TestUtils.areEqual(dict1: message2.customPayload!, dict2: customPayloadStr2.toJsonDict()))
498498

499499
let message3 = messages[2]

Tests/swift-sdk-swift-tests/InAppTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ class InAppTests: XCTestCase {
716716
"customPayload": {"title": "Product 1 Available", "date": "2018-11-14T14:00:00:00.32Z"}
717717
},
718718
{
719-
"inAppType": "inBox",
719+
"inAppType": "inbox",
720720
"content": {"contentType": "alert", "inAppDisplaySettings": {"bottom": {"displayOption": "AutoExpand"}, "backgroundAlpha": 0.5, "left": {"percentage": 60}, "right": {"percentage": 60}, "top": {"displayOption": "AutoExpand"}}, "html": "<a href=\'https://www.site2.com\'>Click Here</a>"},
721721
"trigger": {"type": "immediate"},
722722
"messageId": "message2",

swift-sdk/Internal/InAppPersistence.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ extension IterableInAppType : CustomStringConvertible {
7171
switch self {
7272
case .default:
7373
return "default"
74-
case .inBox:
75-
return "inBox"
74+
case .inbox:
75+
return "inbox"
7676
}
7777
}
7878
}
@@ -82,8 +82,8 @@ extension IterableInAppType {
8282
switch string.lowercased() {
8383
case String(describing: IterableInAppType.default).lowercased():
8484
return .default
85-
case String(describing: IterableInAppType.inBox).lowercased():
86-
return .inBox
85+
case String(describing: IterableInAppType.inbox).lowercased():
86+
return .inbox
8787
default:
8888
return .default
8989
}

swift-sdk/IterableInApp.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ open class DefaultInAppDelegate : IterableInAppDelegate {
4545
@objc
4646
public enum IterableInAppType : Int, Codable {
4747
case `default`
48-
case inBox
48+
case inbox
4949
}
5050

5151
@objc

0 commit comments

Comments
 (0)