cocoapods-privacy 0.0.1 → 0.0.2
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: ec7d2af33c33d5ebc1458177863ea2d7fb8683f6c054d9fda992f15b2258650a
|
4
|
+
data.tar.gz: 720615e1ea47109825247569e164c658bda23c7850416a84ca5d8de2161faa58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea36b077a0ecc139dba6aaa652dde5cfc0489412036eae3474eb60c314f31bb9661807b07ebd9e87122714d6609ebeccaee6003d38f1a2dd9669901715cc1403
|
7
|
+
data.tar.gz: f3a41a58c76a4b3f5cd715d1a62d30ae14431310992b22a3e62d7ec0444f5163a8fc6032d11cfb678467b41ab58570ceef3083e57a215604ba26a8bfd7387d03
|
@@ -75,7 +75,7 @@ module PrivacyHunter
|
|
75
75
|
|
76
76
|
# 检查新数据和原先数据是否一致
|
77
77
|
if origin_privacy_data.strip == new_privacy_data.strip
|
78
|
-
puts "
|
78
|
+
puts "#{privacy_path} 数据一致,无需插入。"
|
79
79
|
else
|
80
80
|
unless origin_privacy_data.strip.empty?
|
81
81
|
# 删除 :NSPrivacyAccessedAPITypes 键
|
@@ -119,11 +119,10 @@ module PrivacyHunter
|
|
119
119
|
|
120
120
|
# 判断本地文件的最后修改时间是否与远端文件一致,如果一致则不进行下载
|
121
121
|
if File.exist?(local_file_path) && file_identical?(local_file_path, remote_file_time)
|
122
|
-
puts "本地文件与远端文件一致,无需下载。文件路径: #{local_file_path}"
|
123
122
|
else
|
124
123
|
# 使用 curl 下载文件
|
125
124
|
system("curl -o #{local_file_path} #{template_url}")
|
126
|
-
puts "
|
125
|
+
puts "隐私清单模版文件已更新到: #{local_file_path}"
|
127
126
|
|
128
127
|
# 同步远程文件时间到本地文件
|
129
128
|
syncFileTime?(local_file_path,remote_file_time)
|