Skip to content

Commit

Permalink
Privacy Manifest, Skip CI, Bump to 6.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
freak4pc committed Oct 3, 2024
1 parent 35d121a commit 0e54768
Show file tree
Hide file tree
Showing 18 changed files with 124 additions and 32 deletions.
22 changes: 16 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,30 @@ extension Product {
}
}

extension Target {
static func rxTarget(name: String, dependencies: [Target.Dependency]) -> Target {
.target(
name: name,
dependencies: dependencies,
resources: [.copy("PrivacyInfo.xcprivacy")]
)
}
}

extension Target {
static func rxCocoa() -> [Target] {
#if os(Linux)
return [.target(name: "RxCocoa", dependencies: ["RxSwift", "RxRelay"])]
return [.rxTarget(name: "RxCocoa", dependencies: ["RxSwift", "RxRelay"])]
#else
return [.target(name: "RxCocoa", dependencies: ["RxSwift", "RxRelay", "RxCocoaRuntime"])]
return [.rxTarget(name: "RxCocoa", dependencies: ["RxSwift", "RxRelay", "RxCocoaRuntime"])]
#endif
}

static func rxCocoaRuntime() -> [Target] {
#if os(Linux)
return []
#else
return [.target(name: "RxCocoaRuntime", dependencies: ["RxSwift"])]
return [.rxTarget(name: "RxCocoaRuntime", dependencies: ["RxSwift"])]
#endif
}

Expand Down Expand Up @@ -60,12 +70,12 @@ let package = Package(
] as [[Product]]).flatMap { $0 },
targets: ([
[
.target(name: "RxSwift", dependencies: []),
],
.rxTarget(name: "RxSwift", dependencies: []),
],
Target.rxCocoa(),
Target.rxCocoaRuntime(),
[
.target(name: "RxRelay", dependencies: ["RxSwift"]),
.rxTarget(name: "RxRelay", dependencies: ["RxSwift"]),
.target(name: "RxBlocking", dependencies: ["RxSwift"]),
.target(name: "RxTest", dependencies: ["RxSwift"]),
],
Expand Down
20 changes: 15 additions & 5 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,30 @@ extension Product {
}
}

extension Target {
static func rxTarget(name: String, dependencies: [Target.Dependency]) -> Target {
.target(
name: name,
dependencies: dependencies,
resources: [.copy("PrivacyInfo.xcprivacy")]
)
}
}

