deliver 0.12.0 → 0.12.1
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/README.md +16 -3
- data/lib/assets/DeliverLanguageMapping.json +31 -11
- data/lib/deliver/app.rb +1 -1
- data/lib/deliver/app_metadata.rb +13 -7
- data/lib/deliver/deliver_process.rb +1 -0
- data/lib/deliver/itunes_connect/itunes_connect_submission.rb +3 -3
- data/lib/deliver/testflight.rb +1 -1
- data/lib/deliver/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e108e3caa9516e89362f501f31194a5a0f6a78f5
|
4
|
+
data.tar.gz: 846af397201b2846f64c3cbb0857cf8e10ebdc47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7b2bdfcb42843c29d02aef79334de2ad4578ea79d115edb59b2f2f7003df575c7318ec9d521e18b794b37d53f4e3938cf2e8c7509bc688f7d8d91cf0215622d
|
7
|
+
data.tar.gz: 6f6a4a9702e8d7339718082b7a142ac7b708fd5ea0484bdeb3201daf728f06a832058c1631b884fe05b1621e95d611dbf5842405bd0990fb850b9ff2df66d53e
|
data/README.md
CHANGED
@@ -84,7 +84,7 @@ To upload a new build to Apple `TestFlight` use the following command:
|
|
84
84
|
deliver testflight
|
85
85
|
```
|
86
86
|
|
87
|
-
This will
|
87
|
+
This will automatically look for an ipa file in the current directory.
|
88
88
|
|
89
89
|
`deliver` currently supports **Internal Testers** only.
|
90
90
|
|
@@ -170,6 +170,8 @@ To let the computer create the screenshots for you, checkout [this section of th
|
|
170
170
|
|
171
171
|
If you want to have the screenshots inside a device frame, with a background and a fancy label on top, you can use [Sketch to App Store](http://sketchtoappstore.com/).
|
172
172
|
|
173
|
+
To download all existing screenshots, use `deliver download_screenshots`.
|
174
|
+
|
173
175
|
#### Update App description, keywords and more
|
174
176
|
|
175
177
|
If you used `deliver init`, take a look at the `./metadata/` folder, which contains your app description, keywords and app title. If you change the content of the files, it will get updated when you run `deliver`.
|
@@ -285,7 +287,7 @@ app.itc.submit_for_review!(app)
|
|
285
287
|
|
286
288
|
FastlaneCore::ItunesSearchApi.fetch_by_identifier("net.sunapps.15") # => Fetches public metadata
|
287
289
|
```
|
288
|
-
This project is well documented, check it out on [
|
290
|
+
This project is well documented, check it out on [RubyDoc](http://www.rubydoc.info/github/KrauseFx/deliver/frames).
|
289
291
|
|
290
292
|
|
291
293
|
# Credentials
|
@@ -336,7 +338,18 @@ If you want to integrate ```deliver``` with ```snapshot```, check out [fastlane]
|
|
336
338
|
More information about ```snapshot``` can be found on the [Snapshot GitHub page](https://github.com/KrauseFx/snapshot).
|
337
339
|
|
338
340
|
## Jenkins integration
|
339
|
-
Detailed instructions about how to set up `deliver` and `fastlane` in `Jenkins` can be found in the [fastlane README](https://github.com/KrauseFx/fastlane
|
341
|
+
Detailed instructions about how to set up `deliver` and `fastlane` in `Jenkins` can be found in the [fastlane README](https://github.com/KrauseFx/fastlane/blob/master/docs/Jenkins.md).
|
342
|
+
|
343
|
+
## Firewall Issues
|
344
|
+
|
345
|
+
`deliver` uses the iTunes Transporter to upload metadata and binaries. In case you are behind a firewall, you can specify a different transporter protocoll using
|
346
|
+
|
347
|
+
```
|
348
|
+
DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS="-t DAV" deliver
|
349
|
+
```
|
350
|
+
|
351
|
+
## Limit
|
352
|
+
Apple has a limit of 150 binary uploads per day.
|
340
353
|
|
341
354
|
## Editing the ```Deliverfile```
|
342
355
|
Change syntax highlighting to *Ruby*.
|
@@ -25,20 +25,32 @@
|
|
25
25
|
{
|
26
26
|
"locale": "en-AU",
|
27
27
|
"name": "Australian English",
|
28
|
-
"game-center": false
|
29
|
-
|
28
|
+
"game-center": false
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"locale": "en-AU",
|
32
|
+
"name": "English_Australian",
|
33
|
+
"game-center": false
|
30
34
|
},
|
31
35
|
{
|
32
36
|
"locale": "en-CA",
|
33
37
|
"name": "Canadian English",
|
34
|
-
"game-center": false
|
35
|
-
|
38
|
+
"game-center": false
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"locale": "en-CA",
|
42
|
+
"name": "English_CA",
|
43
|
+
"game-center": false
|
36
44
|
},
|
37
45
|
{
|
38
46
|
"locale": "en-GB",
|
39
47
|
"name": "UK English",
|
40
|
-
"game-center": true
|
41
|
-
|
48
|
+
"game-center": true
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"locale": "en-GB",
|
52
|
+
"name": "English_UK",
|
53
|
+
"game-center": true
|
42
54
|
},
|
43
55
|
{
|
44
56
|
"locale": "en-US",
|
@@ -54,8 +66,12 @@
|
|
54
66
|
{
|
55
67
|
"locale": "fr-CA",
|
56
68
|
"name": "Canadian French",
|
57
|
-
"game-center": false
|
58
|
-
|
69
|
+
"game-center": false
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"locale": "fr-CA",
|
73
|
+
"name": "French_CA",
|
74
|
+
"game-center": false
|
59
75
|
},
|
60
76
|
{
|
61
77
|
"locale": "fr-FR",
|
@@ -131,8 +147,12 @@
|
|
131
147
|
{
|
132
148
|
"locale": "es-MX",
|
133
149
|
"name": "Mexican Spanish",
|
134
|
-
"game-center": false
|
135
|
-
|
150
|
+
"game-center": false
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"locale": "es-MX",
|
154
|
+
"name": "Spanish_MX",
|
155
|
+
"game-center": false
|
136
156
|
},
|
137
157
|
{
|
138
158
|
"locale": "es-ES",
|
@@ -164,4 +184,4 @@
|
|
164
184
|
"game-center": true,
|
165
185
|
"alternatives": ["vi"]
|
166
186
|
}
|
167
|
-
]
|
187
|
+
]
|
data/lib/deliver/app.rb
CHANGED
@@ -32,7 +32,7 @@ module Deliver
|
|
32
32
|
# @param app_identifier If you don't pass this, it will automatically be fetched from the Apple API
|
33
33
|
# which means it takes longer. If you **can** pass the app_identifier (e.g. com.facebook.Facebook) do it
|
34
34
|
def initialize(apple_id: nil, app_identifier: nil)
|
35
|
-
self.apple_id =
|
35
|
+
self.apple_id = apple_id.to_s.gsub('id', '').to_i
|
36
36
|
self.app_identifier = app_identifier
|
37
37
|
|
38
38
|
if apple_id and not app_identifier
|
data/lib/deliver/app_metadata.rb
CHANGED
@@ -145,14 +145,20 @@ module Deliver
|
|
145
145
|
# as keys.
|
146
146
|
# @raise (AppMetadataParameterError) Is thrown when don't pass a correct hash with correct language codes.
|
147
147
|
def update_changelog(hash)
|
148
|
+
update_metadata_key(:version_whats_new, hash)
|
149
|
+
|
150
|
+
|
151
|
+
# The code below doesn't work when the app
|
152
|
+
# is not in the US App Store
|
153
|
+
# https://github.com/KrauseFx/deliver/issues/236#issuecomment-111016436
|
148
154
|
# check if we're allowed to do that
|
149
|
-
if FastlaneCore::ItunesSearchApi.fetch(@app.apple_id)
|
150
|
-
|
151
|
-
|
152
|
-
else
|
153
|
-
|
154
|
-
|
155
|
-
end
|
155
|
+
# if FastlaneCore::ItunesSearchApi.fetch(@app.apple_id)
|
156
|
+
# # App is already in the store
|
157
|
+
# update_metadata_key(:version_whats_new, hash)
|
158
|
+
# else
|
159
|
+
# # App is not in the store, skipping changelog for now
|
160
|
+
# Helper.log.info "It seems like this it the initial release of your app, which can't contain a changelog. Skipping the changelog for now.".yellow
|
161
|
+
# end
|
156
162
|
end
|
157
163
|
|
158
164
|
# Updates the Marketing URL
|
@@ -109,6 +109,7 @@ module Deliver
|
|
109
109
|
@app_identifier ||= (@ipa.fetch_app_identifier rescue nil) # since ipa might be nil
|
110
110
|
|
111
111
|
@app_version ||= @deploy_information[Deliverer::ValKey::APP_VERSION]
|
112
|
+
@app_version ||= ENV["DELIVER_VERSION"]
|
112
113
|
@app_version ||= (@ipa.fetch_app_version rescue nil) # since ipa might be nil
|
113
114
|
@app_version ||= (app.get_live_version rescue nil) # pull the latest version from iTunes Connect
|
114
115
|
end
|
@@ -73,9 +73,9 @@ module Deliver
|
|
73
73
|
Helper.log.info "DELIVER_BETA_FEEDBACK_EMAIL: '#{ENV['DELIVER_BETA_FEEDBACK_EMAIL']}'"
|
74
74
|
|
75
75
|
build_info['details'].each_with_index do |hash, index|
|
76
|
-
build_info['details'][
|
77
|
-
build_info['details'][index]['description']['value']
|
78
|
-
build_info['details'][index]['feedbackEmail']['value']
|
76
|
+
build_info['details'][index]['whatsNew']['value'] = ENV["DELIVER_WHAT_TO_TEST"]
|
77
|
+
build_info['details'][index]['description']['value'] ||= ENV["DELIVER_BETA_DESCRIPTION"]
|
78
|
+
build_info['details'][index]['feedbackEmail']['value'] ||= ENV["DELIVER_BETA_FEEDBACK_EMAIL"]
|
79
79
|
end
|
80
80
|
|
81
81
|
h = Excon.post(build_url, body: build_info.to_json, headers: { "Cookie" => cookie_string } )
|
data/lib/deliver/testflight.rb
CHANGED
@@ -17,7 +17,7 @@ module Deliver
|
|
17
17
|
|
18
18
|
Helper.log.info "Ready to upload new build to TestFlight (#{app_identifier} - #{app_id})".green
|
19
19
|
|
20
|
-
# Got everything to
|
20
|
+
# Got everything to ready to deploy
|
21
21
|
app = App.new(app_identifier: app_identifier, apple_id: app_id)
|
22
22
|
ipa = IpaUploader.new(app, '/tmp/', ipa_path, strategy)
|
23
23
|
result = ipa.upload!
|
data/lib/deliver/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deliver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
@@ -215,11 +215,15 @@ executables:
|
|
215
215
|
extensions: []
|
216
216
|
extra_rdoc_files: []
|
217
217
|
files:
|
218
|
+
- LICENSE
|
219
|
+
- README.md
|
220
|
+
- bin/deliver
|
221
|
+
- lib/assets/DeliverLanguageMapping.json
|
218
222
|
- lib/assets/DeliverfileDefault
|
219
223
|
- lib/assets/DeliverfileExample
|
220
|
-
- lib/assets/DeliverLanguageMapping.json
|
221
224
|
- lib/assets/ScreenshotsHelp
|
222
225
|
- lib/assets/summary.html.erb
|
226
|
+
- lib/deliver.rb
|
223
227
|
- lib/deliver/app.rb
|
224
228
|
- lib/deliver/app_metadata.rb
|
225
229
|
- lib/deliver/app_metadata_screenshots.rb
|
@@ -249,10 +253,6 @@ files:
|
|
249
253
|
- lib/deliver/metadata_item.rb
|
250
254
|
- lib/deliver/testflight.rb
|
251
255
|
- lib/deliver/version.rb
|
252
|
-
- lib/deliver.rb
|
253
|
-
- bin/deliver
|
254
|
-
- README.md
|
255
|
-
- LICENSE
|
256
256
|
homepage: https://fastlane.tools
|
257
257
|
licenses:
|
258
258
|
- MIT
|
@@ -273,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
273
273
|
version: '0'
|
274
274
|
requirements: []
|
275
275
|
rubyforge_project:
|
276
|
-
rubygems_version: 2.
|
276
|
+
rubygems_version: 2.4.7
|
277
277
|
signing_key:
|
278
278
|
specification_version: 4
|
279
279
|
summary: Upload screenshots, metadata and your app to the App Store using a single
|