pindo 5.1.4 → 5.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pindo/command/ios/debug.rb +6 -3
- data/lib/pindo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 784c81b063d5a5fca1f94febd12d8674b24e3e26325a1abab86e6a74505d33d2
|
4
|
+
data.tar.gz: e4004185edad7a6d23fcd3632677a3c06a5f0a45ccfc7f5153b3304415ba0ac8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57de768be191b670eddabcd3680ac3a75777a3c35a6b9c9de7643a4184860c21c0243846377d0b69f0ae066568d060fcf2b1fab28c608d50c792775940a21502
|
7
|
+
data.tar.gz: 9070353150db69072356a9e2d2539eb7f5038c2864fd38bcb36bd673189871e2c12cb21ae1f0b419389292b35a13f7712856d81de26d0a5b15e232debcc09d32
|
@@ -214,12 +214,15 @@ module Pindo
|
|
214
214
|
info_plist_dict = Xcodeproj::Plist.read_from_path(info_plist_path)
|
215
215
|
info_plist_dict["CFBundleURLTypes"] = info_plist_dict["CFBundleURLTypes"] || []
|
216
216
|
# info_plist_dict["CFBundleURLTypes"] 中不存在CFBundleURLName为bundleid的item
|
217
|
-
|
217
|
+
#bundle id去除. 特殊字符串,保留全小写
|
218
|
+
bundleid_scheme_valeu = bundleid_scheme_name.gsub(/[^\w\s]/, '').downcase
|
219
|
+
|
220
|
+
if !bundleid_scheme_name.nil? || bundleid_scheme_name.empty? || !info_plist_dict["CFBundleURLTypes"].any? { |item| item["CFBundleURLName"] == bundleid_scheme_valeu }
|
218
221
|
item0 = {}
|
219
222
|
item0["CFBundleTypeRole"] = "Editor"
|
220
|
-
item0["CFBundleURLName"] =
|
223
|
+
item0["CFBundleURLName"] = bundleid_scheme_valeu
|
221
224
|
item0["CFBundleURLSchemes"] = []
|
222
|
-
item0["CFBundleURLSchemes"] <<
|
225
|
+
item0["CFBundleURLSchemes"] << bundleid_scheme_valeu
|
223
226
|
info_plist_dict["CFBundleURLTypes"] << item0
|
224
227
|
end
|
225
228
|
Xcodeproj::Plist.write_to_path(info_plist_dict, info_plist_path)
|
data/lib/pindo/version.rb
CHANGED