Skip to content

Commit 832719c

Browse files
authored
Merge pull request #167 from IBM/development
Version 3.0.0 Build 104
2 parents 2dccbc0 + bb851c8 commit 832719c

File tree

99 files changed

+4096
-3215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+4096
-3215
lines changed

Images/Popup/datepicker_1.png

52.3 KB
Loading

Images/Popup/datepicker_2.png

73 KB
Loading

Notification Agent Alerts/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundleShortVersionString</key>
1818
<string>$(MARKETING_VERSION)</string>
1919
<key>CFBundleVersion</key>
20-
<string>96</string>
20+
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>ITSAppUsesNonExemptEncryption</key>
2222
<false/>
2323
<key>LSApplicationCategoryType</key>
@@ -32,7 +32,7 @@
3232
<true/>
3333
</dict>
3434
<key>NSHumanReadableCopyright</key>
35-
<string>Copyright © 2021 IBM Inc. All rights reserved.</string>
35+
<string>Copyright © 2021 IBM. All rights reserved.</string>
3636
<key>NSMainStoryboardFile</key>
3737
<string>Main</string>
3838
<key>NSPrincipalClass</key>

Notification Agent Banners/Info.plist

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
<string>$(DEVELOPMENT_LANGUAGE)</string>
77
<key>CFBundleExecutable</key>
88
<string>$(EXECUTABLE_NAME)</string>
9-
<key>CFBundleIconFile</key>
10-
<string></string>
119
<key>CFBundleIdentifier</key>
1210
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1311
<key>CFBundleInfoDictionaryVersion</key>
@@ -19,7 +17,7 @@
1917
<key>CFBundleShortVersionString</key>
2018
<string>$(MARKETING_VERSION)</string>
2119
<key>CFBundleVersion</key>
22-
<string>96</string>
20+
<string>$(CURRENT_PROJECT_VERSION)</string>
2321
<key>ITSAppUsesNonExemptEncryption</key>
2422
<false/>
2523
<key>LSApplicationCategoryType</key>
@@ -34,7 +32,7 @@
3432
<true/>
3533
</dict>
3634
<key>NSHumanReadableCopyright</key>
37-
<string>Copyright © 2021 IBM Inc. All rights reserved.</string>
35+
<string>Copyright © 2021 IBM. All rights reserved.</string>
3836
<key>NSMainStoryboardFile</key>
3937
<string>Main</string>
4038
<key>NSPrincipalClass</key>

Notification Agent Core Tests/NACTriggersTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ class NACTriggersTests: XCTestCase {
1616
["toBeRemoved", "-type", "banner", "-title", "This is a title"],
1717
["toBeRemoved", "-type", "alert", "-title", "This is a title"],
1818
["toBeRemoved", "-type", "popup", "-title", "This is a title", "-silent", "-subtitle", "This is a subtitle"]]
19-
let processerUseCases = [URL(string: "macatibm:shownotification?type=popup&title=This%20is%20a%20title")!,
20-
URL(string: "macatibm:shownotification?type=banner&title=This%20is%20a%20title")!,
21-
URL(string: "macatibm:shownotification?type=alert&title=This%20is%20a%20title")!,
22-
URL(string: "macatibm:shownotification?type=alert&title=title&silent&subtitle=This%20is%20a%20subtitle")!]
19+
let processerUseCases = [URL(string: "ibmnotifier:shownotification?type=popup&title=This%20is%20a%20title")!,
20+
URL(string: "ibmnotifier:shownotification?type=banner&title=This%20is%20a%20title")!,
21+
URL(string: "ibmnotifier:shownotification?type=alert&title=This%20is%20a%20title")!,
22+
URL(string: "ibmnotifier:shownotification?type=alert&title=title&silent&subtitle=This%20is%20a%20subtitle")!]
2323

2424
override func setUpWithError() throws {
2525
worker.startObservation()

Notification Agent Core/Controllers/HelpBuilder.swift

Lines changed: 33 additions & 19 deletions
Large diffs are not rendered by default.

Notification Agent Core/Controllers/NALogger.swift

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,26 @@ import os.log
1313
/// A simple class based on Apple os.log that handle normal and verbose logs.
1414
public final class NALogger {
1515

16+
// MARK: - Static Variables
17+
1618
static let shared = NALogger()
1719

20+
// MARK: - Methods
21+
1822
func log(_ type: OSLogType, _ message: StaticString, _ args: [String] = []) {
19-
if #available(OSX 11.0, *) {
20-
Logger().log(level: type,
21-
"\(String(format: message.description.replacingOccurrences(of: "{public}", with: ""), arguments: args), privacy: .public)")
22-
} else {
23-
os_log(type, message, args)
24-
}
23+
Logger().log(level: type,
24+
"\(String(format: message.description.replacingOccurrences(of: "{public}", with: ""), arguments: args), privacy: .public)")
2525
if Context.main.sharedSettings.isVerboseModeEnabled || type == .error {
2626
self.verbose(type, message, args)
2727
}
2828
}
29-
3029
func log(_ message: StaticString, _ args: [String] = []) {
31-
if #available(OSX 11.0, *) {
32-
Logger().log(level: .default,
33-
"\(String(format: message.description.replacingOccurrences(of: "{public}", with: ""), arguments: args), privacy: .public)")
34-
} else {
35-
os_log(message, args)
36-
}
30+
Logger().log(level: .default,
31+
"\(String(format: message.description.replacingOccurrences(of: "{public}", with: ""), arguments: args), privacy: .public)")
3732
if Context.main.sharedSettings.isVerboseModeEnabled {
3833
self.verbose(.default, message, args)
3934
}
4035
}
41-
4236
func deprecationLog(since version: AppVersion, deprecatedArgument: String) {
4337
if version.isFinalDeprecatedVersion() {
4438
self.log(.error, "The following argument has been deprecated: %{public}@. Please update your workflow.", [deprecatedArgument])
@@ -47,12 +41,13 @@ public final class NALogger {
4741
}
4842
}
4943

44+
// MARK: - Private Methods
45+
5046
private func verbose(_ type: OSLogType, _ message: StaticString, _ args: [String] = []) {
5147
let message = type == .error ?
5248
message.description.replacingOccurrences(of: "{public}", with: "").red() :
5349
message.description.replacingOccurrences(of: "{public}", with: "").yellow()
5450

5551
print(String(format: message, arguments: args))
5652
}
57-
5853
}

Notification Agent Core/Extensions/EFCLController-Extension.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Foundation
1111

1212
extension EFCLController {
1313

14-
// MARK: - Internal methods
14+
// MARK: - Internal Methods
1515

1616
/// Exit the app with the related reason code.
1717
/// - Parameter reason: reason why the application should exit.
@@ -50,7 +50,7 @@ extension EFCLController {
5050
}
5151
}
5252

53-
// MARK: - Private methods
53+
// MARK: - Private Methods
5454

5555
/// Check if the passed arguments are configuration.
5656
/// - Parameter arguments: the app's launch arguments.

Notification Agent Core/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</dict>
3131
</array>
3232
<key>CFBundleVersion</key>
33-
<string>96</string>
33+
<string>$(CURRENT_PROJECT_VERSION)</string>
3434
<key>ITSAppUsesNonExemptEncryption</key>
3535
<false/>
3636
<key>LSApplicationCategoryType</key>

Notification Agent Onboarding Tests/NAOTriggersTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class NAOTriggersTests: XCTestCase {
3030
]
3131
]
3232
]
33-
],
33+
] as [String : Any],
3434
[
3535
"title": "This is a title",
3636
"subtitle": "This is a subtitle",

0 commit comments

Comments
 (0)