diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 8d57f21..73da697 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -29,7 +29,7 @@ Stack trace or log information > The simulator is a valid device as well. If all versions or devices seem to be affected, simply enter 'Any' * Library version: _version_ -* iOS version: _version_ +* iOS / tvOS version: _version_ * Device: _model_ ### Reproducibility diff --git a/Package.swift b/Package.swift index 2b6c726..3b1fe2b 100644 --- a/Package.swift +++ b/Package.swift @@ -3,7 +3,7 @@ import PackageDescription struct ProjectSettings { - static let marketingVersion: String = "3.0.0" + static let marketingVersion: String = "3.0.1" } let package = Package( @@ -27,12 +27,16 @@ let package = Package( .target( name: "SRGLogger", cSettings: [ - .define("MARKETING_VERSION", to: "\"\(ProjectSettings.marketingVersion)\"") + .define("MARKETING_VERSION", to: "\"\(ProjectSettings.marketingVersion)\""), + .define("NS_BLOCK_ASSERTIONS", to: "1", .when(configuration: .release)) ] ), .target( name: "SRGLoggerSwift", - dependencies: ["SRGLogger"] + dependencies: ["SRGLogger"], + cSettings: [ + .define("NS_BLOCK_ASSERTIONS", to: "1", .when(configuration: .release)) + ] ), .testTarget( name: "SRGLoggerTests", diff --git a/docs/README.md b/docs/README.md index 9ca2586..da7031e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -81,23 +81,23 @@ To avoid specifiying the subsystem in your application or library each time you or in Swift: ```swift -func MyAppLogVerbose(category : String?, message: String, file: String = #file, function: String = #function, line: UInt = #line) { +func MyAppLogVerbose(category: String?, message: String, file: String = #file, function: String = #function, line: UInt = #line) { SRGLogVerbose(subsystem: "com.myapp", category: category, message: message, file: file, function: function, line: line); } -func MyAppLogDebug(category : String?, message: String, file: String = #file, function: String = #function, line: UInt = #line) { +func MyAppLogDebug(category: String?, message: String, file: String = #file, function: String = #function, line: UInt = #line) { SRGLogDebug(subsystem: "com.myapp", category: category, message: message, file: file, function: function, line: line); } -func MyAppLogInfo(category : String?, message: String, file: String = #file, function: String = #function, line: UInt = #line) { +func MyAppLogInfo(category: String?, message: String, file: String = #file, function: String = #function, line: UInt = #line) { SRGLogInfo(subsystem: "com.myapp", category: category, message: message, file: file, function: function, line: line); } -func MyAppLogWarning(category : String?, message: String, file: String = #file, function: String = #function, line: UInt = #line) { +func MyAppLogWarning(category: String?, message: String, file: String = #file, function: String = #function, line: UInt = #line) { SRGLogWarning(subsystem: "com.myapp", category: category, message: message, file: file, function: function, line: line); } -func MyAppLogError(category : String?, message: String, file: String = #file, function: String = #function, line: UInt = #line) { +func MyAppLogError(category: String?, message: String, file: String = #file, function: String = #function, line: UInt = #line) { SRGLogError(subsystem: "com.myapp", category: category, message: message, file: file, function: function, line: line); } ```