cocoapods-privacy 0.0.1 → 0.0.3
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: 2dd33a12851ad8910f340c85839e7110e567c04ee2531b8cdb29042a53c16fcc
|
4
|
+
data.tar.gz: 2867496cf2297f46178f88eaba4f1a85531a8dcbd1ea3f95c3d033a89908710f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6601692be2b397a4bbdd8680448799de88a80680be198403849b4453821327f9b017a667f1b5d9606d4ed4d24ca1fd49f1e8a93c767a42a36225932d4d4da09
|
7
|
+
data.tar.gz: f03fae4e472d36e6ef2ab02c962a4be841af1c219335de250d01fb8e66292389394f4640e43c52497abc8948b343adb3e3cf86823362417f933af59efe8ed411
|
@@ -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)
|