extension Target {
static func rxCocoa() -> [Target] {
#if os(Linux)
return [.target(name: "RxCocoa", dependencies: ["RxSwift", "RxRelay"])]
return [.rxTarget(name: "RxCocoa", dependencies: ["RxSwift", "RxRelay"])]
#else
return [.target(name: "RxCocoa", dependencies: ["RxSwift", "RxRelay", "RxCocoaRuntime"])]
return [.rxTarget(name: "RxCocoa", dependencies: ["RxSwift", "RxRelay", "RxCocoaRuntime"])]
#endif
}

static func rxCocoaRuntime() -> [Target] {
#if os(Linux)
return []
#else
return [.target(name: "RxCocoaRuntime", dependencies: ["RxSwift"])]
return [.rxTarget(name: "RxCocoaRuntime", dependencies: ["RxSwift"])]
#endif
}

Expand Down Expand Up @@ -60,12 +70,12 @@ let package = Package(
] as [[Product]]).flatMap { $0 },
targets: ([
[
.target(name: "RxSwift", dependencies: []),
.rxTarget(name: "RxSwift", dependencies: []),
],
Target.rxCocoa(),
Target.rxCocoaRuntime(),
[
.target(name: "RxRelay", dependencies: ["RxSwift"]),
.rxTarget(name: "RxRelay", dependencies: ["RxSwift"]),
.target(name: "RxBlocking", dependencies: ["RxSwift"]),
.target(name: "RxTest", dependencies: ["RxSwift"]),
],
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ Open Rx.xcworkspace, choose `RxExample` and hit run. This method will build ever
use_frameworks!

target 'YOUR_TARGET_NAME' do
pod 'RxSwift', '6.7.1'
pod 'RxCocoa', '6.7.1'
pod 'RxSwift', '6.8.0'
pod 'RxCocoa', '6.8.0'
end

# RxTest and RxBlocking make the most sense in the context of unit/integration tests
target 'YOUR_TESTING_TARGET' do
pod 'RxBlocking', '6.7.1'
pod 'RxTest', '6.7.1'
pod 'RxBlocking', '6.8.0'
pod 'RxTest', '6.8.0'
end
```

Expand Down Expand Up @@ -175,7 +175,7 @@ Simply drag the needed framework binaries to your **Frameworks, Libraries, and E
Add this to `Cartfile`

```
github "ReactiveX/RxSwift" "6.7.1"
github "ReactiveX/RxSwift" "6.8.0"
```

```bash
Expand Down
4 changes: 2 additions & 2 deletions RxBlocking.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "RxBlocking"
s.version = "6.7.1"
s.version = "6.8.0"
s.summary = "RxSwift Blocking operators"
s.description = <<-DESC
Set of blocking operators for RxSwift. These operators are mostly intended for unit/integration tests
Expand All @@ -25,7 +25,7 @@ Waiting for observable sequence to complete before exiting command line applicat
s.source_files = 'RxBlocking/**/*.swift', 'Platform/**/*.swift'
s.exclude_files = 'RxBlocking/Platform/**/*.swift'

s.dependency 'RxSwift', '6.7.1'
s.dependency 'RxSwift', '6.8.0'
s.swift_version = '5.1'

s.pod_target_xcconfig = { 'APPLICATION_EXTENSION_API_ONLY' => 'YES' }
Expand Down
2 changes: 1 addition & 1 deletion RxBlocking/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>6.7.1</string>
<string>6.8.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
10 changes: 7 additions & 3 deletions RxCocoa.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "RxCocoa"
s.version = "6.7.1"
s.version = "6.8.0"
s.summary = "RxSwift Cocoa extensions"
s.description = <<-DESC
* UI extensions
Expand All @@ -23,8 +23,12 @@ Pod::Spec.new do |s|
s.source_files = 'RxCocoa/**/*.{swift,h,m}', 'Platform/**/*.swift'
s.exclude_files = 'RxCocoa/Platform/**/*.swift', 'Platform/AtomicInt.swift'

s.dependency 'RxSwift', '6.7.1'
s.dependency 'RxRelay', '6.7.1'
s.dependency 'RxSwift', '6.8.0'
s.dependency 'RxRelay', '6.8.0'

s.resource_bundles = {
'RxCocoa_Privacy' => ['Sources/RxCocoa/PrivacyInfo.xcprivacy'],
}

s.swift_version = '5.1'

Expand Down
2 changes: 1 addition & 1 deletion RxCocoa/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>6.7.1</string>
<string>6.8.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
8 changes: 6 additions & 2 deletions RxRelay.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "RxRelay"
s.version = "6.7.1"
s.version = "6.8.0"
s.summary = "Relays for RxSwift - PublishRelay, BehaviorRelay and ReplayRelay"
s.description = <<-DESC
Relays for RxSwift - PublishRelay, BehaviorRelay and ReplayRelay
Expand All @@ -24,7 +24,11 @@ Relays for RxSwift - PublishRelay, BehaviorRelay and ReplayRelay

s.source_files = 'RxRelay/**/*.{swift,h,m}'

s.dependency 'RxSwift', '6.7.1'
s.resource_bundles = {
'RxRelay_Privacy' => ['Sources/RxRelay/PrivacyInfo.xcprivacy'],
}

s.dependency 'RxSwift', '6.8.0'
s.swift_version = '5.1'

s.pod_target_xcconfig = { 'APPLICATION_EXTENSION_API_ONLY' => 'YES' }
Expand Down
2 changes: 1 addition & 1 deletion RxRelay/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>6.7.1</string>
<string>6.8.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
6 changes: 5 additions & 1 deletion RxSwift.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "RxSwift"
s.version = "6.7.1"
s.version = "6.8.0"
s.summary = "RxSwift is a Swift implementation of Reactive Extensions"
s.description = <<-DESC
This is a Swift port of [ReactiveX.io](https://github.com/ReactiveX)
Expand Down Expand Up @@ -35,6 +35,10 @@ gitDiff().grep("bug").less // sequences of swift objects
s.source_files = 'RxSwift/**/*.swift', 'Platform/**/*.swift'
s.exclude_files = 'RxSwift/Platform/**/*.swift'

s.resource_bundles = {
'RxSwift_Privacy' => ['Sources/RxSwift/PrivacyInfo.xcprivacy'],
}

s.swift_version = '5.1'

s.pod_target_xcconfig = { 'APPLICATION_EXTENSION_API_ONLY' => 'YES' }
Expand Down
2 changes: 1 addition & 1 deletion RxSwift/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>6.7.1</string>
<string>6.8.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
8 changes: 6 additions & 2 deletions RxTest.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "RxTest"
s.version = "6.7.1"
s.version = "6.8.0"
s.summary = "RxSwift Testing extensions"
s.description = <<-DESC
Unit testing extensions for RxSwift. This library contains mock schedulers, observables, and observers
Expand Down Expand Up @@ -56,7 +56,11 @@ func testMap() {

s.weak_framework = 'XCTest'

s.dependency 'RxSwift', '6.7.1'
s.resource_bundles = {
'RxTest_Privacy' => ['Sources/RxTest/PrivacyInfo.xcprivacy'],
}

s.dependency 'RxSwift', '6.8.0'
s.swift_version = '5.1'

s.pod_target_xcconfig = {
Expand Down
2 changes: 1 addition & 1 deletion RxTest/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>6.7.1</string>
<string>6.8.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
14 changes: 14 additions & 0 deletions Sources/RxCocoa/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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>
<false/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyTrackingDomains</key>
<array/>
</dict>
</plist>
14 changes: 14 additions & 0 deletions Sources/RxCocoaRuntime/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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>
<false/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyTrackingDomains</key>
<array/>
</dict>
</plist>
14 changes: 14 additions & 0 deletions Sources/RxRelay/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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>
<false/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyTrackingDomains</key>
<array/>
</dict>
</plist>
14 changes: 14 additions & 0 deletions Sources/RxSwift/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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>
<false/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyTrackingDomains</key>
<array/>
</dict>
</plist>
2 changes: 1 addition & 1 deletion scripts/package-spm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func packageRelativePath(_ paths: [String], targetDirName: String, excluded: [St
print("Checking " + targetPath)

for file in try fileManager.contentsOfDirectory(atPath: targetPath).sorted(by: { $0 < $1 }) {
if file != "include" && file != ".DS_Store" {
if file != "include" && file != ".DS_Store" && file != "PrivacyInfo.xcprivacy" {
print("Checking extension \(file)")
try checkExtension(file)

Expand Down

0 comments on commit 0e54768

Please sign in to comment.