fastlane-plugin-appcenter 1.7.0 → 1.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0cf08880b9ba588e79b23dd385311f4d5a194246
4
- data.tar.gz: fe26549362f32bbd22293bc8110e432a7a94118a
2
+ SHA256:
3
+ metadata.gz: ba75670e59a7a2ba066a788088aeb05d96991bcc1ab693633bb0fca27fc821c5
4
+ data.tar.gz: b11523450e225a2ec2b596d0a4db135cf1dd1a5acefd4a0a0bc0136cf42c8917
5
5
  SHA512:
6
- metadata.gz: 6ffd559816032b4c385ead27b89419541746a106e63713aeef51282d1a74950dd27eaff4d1daf59db58ccfd33a3d4efa9f3a1f9ffbefc836ed82af2d7579dcf4
7
- data.tar.gz: 80b0cb6d8016fa35400e0ae7c1e7d1dfd9ac2e07cc3b6a96decb26917bf6c5988ab9a7f2fb407e4ee96e8303cd716dd6fc020785f6a2aa06f8167681f7d18e6f
6
+ metadata.gz: ffd5e3de2a289e28e264a679fb286bb25ecc830a8c36d15c0d044291bc891f9eb17e76e8e4ea76682bf84b19c18db86d475c20b6cdab5f223fd85d7e207b8d85
7
+ data.tar.gz: d8c07796377fb096fa566c35435e208d22de2dbd3bac1e5901fbff0b432ea7a7ecfdf77b60a5726ff30a87865062602544bd4f0f980c5a96dead0dd1d825855f
@@ -145,6 +145,7 @@ module Fastlane
145
145
  self.optional_error("Can't distribute #{file_ext} to groups, please use `destination_type: 'store'`") if Constants::STORE_ONLY_EXTENSIONS.include? file_ext
146
146
  else
147
147
  self.optional_error("Can't distribute #{file_ext} to stores, please use `destination_type: 'group'`") unless Constants::STORE_SUPPORTED_EXTENSIONS.include? file_ext
148
+ UI.user_error!("The combination of `destinations: '*'` and `destination_type: 'store'` is invalid, please use `destination_type: 'group'` or explicitly specify the destinations") if destinations == "*"
148
149
  end
149
150
 
150
151
  release_upload_body = nil
@@ -191,7 +192,22 @@ module Fastlane
191
192
  release = Helper::AppcenterHelper.update_release(api_token, owner_name, app_name, release_id, release_notes)
192
193
  Helper::AppcenterHelper.update_release_metadata(api_token, owner_name, app_name, release_id, dsa_signature)
193
194
 
194
- destinations_array = destinations.split(',')
195
+ destinations_array = []
196
+ if destinations == '*'
197
+ UI.message("Looking up all distribution groups for #{owner_name}/#{app_name}")
198
+ distribution_groups = Helper::AppcenterHelper.fetch_distribution_groups(
199
+ api_token: api_token,
200
+ owner_name: owner_name,
201
+ app_name: app_name
202
+ )
203
+
204
+ UI.abort_with_message!("Failed to list distribution groups for #{owner_name}/#{app_name}") unless distribution_groups
205
+
206
+ destinations_array = distribution_groups.map {|h| h['name'] }
207
+ else
208
+ destinations_array = destinations.split(',').map(&:strip)
209
+ end
210
+
195
211
  destinations_array.each do |destination_name|
196
212
  destination = Helper::AppcenterHelper.get_destination(api_token, owner_name, app_name, destination_type, destination_name)
197
213
  if destination
@@ -424,7 +440,7 @@ module Fastlane
424
440
  self.optional_error("Extension not supported: '#{file_ext}'. Supported formats for platform '#{platform}': #{accepted_formats.join ' '}") unless accepted_formats.include? file_ext
425
441
  end
426
442
  end),
427
-
443
+
428
444
  FastlaneCore::ConfigItem.new(key: :upload_build_only,
429
445
  env_name: "APPCENTER_DISTRIBUTE_UPLOAD_BUILD_ONLY",
430
446
  description: "Flag to upload only the build to App Center. Skips uploading symbols or mapping",
@@ -460,6 +476,7 @@ module Fastlane
460
476
  FastlaneCore::ConfigItem.new(key: :mapping,
461
477
  env_name: "APPCENTER_DISTRIBUTE_ANDROID_MAPPING",
462
478
  description: "Path to your Android mapping.txt",
479
+ default_value: (defined? SharedValues::GRADLE_MAPPING_TXT_OUTPUT_PATH) && Actions.lane_context[SharedValues::GRADLE_MAPPING_TXT_OUTPUT_PATH] || nil,
463
480
  optional: true,
464
481
  type: String,
465
482
  verify_block: proc do |value|
@@ -489,12 +506,11 @@ module Fastlane
489
506
 
490
507
  FastlaneCore::ConfigItem.new(key: :destinations,
491
508
  env_name: "APPCENTER_DISTRIBUTE_DESTINATIONS",
492
- description: "Comma separated list of destination names. Both distribution groups and stores are supported. All names are required to be of the same destination type",
509
+ description: "Comma separated list of destination names, use '*' for all distribution groups if destination type is 'group'. Both distribution groups and stores are supported. All names are required to be of the same destination type",
493
510
  default_value: Actions.lane_context[SharedValues::APPCENTER_DISTRIBUTE_DESTINATIONS] || "Collaborators",
494
511
  optional: true,
495
512
  type: String),
496
513
 
497
-
498
514
  FastlaneCore::ConfigItem.new(key: :destination_type,
499
515
  env_name: "APPCENTER_DISTRIBUTE_DESTINATION_TYPE",
500
516
  description: "Destination type of distribution destination. 'group' and 'store' are supported",
@@ -608,6 +624,16 @@ module Fastlane
608
624
  release_notes: "release notes",
609
625
  notify_testers: false
610
626
  )',
627
+ 'appcenter_upload(
628
+ api_token: "...",
629
+ owner_name: "appcenter_owner",
630
+ app_name: "testing_ios_app",
631
+ file: "./app-release.ipa",
632
+ destinations: "*",
633
+ destination_type: "group",
634
+ release_notes: "release notes",
635
+ notify_testers: false
636
+ )',
611
637
  'appcenter_upload(
612
638
  api_token: "...",
613
639
  owner_name: "appcenter_owner",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Appcenter
3
- VERSION = "1.7.0"
3
+ VERSION = "1.7.1"
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.7.0
4
+ version: 1.7.1
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-11-15 00:00:00.000000000 Z
11
+ date: 2019-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: 0.77.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: 0.77.0
111
111
  description:
112
112
  email:
113
113
  executables: []
@@ -140,8 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubyforge_project:
144
- rubygems_version: 2.5.2.3
143
+ rubygems_version: 3.0.4
145
144
  signing_key:
146
145
  specification_version: 4
147
146
  summary: Fastlane plugin for App Center