fastlane-plugin-aws_s3 1.5.0 → 1.6.0

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: 36228aaa143a537f1ff1ca339a1f5ec2a64097d1
4
- data.tar.gz: 1b75bc3acd8afe2a4805a9570fb21422036e1cc4
3
+ metadata.gz: 5d977b937cc7060f4b57f9cf32b0b27b347bce5a
4
+ data.tar.gz: 8aaa4575eb1c388ea762f74f8a9e8207f248ac41
5
5
  SHA512:
6
- metadata.gz: 5521b2bba83fa6baeec1585e649d434c5626ce29587e5161f70b8487adfecf24dec4313a91d8b9c16a0c0ff330ac7c291ae71fde02eb141c98d934d0b1a989e1
7
- data.tar.gz: 722b6d042461c23410504fa064c2c4ea99cd45ab623f2d3904d089d7c20912b734e76d1d15c0db4a607a5dee88df01ea9e5a8fdd9104c29b549af87e7e6ef0f4
6
+ metadata.gz: b8fc79724b7fb26d1395c54b27f9f58e0e4c981e44fcfc9d8bbaaa7e67270426d4bcd90b5823c79f00efa964469884e6c4f5e13a3f02f5b5b4ad41b3b4536a07
7
+ data.tar.gz: e29b765248b814c56fdfc14c3896a7f525909a0dff8905f5970f9564d11e101a76a10bd66b3e818bb20ab1aed75a9a5ed1d40a4a98df903e30933ee851f8db95
data/README.md CHANGED
@@ -42,7 +42,7 @@ aws_s3(
42
42
 
43
43
  endpoint: 'https://s3-us-west-1.amazonaws.com', # Optional, for buckets that require a specific endpoint
44
44
  ipa: 'AppName.ipa', # Required (if not uploading an APK).
45
- dsym: 'AppName.app.dSYM.zip', # Optional is you use `ipa` to build.
45
+ dsym: 'AppName.app.dSYM.zip', # Optional if you use `ipa` to build.
46
46
 
47
47
  apk: 'AppName.apk', # Required (if not uploading an IPA).
48
48
 
@@ -11,6 +11,12 @@
11
11
  text-align: center;
12
12
  background-color: #f5f5f5;
13
13
  }
14
+ h1 {
15
+ margin-bottom: 0px;
16
+ }
17
+ h2 {
18
+ margin-top: 5px;
19
+ }
14
20
  .oneRow {
15
21
  width: 100%;
16
22
  overflow: auto;
@@ -50,6 +56,8 @@
50
56
  </style>
51
57
 
52
58
  <h1 style="text-align: center;"><%= title %></h1>
59
+ <h2><%= version_name %> (<%= version_code %>)</h2>
60
+ <p><em>Built on <%= Time.now.strftime('%a, %e %b %Y %H:%M %p') %></em></p>
53
61
  <!-- <img src="app_icon.png" id="appIcon"> -->
54
62
 
55
63
  <div class="oneRow">
@@ -57,8 +65,10 @@
57
65
  <a href="<%= apk_url %>" id="text" class="btn btn-lg btn-default" onclick="document.getElementById('finished').id = '';">
58
66
  Install <%= title %> <%= version_name %> (<%= version_code %>)
59
67
  </a>
60
- <br>
61
- <p>Built on <%= Time.now.strftime('%a, %e %b %Y %H:%M %p') %></p>
68
+ </span>
69
+
70
+ <span class="info">
71
+ <p><%= release_notes %></p>
62
72
  </span>
63
73
 
64
74
  <!-- <span class="download" id="android">
@@ -1,4 +1,7 @@
1
1
  {
2
2
  "latestVersion": "<%= full_version %>",
3
- "updateUrl": "<%= apk_url %>"
3
+ "updateUrl": "<%= apk_url %>",
4
+ "version_code": "<%= version_code %>",
5
+ "version_name": "<%= version_name %>",
6
+ "release_notes": "<%= release_notes %>"
4
7
  }
@@ -11,6 +11,12 @@
11
11
  text-align: center;
12
12
  background-color: #f5f5f5;
13
13
  }
