fastlane-plugin-appcenter 2.0.0 → 2.1.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
  SHA256:
3
- metadata.gz: 7d5bec07c7933960b0bfdb0bba55430e4d72a248266b5f9c6b19f2ff9faae1b8
4
- data.tar.gz: c6419bab9a2cd682f16cfe08beba4c34d65e994b07b4daca7e8db685c3d9160b
3
+ metadata.gz: 678941e5b3f03b4d5b89d3ad1491342314a996fbb97e65a543f61709f142f426
4
+ data.tar.gz: dafeebaabaa42d5e20df0226680714f413e8cdd9a830c2fb987981c622ecece4
5
5
  SHA512:
6
- metadata.gz: 14c273eb0477916f7c67a00ddd07b89c4422deed716eb5b84c767df206eae11e1e51b727981ec1b7b0106ec4daba2dcf5983cd37ce011fff2f7fb2eebcaa60d2
7
- data.tar.gz: 4771c6ef66b34209e9b61986d685cc3f82cd0fa30de705e8164e85f81f13a33c2645795f139abd6e6616de46eb6ebd953353b24f662f12dd094bcd7b2d699e32
6
+ metadata.gz: 012b6080ce993cb77e8ed11c517e525ded5f684b37cbd8852adefc7dea0eeacbcdb5be86284874e26f431df5772c698aab771dca1a33fc67a3767b7d86bdf757
7
+ data.tar.gz: f89842ee90dccf84f3bb4cf63036967a9684f5f1df195d9c771f055879c4be79e994020e5af4eaac4cc3a8a0ff2bf10d67d4280d887eacdbd0a2c7cebf9cfba4
data/README.md CHANGED
@@ -162,6 +162,7 @@ Here is the list of all existing parameters:
162
162
  | `output_dir` <br/> `APPCENTER_CODEPUSH_OUTPUT` | Specifies path to where the bundle and sourcemap should be written |
163
163
  | `sourcemap_output` <br/> `APPCENTER_CODEPUSH_SOURCEMAP_OUTPUT` | Specifies path to write sourcemaps to |
164
164
  | `development` <br/> `APPCENTER_CODEPUH_DEVELOPMENT` | Specifies whether to generate dev or release build (default: `false`) |
165
+ | `private_key_path` <br/> `APPCENTER_CODEPUSH_PRIVATE_KEY_PATH` | Specifies path to private key that will be used for signing bundles" |
165
166
 
166
167
  ## Example
167
168
 
@@ -27,9 +27,18 @@ module Fastlane
27
27
  bundle = params[:bundle_name]
28
28
  output = params[:output_dir]
29
29
  sourcemap_output = params[:sourcemap_output]
30
+ private_key_path = params[:private_key_path]
30
31
  dry_run = params[:dry_run]
32
+ use_local_appcenter_cli = params[:use_local_appcenter_cli]
33
+
34
+ base_executable = "appcenter "
35
+
36
+ if use_local_appcenter_cli
37
+ base_executable = "npm exec " + base_executable
38
+ end
39
+
40
+ command = base_executable + "codepush release-react --token #{token} --app #{owner}/#{app} --deployment-name #{deployment} --development #{dev} "
31
41
 
32
- command = "appcenter codepush release-react --token #{token} --app #{owner}/#{app} --deployment-name #{deployment} --development #{dev} "
33
42
  if description
34
43
  command += "--description \"#{description}\" "
35
44
  end
@@ -54,6 +63,9 @@ module Fastlane
54
63
  if sourcemap_output
55
64
  command += "--sourcemap-output #{sourcemap_output} "
56
65
  end
66
+ if private_key_path
67
+ command += "--private-key-path #{private_key_path} "
68
+ end
57
69
  if dry_run
58
70
  UI.message("Dry run!".red + " Would have run: " + command + "\n")
59
71
  else
@@ -144,7 +156,18 @@ module Fastlane
144
156
  env_name: "APPCENTER_CODEPUSH_DEVELOPMENT",
145
157
  optional: true,
146
158
  default_value: false,
147
- description: "Specifies whether to generate a dev build")
159
+ description: "Specifies whether to generate a dev build"),
160
+ FastlaneCore::ConfigItem.new(key: :use_local_appcenter_cli,
161
+ type: Boolean,
162
+ env_name: "APPCENTER_CODEPUSH_USE_LOCAL_APPCENTER_CLI",
163
+ optional: true,
164
+ default_value: false,
165
+ description: "When true, the appcenter cli installed in the project directory is used"),
166
+ FastlaneCore::ConfigItem.new(key: :private_key_path,
167
+ type: String,
168
+ env_name: "APPCENTER_CODEPUSH_PRIVATE_KEY_PATH",
169
+ optional: true,
170
+ description: "Path to private key that will be used for signing bundles")
148
171
  ]
149
172
  end
150
173
 
@@ -11,7 +11,7 @@ module Fastlane
11
11
  }
12
12
  CONTENT_TYPES = {
13
13
  apk: "application/vnd.android.package-archive",
14
- aab: "application/vnd.android.package-archive",
14
+ aab: "application/x-authorware-bin",
15
15
  msi: "application/x-msi",
16
16
  plist: "application/xml",
17
17
  aetx: "application/c-x509-ca-cert",
@@ -379,7 +379,7 @@ module Fastlane
379
379
  req.options.timeout = timeout
380
380
  req.headers['internal-request-source'] = "fastlane"
381
381
  req.headers['Content-Length'] = chunk.length.to_s
382
- req.headers['Content-Type'] = 'application/octet-stream'
382
+ req.headers['Content-Type'] = content_type
383
383
  req.body = chunk
384
384
  end
385
385
  UI.message("DEBUG: #{response.status} #{JSON.pretty_generate(response.body)}\n") if ENV['DEBUG']
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Appcenter
3
- VERSION = "2.0.0"
3
+ VERSION = "2.1.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: 2.0.0
4
+ version: 2.1.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: 2022-01-14 00:00:00.000000000 Z
11
+ date: 2023-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
158
  requirements: []
159
- rubygems_version: 3.1.2
159
+ rubygems_version: 3.3.26
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Fastlane plugin for App Center