pindo 4.7.2 → 4.7.3
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/client/aws3sclient.rb +2 -2
- data/lib/pindo/command/deploy/iap.rb +2 -4
- data/lib/pindo/command/dev/autoresign.rb +4 -4
- data/lib/pindo/command/pgyer/download.rb +2 -2
- data/lib/pindo/module/appstore/appstore_in_app_purchase.rb +239 -169
- data/lib/pindo/module/pgyer/pgyerhelper.rb +3 -1
- data/lib/pindo/module/xcode/xcodeappconfig.rb +3 -1
- data/lib/pindo/module/xcode/xcodebuildhelper.rb +40 -37
- data/lib/pindo/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c21050abb1c90a03a0692aac01e408ff0bbce3968b89677358bec75c1e903c7e
|
4
|
+
data.tar.gz: '0235831d8df25e4c7227a4980339a858aa8d271f72480ac6f9afc727d1898cae'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b2b2a2a3e7efdcfe0882510269d7bb8b10ab49a571c15f01f5a6538f64a909fd90b91d246d100b1f9883462adec0f25ae0fda3f5c8640cba235009bd94bbbe0
|
7
|
+
data.tar.gz: 2fa34d8dd3cc0f7c4d0ab76354b63a5bde85307990f33cb08fa7a8fc7654a0eff88b7a2faf882325ba61431ee6b211e3fccdffcca062fe9556b2344300e1fc87
|
@@ -150,11 +150,11 @@ module Pindo
|
|
150
150
|
def set_progress(index_num, total_num, char ='>' )
|
151
151
|
progress_str = sprintf("%.2f", 100.0 * index_num / total_num )
|
152
152
|
total_size = sprintf("%.2f", 1.00 * total_num / 1024 /1024 )
|
153
|
-
index =
|
153
|
+
index = 40.0 * index_num / total_num
|
154
154
|
|
155
155
|
# (char * (index/1).floor).ljust(100, ' ')
|
156
156
|
|
157
|
-
upload_message = "已上传:#{progress_str}\%【" + (char * (index/1).floor).ljust(
|
157
|
+
upload_message = "已上传:#{progress_str}\%【" + (char * (index/1).floor).ljust(40.0, '_') + "】Total: #{total_size} M"
|
158
158
|
@upload_message = upload_message
|
159
159
|
Funlog.instance.fancyinfo_update(upload_message)
|
160
160
|
# @spinner.reset
|
@@ -548,9 +548,8 @@ module Pindo
|
|
548
548
|
end
|
549
549
|
|
550
550
|
new_iap_items["in_app_purchase_type"] = in_app_purchase_type
|
551
|
-
new_iap_items["available_in_all_territories"] = true
|
552
551
|
new_iap_items["price"] = purchase_item["price"].to_s.strip
|
553
|
-
new_iap_items["price_tier"] = iap_consumable_tier_dict[new_iap_items["price"]]
|
552
|
+
new_iap_items["price_tier"] = iap_consumable_tier_dict[new_iap_items["price"].to_s]
|
554
553
|
|
555
554
|
if new_iap_items["price_tier"].nil?
|
556
555
|
raise "购买项价格错误 " + new_iap_items["product_id"] + " 价格 :" + purchase_item["price"]
|
@@ -569,7 +568,7 @@ module Pindo
|
|
569
568
|
new_iap_items["localization"]["en-US"]["description"] = purchase_item["description"].to_s.strip
|
570
569
|
if !new_iap_items["localization"]["en-US"]["description"].nil? && new_iap_items["localization"]["en-US"]["description"].length > 45
|
571
570
|
puts temp_product_id
|
572
|
-
raise Informative, "description 超出限定的45个字符 !!!"
|
571
|
+
raise Informative, "purchuse description 超出限定的45个字符 !!!"
|
573
572
|
end
|
574
573
|
|
575
574
|
new_iap_items["review_note"] = "username: " + iap_tester["email"] + " password: " + iap_tester["password"]
|
@@ -651,7 +650,6 @@ module Pindo
|
|
651
650
|
raise Informative, "product_id 超出限定的100个字符 !!!"
|
652
651
|
end
|
653
652
|
|
654
|
-
new_subs_item["available_in_all_territories"] = true
|
655
653
|
new_subs_item["family_sharable"] = false
|
656
654
|
new_subs_item["price"] = subs_item["price"].to_s.strip
|
657
655
|
new_subs_item["subscription_duration"] = subscription_duration_dict[subs_item["subscription_duration"]]
|
@@ -92,12 +92,12 @@ module Pindo
|
|
92
92
|
|
93
93
|
Pindo::Command::Deploy::Pullconfig::run(args_temp)
|
94
94
|
|
95
|
-
|
96
|
-
if @args_upload_flag
|
95
|
+
app_info_obj = nil
|
96
|
+
if @args_upload_flag
|
97
97
|
proj_name = @args_proj_name
|
98
|
-
|
98
|
+
app_info_obj = PgyerHelper.share_instace.prepare_upload(working_directory:Dir.pwd, proj_name:proj_name)
|
99
99
|
end
|
100
|
-
|
100
|
+
|
101
101
|
args_temp = []
|
102
102
|
if @args_adhoc_flag
|
103
103
|
args_temp << "--adhoc"
|
@@ -91,8 +91,8 @@ module Pindo
|
|
91
91
|
|
92
92
|
progress_str = sprintf("%.2f", 100.0 * index_num / total_num )
|
93
93
|
total_size = sprintf("%.2f", 1.00 * total_num / 1024 /1024 )
|
94
|
-
index =
|
95
|
-
download_message = "已下载:#{progress_str}\%【" + (char_in * (index/1).floor).ljust(
|
94
|
+
index = 40.0 * index_num / total_num
|
95
|
+
download_message = "已下载:#{progress_str}\%【" + (char_in * (index/1).floor).ljust(40.0, char_out) + "】Total: #{total_size} M"
|
96
96
|
Funlog.instance.fancyinfo_update(download_message)
|
97
97
|
|
98
98
|
}) do |file|
|