pindo 4.7.3 → 4.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pindo/command/deploy/itcapp.rb +2 -2
- data/lib/pindo/module/appstore/appstore_in_app_purchase.rb +22 -24
- data/lib/pindo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df037923380f2b620207356880503d0999f322ff1567b91f851cab7e16a5c3d5
|
4
|
+
data.tar.gz: cfe5b3f9a2968750ed4e78bf0d3127a74bbd20c53a703ae74606394fc0433ab2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f05b640b14b6f4d7de61e8b359b0350a15b5b48dd63f39ef71e6f8287d62f8350eaac767b5935241af9b8df8d9b2482329b33f31cca4b9911c96114b9f27528
|
7
|
+
data.tar.gz: d2fe50e1eb3cd860248c05e746d307e9a8ca554225f9134788fa7ab3aed3b4f2470a7610bf3048c5f82ff5e2a4930d046cb6ca4888f1b34fcccaf5fcd8b3c0f6
|
@@ -92,9 +92,9 @@ module Pindo
|
|
92
92
|
temp_version = @config_json["app_info"]["app_version"]
|
93
93
|
end
|
94
94
|
|
95
|
-
if @com_name.nil? &&
|
95
|
+
if (@com_name.nil? || @com_name.empty?) && !@config_json.nil? && !@config_json["account_info"].nil? && !@config_json["account_info"]["acount_company_name"].nil?
|
96
96
|
@com_name = @config_json["account_info"]["acount_company_name"].strip
|
97
|
-
end
|
97
|
+
end
|
98
98
|
|
99
99
|
app = nil
|
100
100
|
if !temp_bundle_id.nil?
|
@@ -378,16 +378,13 @@ module Pindo
|
|
378
378
|
include: 'territory',
|
379
379
|
filter: {
|
380
380
|
territory: 'USA',
|
381
|
-
price_tier: purchase_item["price_tier"]
|
382
381
|
},
|
383
|
-
limit:
|
382
|
+
limit:800
|
384
383
|
)
|
385
384
|
# puts JSON.pretty_generate(respose_price)
|
386
385
|
|
387
|
-
|
388
386
|
price_id = nil
|
389
387
|
|
390
|
-
|
391
388
|
respose_price[:data].each do |price_item|
|
392
389
|
if price_item[:attributes][:customer_price].to_s.eql?(purchase_item["price"].to_s)
|
393
390
|
price_id = price_item[:id]
|
@@ -395,8 +392,9 @@ module Pindo
|
|
395
392
|
puts " 更新价格 :" + purchase_item["price"] +"$"
|
396
393
|
end
|
397
394
|
end
|
395
|
+
|
398
396
|
if !price_id.nil?
|
399
|
-
|
397
|
+
purchase_response = appstore_client.create_in_app_purchase_price_schedule(
|
400
398
|
relationships: {
|
401
399
|
manual_prices: {
|
402
400
|
data: [
|
@@ -411,32 +409,32 @@ module Pindo
|
|
411
409
|
type: 'inAppPurchases',
|
412
410
|
id: in_app_purchase_id
|
413
411
|
}
|
412
|
+
},
|
413
|
+
baseTerritory: {
|
414
|
+
data: {
|
415
|
+
type: 'territories',
|
416
|
+
id: 'USA'
|
417
|
+
}
|
414
418
|
}
|
415
419
|
},
|
416
420
|
included: [
|
417
421
|
{
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
},
|
423
|
-
relationships: {
|
424
|
-
inAppPurchaseV2: {
|
425
|
-
data: {
|
426
|
-
type: 'inAppPurchases',
|
427
|
-
id: in_app_purchase_id
|
428
|
-
}
|
422
|
+
type: 'inAppPurchasePrices',
|
423
|
+
id: '${price1}',
|
424
|
+
attributes: {
|
425
|
+
startDate: nil
|
429
426
|
},
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
427
|
+
relationships: {
|
428
|
+
inAppPurchasePricePoint: {
|
429
|
+
data: {
|
430
|
+
type: 'inAppPurchasePricePoints',
|
431
|
+
id: price_id
|
432
|
+
}
|
433
|
+
}
|
435
434
|
}
|
436
435
|
}
|
437
|
-
|
438
|
-
|
439
|
-
)
|
436
|
+
])
|
437
|
+
# puts JSON.pretty_generate(purchase_response)
|
440
438
|
end
|
441
439
|
|
442
440
|
rescue => err
|
data/lib/pindo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pindo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.7.
|
4
|
+
version: 4.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|