Skip to content

Commit

Permalink
Merge pull request #527 from SwiftyBeaver/2.0.1-privacy-manifest
Browse files Browse the repository at this point in the history
Version 2.0.1:  added Privacy Manifest
  • Loading branch information
skreutzberger committed Apr 15, 2024
2 parents d3cb30d + 3a2c610 commit f3f9871
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 10 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,18 @@ This project adheres to [Semantic Versioning](http://semver.org/).
----
<br/>

## 2.0.1 (2024-04-15)

##### Added
- Privacy Manifest by [@skreutzberger](https://github.com/skreutzberger)
- Old log files have same extension by [@emixb](https://github.com/emixb)
- Improved README by [@jsimonlane](https://github.com/jsimonlane)

##### Fixed
- README typos by [@Maartz](https://github.com/Maartz)

<br/>

## 2.0.0 (2023-03-03)

##### Fixed
Expand Down
27 changes: 27 additions & 0 deletions PrivacyInfo.xcprivacy
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTracking</key>
<true/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeOtherDiagnosticData</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
</array>
</dict>
</plist>
4 changes: 2 additions & 2 deletions Sources/SwiftyBeaver.swift
Expand Up @@ -12,9 +12,9 @@ import Foundation
open class SwiftyBeaver {

/// version string of framework
public static let version = "2.0.0" // UPDATE ON RELEASE!
public static let version = "2.0.1" // UPDATE ON RELEASE!
/// build number of framework
public static let build = 2000 // version 1.6.2 -> 1620, UPDATE ON RELEASE!
public static let build = 2010 // version 1.6.2 -> 1620, UPDATE ON RELEASE!

public enum Level: Int {
case verbose = 0
Expand Down
10 changes: 6 additions & 4 deletions SwiftyBeaver.xcodeproj/project.pbxproj
Expand Up @@ -59,6 +59,7 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
9EE6B8BD2BCCF1E600F39376 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
OBJ_10 /* BaseDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseDestination.swift; sourceTree = "<group>"; };
OBJ_11 /* ConsoleDestination.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConsoleDestination.swift; sourceTree = "<group>"; };
OBJ_12 /* Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Extensions.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -140,6 +141,7 @@
OBJ_5 = {
isa = PBXGroup;
children = (
9EE6B8BD2BCCF1E600F39376 /* PrivacyInfo.xcprivacy */,
OBJ_6 /* Package.swift */,
OBJ_7 /* Sources */,
OBJ_19 /* Tests */,
Expand Down Expand Up @@ -372,7 +374,7 @@
INFOPLIST_FILE = Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited)";
MACOSX_DEPLOYMENT_TARGET = 10.10;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MARKETING_VERSION = 1.9.2;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = "$(inherited)";
Expand Down Expand Up @@ -407,7 +409,7 @@
INFOPLIST_FILE = Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited)";
MACOSX_DEPLOYMENT_TARGET = 10.10;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MARKETING_VERSION = 1.9.2;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = "$(inherited)";
Expand Down Expand Up @@ -467,7 +469,7 @@
INFOPLIST_FILE = SwiftyBeaver.xcodeproj/SwiftyBeaverTests_Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @loader_path/../Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.12;
MACOSX_DEPLOYMENT_TARGET = 10.13;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited)";
Expand All @@ -492,7 +494,7 @@
INFOPLIST_FILE = SwiftyBeaver.xcodeproj/SwiftyBeaverTests_Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @loader_path/../Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.10;
MACOSX_DEPLOYMENT_TARGET = 10.13;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited)";
Expand Down
8 changes: 4 additions & 4 deletions Tests/SwiftyBeaverTests/SwiftyBeaverTests.swift
Expand Up @@ -352,7 +352,7 @@ class SwiftyBeaverTests: XCTestCase {
log.error("Hi")
XCTAssertEqual(mock.didSendToThread, "")

var expectation = XCTestExpectation(description: "thread check")
let expectation = XCTestExpectation(description: "thread check")

DispatchQueue.global(qos: .background).async {
log.verbose("Hi")
Expand All @@ -370,7 +370,7 @@ class SwiftyBeaverTests: XCTestCase {

self.wait(for: [expectation], timeout: 2)

expectation = XCTestExpectation(description: "thread check custom")
let expectation2 = XCTestExpectation(description: "thread check custom")

DispatchQueue.init(label: "MyTestLabel").async {
log.verbose("Hi")
Expand All @@ -383,10 +383,10 @@ class SwiftyBeaverTests: XCTestCase {
XCTAssertEqual(mock.didSendToThread, "MyTestLabel")
log.error("Hi")
XCTAssertEqual(mock.didSendToThread, "MyTestLabel")
expectation.fulfill()
expectation2.fulfill()
}

self.wait(for: [expectation], timeout: 2)
self.wait(for: [expectation2], timeout: 2)

}

Expand Down

0 comments on commit f3f9871

Please sign in to comment.