fastlane 2.69.0.beta.20171204010003 → 2.69.0.beta.20171205010003

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
  SHA1:
3
- metadata.gz: 7293fa783ae911eb628cbbe58e8f8ba664533a09
4
- data.tar.gz: a5c7504d5c99e734e75fad415f8ee9b7bbfcaa19
3
+ metadata.gz: b03e2f9c11fdcde5531d97cf0083fe1b01aab953
4
+ data.tar.gz: 948146daac281de6b6f315e1d4b81e0a7ecadd6e
5
5
  SHA512:
6
- metadata.gz: e78b78cc808c053fa7bd11fdb77eac6c129f9ebe573a01bc1e8991caccba9c96ae8e099ba2aed61ac5ed5ded23e9cc1f68e79d02127ba0b45dcbba5126861a74
7
- data.tar.gz: c6c066d90709db530c0b27185171c296d6bf1c2dff1aa1eab6447f9efa7eaa14ab99da78377aebbc49b17148c4181da9ed7881afec33dc09f8e6c6a41e78c305
6
+ metadata.gz: 3322e536ea10336b9c7d8809ca94d9597a2003093a17b62d494d6161fae6f3847f9355cd767da0eba32f04d58061482bb006387b0d15c1d7d4461ac19975db67
7
+ data.tar.gz: 8766855b6161e939bb1e06c6d1d9b3676b71e30c61cf6840a719e6e076443ed32a01a4eb632424e94f96db210af9b6e6f047746399179269da9e3f99cecbac49
@@ -195,7 +195,7 @@ module Fastlane
195
195
  versionNumber: "9.1",
196
196
  deviceName: "iPhone 6"
197
197
  },
198
- appium_lib {
198
+ appium_lib: {
199
199
  wait: 10
200
200
  }
201
201
  )'
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.69.0.beta.20171204010003'.freeze
2
+ VERSION = '2.69.0.beta.20171205010003'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
@@ -135,7 +135,10 @@ module Gym
135
135
  hash = normalize_export_options(Gym.config[:export_options])
136
136
  else
137
137
  # Reads options from file
138
- hash = Plist.parse_xml(Gym.config[:export_options])
138
+ plist_file_path = Gym.config[:export_options]
139
+ UI.user_error!("Couldn't find plist file at path #{File.expand_path(plist_file_path)}") unless File.exist?(plist_file_path)
140
+ hash = Plist.parse_xml(plist_file_path)
141
+ UI.user_error!("Couldn't read provided plist at path #{File.expand_path(plist_file_path)}") if hash.nil?
139
142
  # Convert keys to symbols
140
143
  hash = keys_to_symbols(hash)
141
144
  end
@@ -170,7 +173,7 @@ module Gym
170
173
  # xcodebuild will not use provisioning profiles
171
174
  # if we don't specify signingStyle as manual
172
175
  if Helper.xcode_at_least?("9.0") && hash[:provisioningProfiles]
173
- hash[:signingStyle] = signing_style
176
+ hash[:signingStyle] = 'manual'
174
177
  end
175
178
 
176
179
  hash[:teamID] = Gym.config[:export_team_id] if Gym.config[:export_team_id]
@@ -191,8 +191,8 @@ module Spaceship
191
191
  # Certificate.factory(attrs)
192
192
  # #=> #<PushCertificate ... >
193
193
  #
194
- def factory(attrs)
195
- self.new(attrs)
194
+ def factory(attrs, existing_client = nil)
195
+ self.new(attrs, existing_client)
196
196
  end
197
197
  end
198
198
 
@@ -210,12 +210,12 @@ module Spaceship
210
210
  # attributes that are defined by `attr_mapping`
211
211
  #
212
212
  # Do not override `initialize` in your own models.
213
- def initialize(attrs = {})
213
+ def initialize(attrs = {}, existing_client = nil)
214
214
  attrs.each do |key, val|
215
215
  self.send("#{key}=", val) if respond_to?("#{key}=")
216
216
  end
217
217
  self.raw_data = DataHash.new(attrs)
218
- @client = self.class.client
218
+ @client = existing_client || self.class.client
219
219
  self.setup
220
220
  end
221
221
 
@@ -81,7 +81,7 @@ module Spaceship
81
81
  }
82
82
  end
83
83
 
84
- raw_data.set(["versions"], [{ reviewNotes: { value: @review_notes }, contentHosting: raw_data['versions'].first['contentHosting'], "details" => { "value" => new_versions }, "id" => raw_data["versions"].first["id"] }])
84
+ raw_data.set(["versions"], [{ reviewNotes: { value: @review_notes }, "contentHosting" => raw_data['versions'].first['contentHosting'], "details" => { "value" => new_versions }, "id" => raw_data["versions"].first["id"], "reviewScreenshot" => { "value" => review_screenshot } }])
85
85
  end
86
86
 
87
87
  # transforms user-set intervals to iTC ones
@@ -133,6 +133,12 @@ module Spaceship
133
133
  Tunes::IAPStatus.get_from_string(raw_data["versions"].first["status"])
134
134
  end
135
135
 
136
+ # @return (Hash) Hash containing existing review screenshot data
137
+ def review_screenshot
138
+ return nil unless raw_data && raw_data["versions"] && raw_data["versions"].first && raw_data["versions"].first["reviewScreenshot"] && raw_data['versions'].first["reviewScreenshot"]["value"]
139
+ raw_data['versions'].first['reviewScreenshot']['value']
140
+ end
141
+
136
142
  # Saves the current In-App-Purchase
137
143
  def save!
138
144
  # Transform localization versions back to original format.
@@ -147,7 +153,7 @@ module Spaceship
147
153
  }
148
154
  end
149
155
 
150
- raw_data.set(["versions"], [{ reviewNotes: { value: @review_notes }, contentHosting: raw_data['versions'].first[:contentHosting], "details" => { "value" => versions_array }, id: raw_data["versions"].first["id"] }])
156
+ raw_data.set(["versions"], [{ reviewNotes: { value: @review_notes }, contentHosting: raw_data['versions'].first['contentHosting'], "details" => { "value" => versions_array }, id: raw_data["versions"].first["id"], reviewScreenshot: { "value" => review_screenshot } }])
151
157
 
152
158
  # transform pricingDetails
153
159
  intervals_array = []
@@ -753,7 +753,7 @@ module Spaceship
753
753
  # so we cache it
754
754
  # @return [UserDetail] the response
755
755
  def user_detail_data
756
- @_cached_user_detail_data ||= Spaceship::Tunes::UserDetail.factory(user_details_data)
756
+ @_cached_user_detail_data ||= Spaceship::Tunes::UserDetail.factory(user_details_data, self)
757
757
  end
758
758
 
759
759
  #####################################################
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.69.0.beta.20171204010003
4
+ version: 2.69.0.beta.20171205010003
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-12-04 00:00:00.000000000 Z
18
+ date: 2017-12-05 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier