fastlane-plugin-appcenter 2.1.0 → 2.1.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
2
  SHA256:
3
- metadata.gz: 678941e5b3f03b4d5b89d3ad1491342314a996fbb97e65a543f61709f142f426
4
- data.tar.gz: dafeebaabaa42d5e20df0226680714f413e8cdd9a830c2fb987981c622ecece4
3
+ metadata.gz: 404a5a724bd71f78a4e18b16208fb960f4d1c6bdc30eeba699158b811fd86d09
4
+ data.tar.gz: aa973dd28335221712ee40159b7133cf10e4e865b95f87a3d0d96057d4dbc924
5
5
  SHA512:
6
- metadata.gz: 012b6080ce993cb77e8ed11c517e525ded5f684b37cbd8852adefc7dea0eeacbcdb5be86284874e26f431df5772c698aab771dca1a33fc67a3767b7d86bdf757
7
- data.tar.gz: f89842ee90dccf84f3bb4cf63036967a9684f5f1df195d9c771f055879c4be79e994020e5af4eaac4cc3a8a0ff2bf10d67d4280d887eacdbd0a2c7cebf9cfba4
6
+ metadata.gz: 4686223db2d015a7de084dda5e87012374f788f280d98fdfd977e99b664388bbf38b256418b7a0f1fb6cefadec8133b221b01510fa6ada6bae6ac859cd778127
7
+ data.tar.gz: 133e589903a76545c852bc1c18b7ce51664882edce0f2d8bbb3048bac51af764280a7a0124947878f63df525063ed39e87e9b4e542bc63e68092e12c6a89dbe4
@@ -30,6 +30,9 @@ module Fastlane
30
30
  private_key_path = params[:private_key_path]
31
31
  dry_run = params[:dry_run]
32
32
  use_local_appcenter_cli = params[:use_local_appcenter_cli]
33
+ plist_file = params[:plist_file]
34
+ xcode_project_file = params[:xcode_project_file]
35
+ use_hermes = params[:use_hermes]
33
36
 
34
37
  base_executable = "appcenter "
35
38
 
@@ -66,6 +69,15 @@ module Fastlane
66
69
  if private_key_path
67
70
  command += "--private-key-path #{private_key_path} "
68
71
  end
72
+ if plist_file
73
+ command += "--plist-file #{plist_file} "
74
+ end
75
+ if xcode_project_file
76
+ command += "--xcode-project-file #{xcode_project_file} "
77
+ end
78
+ unless use_hermes.nil?
79
+ command += "--use-hermes #{use_hermes} "
80
+ end
69
81
  if dry_run
70
82
  UI.message("Dry run!".red + " Would have run: " + command + "\n")
71
83
  else
@@ -163,11 +175,26 @@ module Fastlane
163
175
  optional: true,
164
176
  default_value: false,
165
177
  description: "When true, the appcenter cli installed in the project directory is used"),
178
+ FastlaneCore::ConfigItem.new(key: :plist_file,
179
+ type: String,
180
+ env_name: "APPCENTER_CODEPUSH_PLIST_FILE",
181
+ optional: true,
182
+ description: "Path to the Info.plist"),
183
+ FastlaneCore::ConfigItem.new(key: :xcode_project_file,
184
+ type: String,
185
+ env_name: "APPCENTER_CODEPUSH_XCODE_PROJECT_FILE",
186
+ optional: true,
187
+ description: "Path to the .pbxproj file"),
166
188
  FastlaneCore::ConfigItem.new(key: :private_key_path,
167
189
  type: String,
168
190
  env_name: "APPCENTER_CODEPUSH_PRIVATE_KEY_PATH",
169
191
  optional: true,
170
- description: "Path to private key that will be used for signing bundles")
192
+ description: "Path to private key that will be used for signing bundles"),
193
+ FastlaneCore::ConfigItem.new(key: :use_hermes,
194
+ type: Boolean,
195
+ env_name: "APPCENTER_CODEPUSH_USE_HERMES",
196
+ optional: true,
197
+ description: "Enable hermes and bypass automatic checks")
171
198
  ]
172
199
  end
173
200
 
@@ -297,7 +297,7 @@ module Fastlane
297
297
  return true
298
298
  end
299
299
  rescue URI::InvalidURIError
300
- UI.user_error!("Provided app_name: '#{app_name}' is not in a valid format. Please ensure no special characters or spaces in the app_name.")
300
+ UI.user_error!("Provided owner_name: '#{owner_name}' or app_name: '#{app_name}' is not in a valid format. Please ensure no special characters or spaces.")
301
301
  return false
302
302
  end
303
303
 
@@ -327,6 +327,11 @@ module Fastlane
327
327
  app_name: params[:app_name]
328
328
  )
329
329
 
330
+ unless app_distribution_groups.is_a?(Array)
331
+ UI.error("Failed to fetch distribution groups for app #{params[:app_name]}.")
332
+ return
333
+ end
334
+
330
335
  group_names = app_distribution_groups.map { |g| g['name'] }
331
336
  destination_names = params[:destinations].split(',').map(&:strip)
332
337
 
@@ -421,6 +421,7 @@ module Fastlane
421
421
  end
422
422
  end
423
423
  UI.message("Binary uploaded")
424
+ return true
424
425
  end
425
426
 
426
427
  # Commits or aborts the upload process for a release
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Appcenter
3
- VERSION = "2.1.0"
3
+ VERSION = "2.1.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: 2.1.0
4
+ version: 2.1.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: 2023-04-05 00:00:00.000000000 Z
11
+ date: 2023-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler