fastlane-plugin-appcenter 1.10.0 → 1.11.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: 63dc35fc59b2bd98c82d21b139557a0ce06fbdd137367391435cee95d119045d
4
- data.tar.gz: 2aa31b4b0d0091f35a0953c89ddbe69bfc0ca6d4b05193a3654455ff1bdd27b3
3
+ metadata.gz: 1c1262b958ae0ddbf9a6bfa6d63b4f032f1518c706154e6c70b35adbe2c441e2
4
+ data.tar.gz: c2ffa81d7a6e4c8fb369c5d4612a0aea7c02c2cd589a3fdcb900d8b407f2eaae
5
5
  SHA512:
6
- metadata.gz: aa2bf15c7177cbaaa9108e1d151e82a3f145467359765caa064e1d11462554de7b018263ccf023805dab4afe52d138aa055f9657af2ab8d3e91e01149807cb2e
7
- data.tar.gz: 1089271e589573573bf89a528ab0c97f562cf2ba3136276dcdf52fc2806f7229af9128b9c16419c011a88d1bb1fb11aa556131107d381de2141e99f98bc076d8
6
+ metadata.gz: eb06867a95f13d484796bd47be5cad11df03e949ffffbcbf8cbe14d675c8577506e184176248ba8102fc338ab934e9d03e06938030591d9d9a72beec557f7894
7
+ data.tar.gz: b1fadb157505f3138621dffd8e95a64d306f89439ab25259c60c6a9e08d9a9dbe97d0b09b4c1daf8db70e2c9241d87225523784cb3f9c5e900c98d3a85b0b05f
data/README.md CHANGED
@@ -122,6 +122,7 @@ Here is the list of all existing parameters:
122
122
  | `version` <br/> `APPCENTER_DISTRIBUTE_VERSION` | The build version, required for .pkg, .dmg, .zip and .msi builds, as well as Android ProGuard `mapping.txt` when using `upload_mapping_only` |
123
123
  | `timeout` <br/> `APPCENTER_DISTRIBUTE_TIMEOUT` | Request timeout in seconds applied to individual HTTP requests. Some commands use multiple HTTP requests, large file uploads are also split in multiple HTTP requests |
124
124
  | `dsa_signature` <br/> `APPCENTER_DISTRIBUTE_DSA_SIGNATURE` | DSA signature of the macOS or Windows release for Sparkle update feed |
125
+ | `ed_signature` <br/> `APPCENTER_DISTRIBUTE_ED_SIGNATURE` | EdDSA signature of the macOS or Windows release for Sparkle update feed |
125
126
  | `strict` <br/> `APPCENTER_STRICT_MODE` | Strict mode, set to 'true' to fail early in case a potential error was detected |
126
127
 
127
128
  #### `appcenter_fetch_version_number`
@@ -143,6 +143,7 @@ module Fastlane
143
143
  build_number = params[:build_number]
144
144
  version = params[:version]
145
145
  dsa_signature = params[:dsa_signature]
146
+ ed_signature = params[:ed_signature]
146
147
 
147
148
  if release_notes.length >= Constants::MAX_RELEASE_NOTES_LENGTH
148
149
  unless should_clip
@@ -230,7 +231,7 @@ module Fastlane
230
231
  UI.message("Release '#{release_id}' committed: #{release_url}")
231
232
 
232
233
  release = Helper::AppcenterHelper.update_release(api_token, owner_name, app_name, release_id, release_notes)
233
- Helper::AppcenterHelper.update_release_metadata(api_token, owner_name, app_name, release_id, dsa_signature)
234
+ Helper::AppcenterHelper.update_release_metadata(api_token, owner_name, app_name, release_id, dsa_signature, ed_signature)
234
235
 
235
236
  destinations_array = []
236
237
  if destinations == '*'
@@ -643,7 +644,13 @@ module Fastlane
643
644
  description: "DSA signature of the macOS or Windows release for Sparkle update feed",
644
645
  optional: true,
645
646
  type: String),
646
-
647
+
648
+ FastlaneCore::ConfigItem.new(key: :ed_signature,
649
+ env_name: "APPCENTER_DISTRIBUTE_ED_SIGNATURE",
650
+ description: "EdDSA signature of the macOS or Windows release for Sparkle update feed",
651
+ optional: true,
652
+ type: String),
653
+
647
654
  FastlaneCore::ConfigItem.new(key: :strict,
648
655
  env_name: "APPCENTER_STRICT_MODE",
649
656
  description: "Strict mode, set to 'true' to fail early in case a potential error was detected",
@@ -546,15 +546,20 @@ module Fastlane
546
546
  end
547
547
 
548
548
  # updates release metadata
549
- def self.update_release_metadata(api_token, owner_name, app_name, release_id, dsa_signature)
550
- return if dsa_signature.to_s == ''
549
+ def self.update_release_metadata(api_token, owner_name, app_name, release_id, dsa_signature = '', ed_signature = '')
550
+ return if dsa_signature.to_s == '' && ed_signature.to_s == ''
551
551
 
552
552
  url = "v0.1/apps/#{owner_name}/#{app_name}/releases/#{release_id}"
553
553
  body = {
554
- metadata: {
555
- dsa_signature: dsa_signature
556
- }
554
+ metadata: {}
557
555
  }
556
+
557
+ if dsa_signature.to_s != ''
558
+ body[:metadata]["dsa_signature"] = dsa_signature
559
+ end
560
+ if ed_signature.to_s != ''
561
+ body[:metadata]["ed_signature"] = ed_signature
562
+ end
558
563
 
559
564
  UI.message("DEBUG: PATCH #{url}") if ENV['DEBUG']
560
565
  UI.message("DEBUG: PATCH body #{JSON.pretty_generate(body)}\n") if ENV['DEBUG']
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Appcenter
3
- VERSION = "1.10.0"
3
+ VERSION = "1.11.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.10.0
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-05 00:00:00.000000000 Z
11
+ date: 2020-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,8 +122,8 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- description:
126
- email:
125
+ description:
126
+ email:
127
127
  executables: []
128
128
  extensions: []
129
129
  extra_rdoc_files: []
@@ -140,7 +140,7 @@ homepage: https://github.com/microsoft/fastlane-plugin-appcenter
140
140
  licenses:
141
141
  - MIT
142
142
  metadata: {}
143
- post_install_message:
143
+ post_install_message:
144
144
  rdoc_options: []
145
145
  require_paths:
146
146
  - lib
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  requirements: []
158
158
  rubygems_version: 3.0.3
159
- signing_key:
159
+ signing_key:
160
160
  specification_version: 4
161
161
  summary: Fastlane plugin for App Center
162
162
  test_files: []