cocoapods-privacy 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 160e1e50e0b10ceb9008703a37b624861e89e48aa7626ba69db17d5958f57d11
|
4
|
+
data.tar.gz: 4d2f9bc6b15442f8759f22d3609716349281a2c33460bbfd55433d04362ae2a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 040723e52f2c23ee4fbfe2f33469194faf9d48c6d6af0cc8aa901966ad15e89830e97f9e227a05565c2e988776bef53ab3ae8d789aacc860bb2bed6a365c441a
|
7
|
+
data.tar.gz: 3d239ca8ed9639bf88647ab5fb6802e55bfe011fa61417a26325806ca91b4f1dd5e9dc0ee4dffdd37f08c7803326f7401018d939067ed746a2745fb5c79686e4
|
data/README.md
CHANGED
@@ -4,8 +4,9 @@ Apple 2024 will review the App's privacy list in the spring, and any apps that d
|
|
4
4
|
[Click to view details on Apple](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files)
|
5
5
|
|
6
6
|
## Installation
|
7
|
-
|
8
|
-
|
7
|
+
```
|
8
|
+
$ gem install cocoapods-privacy
|
9
|
+
```
|
9
10
|
|
10
11
|
## Usage
|
11
12
|
#### init
|
@@ -26,7 +27,7 @@ There has 3 keys in defalut config, you should custom it!
|
|
26
27
|
|
27
28
|
#### To Component
|
28
29
|
```
|
29
|
-
|
30
|
+
$ pod privacy spec [podspec_file_path]
|
30
31
|
```
|
31
32
|
This command will auto create privacy file, and search the path of podspec' source_files' define relate to NSPrivacyAccessedAPITypes, finaly, write to PrivacyInfo.xcprivacy file.
|
32
33
|
if your component has much subspec, all subspec that define ‘source_files’ will create PrivacyInfo.xcprivacy, and auto modify .podspec link .xcprivacy to 'resource_bundle' key.
|
@@ -68,9 +69,9 @@ end
|
|
68
69
|
|
69
70
|
#### To Project
|
70
71
|
```
|
71
|
-
|
72
|
-
|
73
|
-
|
72
|
+
$ pod install --privacy
|
73
|
+
or
|
74
|
+
$ pod privacy install
|
74
75
|
```
|
75
76
|
<img width="298" alt="截屏2024-02-02 10 59 59" src="https://github.com/ymoyao/cocoapods-privacy/assets/13619221/c6f10e36-0f62-497a-93d4-f8b336dc8df4">
|
76
77
|
|
@@ -98,8 +98,12 @@ module Pod
|
|
98
98
|
podspec_fold_path = File.dirname(podspec_file_path)
|
99
99
|
source_files = spec.attributes_hash['source_files']
|
100
100
|
if source_files && !source_files.empty?
|
101
|
-
source_files.
|
102
|
-
development_folds << File.join(podspec_fold_path,
|
101
|
+
if source_files.is_a?(String) && !source_files.empty?
|
102
|
+
development_folds << File.join(podspec_fold_path,source_files)
|
103
|
+
elsif source_files.is_a?(Array)
|
104
|
+
source_files.each do |file|
|
105
|
+
development_folds << File.join(podspec_fold_path,file)
|
106
|
+
end
|
103
107
|
end
|
104
108
|
end
|
105
109
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-privacy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- youhui
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|