14
+ h1 {
15
+ margin-bottom: 0px;
16
+ }
17
+ h2 {
18
+ margin-top: 5px;
19
+ }
14
20
  .oneRow {
15
21
  width: 100%;
16
22
  overflow: auto;
@@ -50,15 +56,20 @@
50
56
  </style>
51
57
 
52
58
  <h1 style="text-align: center;"><%= title %></h1>
59
+ <h2><%= bundle_version %> (<%= build_num %>)</h2>
60
+ <p><em>Built on <%= Time.now.strftime('%a, %e %b %Y %H:%M %p') %></em></p>
53
61
  <!-- <img src="app_icon.png" id="appIcon"> -->
54
62
 
55
63
  <div class="oneRow">
64
+
56
65
  <span class="download" id="ios">
57
66
  <a href="itms-services://?action=download-manifest&url=<%= url_encode(plist_url) %>" id="text" class="btn btn-lg btn-default" onclick="document.getElementById('finished').id = '';">
58
67
  Install <%= title %> <%= bundle_version %> (<%= build_num %>)
59
68
  </a>
60
- <br>
61
- <p>Built on <%= Time.now.strftime('%a, %e %b %Y %H:%M %p') %></p>
69
+ </span>
70
+
71
+ <span class="info">
72
+ <p><%= release_notes %></p>
62
73
  </span>
63
74
 
64
75
  <!-- <span class="download" id="android">
@@ -1,4 +1,9 @@
1
1
  {
2
2
  "latestVersion": "<%= full_version %>",
3
- "updateUrl": "itms-services://?action=download-manifest&url=<%= url_encode(plist_url) %>"
3
+ "updateUrl": "itms-services://?action=download-manifest&url=<%= url_encode(plist_url) %>",
4
+ "plist_url": "<%= plist_url %>",
5
+ "ipa_url": "<%= ipa_url %>",
6
+ "build_number": "<%= build_num %>",
7
+ "bundle_version": "<%= bundle_version %>",
8
+ "release_notes": "<%= release_notes %>"
4
9
  }
@@ -29,6 +29,7 @@ module Fastlane
29
29
  params[:ipa] = config[:ipa]
30
30
  params[:xcarchive] = config[:xcarchive]
31
31
  params[:dsym] = config[:dsym]
32
+ params[:release_notes] = config[:release_notes]
32
33
  params[:access_key] = config[:access_key]
33
34
  params[:secret_access_key] = config[:secret_access_key]
34
35
  params[:aws_profile] = config[:aws_profile]
@@ -64,6 +65,7 @@ module Fastlane
64
65
  s3_endpoint = params[:endpoint]
65
66
  apk_file = params[:apk]
66
67
  ipa_file = params[:ipa]
68
+ release_notes = params[:release_notes]
67
69
  xcarchive_file = params[:xcarchive]
68
70
  files = params[:files]
69
71
  folder = params[:folder]
@@ -101,8 +103,8 @@ module Fastlane
101
103
  xcarchive_file = Actions.lane_context[SharedValues::XCODEBUILD_ARCHIVE]
102
104
  end
103
105
 
104
- upload_ipa(s3_client, params, s3_region, s3_access_key, s3_secret_access_key, s3_bucket, ipa_file, dsym_file, s3_path, acl, server_side_encryption) if ipa_file.to_s.length > 0
105
- upload_apk(s3_client, params, s3_region, s3_access_key, s3_secret_access_key, s3_bucket, apk_file, s3_path, acl, server_side_encryption) if apk_file.to_s.length > 0
106
+ upload_ipa(s3_client, params, s3_region, s3_access_key, s3_secret_access_key, s3_bucket, ipa_file, dsym_file, release_notes, s3_path, acl, server_side_encryption) if ipa_file.to_s.length > 0
107
+ upload_apk(s3_client, params, s3_region, s3_access_key, s3_secret_access_key, s3_bucket, apk_file, release_notes, s3_path, acl, server_side_encryption) if apk_file.to_s.length > 0
106
108
  upload_xcarchive(s3_client, params, s3_region, s3_access_key, s3_secret_access_key, s3_bucket, ipa_file, xcarchive_file, s3_path, acl, server_side_encryption) if xcarchive_file.to_s.length > 0
107
109
  upload_files(s3_client, params, s3_region, s3_access_key, s3_secret_access_key, s3_bucket, files, s3_path, acl, server_side_encryption) if files.to_a.count > 0
108
110
  upload_folder(s3_client, params, s3_region, s3_access_key, s3_secret_access_key, s3_bucket, folder, s3_path, acl, server_side_encryption) if folder.to_s.length > 0
@@ -110,7 +112,7 @@ module Fastlane
110
112
  return true
111
113
  end
112
114
 
113
- def self.upload_ipa(s3_client, params, s3_region, s3_access_key, s3_secret_access_key, s3_bucket, ipa_file, dsym_file, s3_path, acl, server_side_encryption)
115
+ def self.upload_ipa(s3_client, params, s3_region, s3_access_key, s3_secret_access_key, s3_bucket, ipa_file, dsym_file, release_notes, s3_path, acl, server_side_encryption)
114
116
 
115
117
  s3_path = "v{CFBundleShortVersionString}_b{CFBundleVersion}/" unless s3_path
116
118
 
@@ -220,7 +222,8 @@ module Fastlane
220
222
  build_num: build_num,
221
223
  bundle_id: bundle_id,
222
224
  bundle_version: bundle_version,
223
- title: title
225
+ title: title,
226
+ release_notes: release_notes
224
227
  }.merge(html_template_params))
225
228
 
226
229
  # Creates version from template
@@ -235,7 +238,8 @@ module Fastlane
235
238
  ipa_url: ipa_url,
236
239
  build_num: build_num,
237
240
  bundle_version: bundle_version,
238
- full_version: full_version
241
+ full_version: full_version,
242
+ release_notes: release_notes
239
243
  }.merge(version_template_params))
240
244
 
241
245
  #####################################
@@ -288,7 +292,7 @@ module Fastlane
288
292
  UI.success("Successfully uploaded archive file to '#{Actions.lane_context[SharedValues::S3_XCARCHIVE_OUTPUT_PATH]}'")
289
293
  end
290
294
 
291
- def self.upload_apk(s3_client, params, s3_region, s3_access_key, s3_secret_access_key, s3_bucket, apk_file, s3_path, acl, server_side_encryption)
295
+ def self.upload_apk(s3_client, params, s3_region, s3_access_key, s3_secret_access_key, s3_bucket, apk_file, release_notes, s3_path, acl, server_side_encryption)
292
296
  version = get_apk_version(apk_file)
293
297
 
294
298
  version_code = version[0]
@@ -347,7 +351,8 @@ module Fastlane
347
351
  apk_url: apk_url,
348
352
  version_code: version_code,
349
353
  version_name: version_name,
350
- title: title
354
+ title: title,
355
+ release_notes: release_notes
351
356
  }.merge(html_template_params))
352
357
 
353
358
  # Creates version from template
@@ -360,7 +365,8 @@ module Fastlane
360
365
  apk_url: apk_url,
361
366
  version_code: version_code,
362
367
  version_name: version_name,
363
- full_version: "#{version_code}_#{version_name}"
368
+ full_version: "#{version_code}_#{version_name}",
369
+ release_notes: release_notes
364
370
  }.merge(version_template_params))
365
371
 
366
372
  #####################################
@@ -571,6 +577,10 @@ module Fastlane
571
577
  description: "zipped .dsym package for the build ",
572
578
  optional: true,
573
579
  default_value: Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH]),
580
+ FastlaneCore::ConfigItem.new(key: :release_notes,
581
+ env_name: "",
582
+ description: "release notes to display on the html page and version json",
583
+ optional: true),
574
584
  FastlaneCore::ConfigItem.new(key: :upload_metadata,
575
585
  env_name: "",
576
586
  description: "Upload relevant metadata for this build",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AwsS3
3
- VERSION = "1.5.0"
3
+ VERSION = "1.6.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-aws_s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Holtz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-22 00:00:00.000000000 Z
11
+ date: 2019-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk