fastlane-plugin-appcenter 1.1.1 → 1.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06e7a06872ade9ba49e022055caf5c18fa698d159d9f5e3102e0c61c18374567
4
- data.tar.gz: 17b67894cd163488506eed9556fe86e1acb5b189159abf2d0eb04374979f873a
3
+ metadata.gz: 8f03c8b53084297de33c2bcb363b99cfa061ff39b520218cc24b3aacad66379d
4
+ data.tar.gz: dcc802439612aa8e5633c28cbcf07028451eb2a45b19af861ff131f496e7c497
5
5
  SHA512:
6
- metadata.gz: ea821be78f87c8bfe5385d5f93743f7638c242e762891d4d1b28a637eb1fcfef8241920c76ee5815944c194d3e67e15003638111a88a0bd85a7f67cb92a1a31b
7
- data.tar.gz: 4e3509ff456f6eaaa5aa14ab88f24411945821edde533475cea4cac42291b12e995798e6b276ad0543ff202c2d845cfb0005f304ae4e6928b40bc28d808fb8d1
6
+ metadata.gz: 89e1f6fb32f02d0fa27ea141c5fea764f89e183ce4808e57318a47fa350ebb499c96ceef0a3e9428726c669342516f1cd37a2886f2a3ef246f1ec5388517adf4
7
+ data.tar.gz: e4fefc6d7da3c9e021bb81a2dd0705fecbc0ddd8a0cbe17816b2e289c5dda430d6f5bc4775c9ae3d8e73a232bea8fdb13a665bbabdf79287083bc54642c7c86e
data/README.md CHANGED
@@ -35,6 +35,7 @@ The action parameters `api_token` and `owner_name` can also be omitted when thei
35
35
  - `APPCENTER_OWNER_NAME` - Owner name
36
36
  - `APPCENTER_APP_NAME` - App name. If there is no app with such name, you will be prompted to create one
37
37
  - `APPCENTER_DISTRIBUTE_APK` - Build release path for android build
38
+ - `APPCENTER_DISTRIBUTE_AAB` - Build release path for android app bundle build (preview)
38
39
  - `APPCENTER_DISTRIBUTE_IPA` - Build release path for ios build
39
40
  - `APPCENTER_DISTRIBUTE_DSYM` - Path to your symbols (app.dSYM.zip) file
40
41
  - `APPCENTER_DISTRIBUTE_UPLOAD_DSYM_ONLY` - Flag to upload only the dSYM file to App Center
@@ -118,7 +118,8 @@ module Fastlane
118
118
 
119
119
  file = [
120
120
  params[:ipa],
121
- params[:apk]
121
+ params[:apk],
122
+ params[:aab]
122
123
  ].detect { |e| !e.to_s.empty? }
123
124
 
124
125
  UI.user_error!("Couldn't find build file at path '#{file}'") unless file && File.exist?(file)
@@ -275,7 +276,7 @@ module Fastlane
275
276
  default_value: Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH],
276
277
  optional: true,
277
278
  type: String,
278
- conflicting_options: [:ipa],
279
+ conflicting_options: [:ipa, :aab],
279
280
  conflict_block: proc do |value|
280
281
  UI.user_error!("You can't use 'apk' and '#{value.key}' options in one run")
281
282
  end,
@@ -284,13 +285,28 @@ module Fastlane
284
285
  UI.user_error!("Only \".apk\" formats are allowed, you provided \"#{File.extname(value)}\"") unless accepted_formats.include? File.extname(value)
285
286
  end),
286
287
 
288
+ FastlaneCore::ConfigItem.new(key: :aab,
289
+ env_name: "APPCENTER_DISTRIBUTE_AAB",
290
+ description: "Build release path for android app bundle build (preview)",
291
+ default_value: Actions.lane_context[SharedValues::GRADLE_AAB_OUTPUT_PATH],
292
+ optional: true,
293
+ type: String,
294
+ conflicting_options: [:ipa, :apk],
295
+ conflict_block: proc do |value|
296
+ UI.user_error!("You can't use 'aab' and '#{value.key}' options in one run")
297
+ end,
298
+ verify_block: proc do |value|
299
+ accepted_formats = [".aab"]
300
+ UI.user_error!("Only \".aab\" formats are allowed, you provided \"#{File.extname(value)}\"") unless accepted_formats.include? File.extname(value)
301
+ end),
302
+
287
303
  FastlaneCore::ConfigItem.new(key: :ipa,
288
304
  env_name: "APPCENTER_DISTRIBUTE_IPA",
289
305
  description: "Build release path for ios build",
290
306
  default_value: Actions.lane_context[SharedValues::IPA_OUTPUT_PATH],
291
307
  optional: true,
292
308
  type: String,
293
- conflicting_options: [:apk],
309
+ conflicting_options: [:apk, :aab],
294
310
  conflict_block: proc do |value|
295
311
  UI.user_error!("You can't use 'ipa' and '#{value.key}' options in one run")
296
312
  end,
@@ -458,6 +474,19 @@ module Fastlane
458
474
  dsym: "./app.dSYM.zip",
459
475
  release_notes: "release notes",
460
476
  notify_testers: false
477
+ )',
478
+ 'appcenter_upload(
479
+ api_token: "...",
480
+ owner_name: "appcenter_owner",
481
+ app_name: "testing_app",
482
+ aab: "./app.aab",
483
+ destinations: "Alpha",
484
+ destination_type: "store",
485
+ build_number: "3",
486
+ version: "1.0.0",
487
+ mapping: "./mapping.txt",
488
+ release_notes: "release notes",
489
+ notify_testers: false
461
490
  )'
462
491
  ]
463
492
  end
@@ -184,7 +184,7 @@ module Fastlane
184
184
 
185
185
  options = {}
186
186
  options[:upload_id] = upload_id
187
- # ipa field is used both for .apk and .ipa files
187
+ # ipa field is used for .apk, .aab and .ipa files
188
188
  options[:ipa] = Faraday::UploadIO.new(file, 'application/octet-stream') if file && File.exist?(file)
189
189
 
190
190
  response = connection.post do |req|
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Appcenter
3
- VERSION = "1.1.1"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-appcenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-09 00:00:00.000000000 Z
11
+ date: 2019-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler