fastlane-plugin-cordova 2.0.0 → 2.1.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
  SHA1:
3
- metadata.gz: b5b2458d8d510b739b9c972d12c42e5cd3f54639
4
- data.tar.gz: 3e8e159db5d56b803107684ec86c3eb6e2fe1c4d
3
+ metadata.gz: 74c0ead2545b310f8626b27d51d0a4c88885261b
4
+ data.tar.gz: e493fdb86bd7063b0bf70333eaf2dfe9dc82fca9
5
5
  SHA512:
6
- metadata.gz: 3cecb5a0af264f126416a023005dd2361b66bc26fdce87bdb84caad30747993f41ae25b1d1aec88a715337b713bca6e3ea6028ac5b0b5635c2033e0ead83327e
7
- data.tar.gz: 0b30240650e59f05a54d3e4060975fb54758bd0f9e5920e5d14995815fad2a2721b0e98e7b4551aa8d773bd4c0d8c934988d79b5d1cfe94c2c07aa7b023becfe
6
+ metadata.gz: bd74bc4682c6d7a1eb0538e8a8c971ac766656e9a05c5742129b3c4ad2cbb422cba5d287180b715250142dde119d1dcd25547f454601e3bd15f959fa38cf4351
7
+ data.tar.gz: bcfc63a31f86e64ad648bb1701b781b292fb105b0a5631b151d4405af8d3d451a571ac90430a551311892fb429bf4dd666ceab3b9385a0526f7857da4819d69c
data/README.md CHANGED
@@ -79,6 +79,7 @@ Which will produce:
79
79
  | **device** | Build for device | CORDOVA_DEVICE | *true* |
80
80
  | **type** | This will determine what type of build is generated by Xcode. <br>Valid options are development, enterprise, adhoc, and appstore| CORDOVA_IOS_PACKAGE_TYPE | appstore |
81
81
  | **team_id** | The development team (Team ID) to use for code signing | CORDOVA_IOS_TEAM_ID | *28323HT* |
82
+ | **build_flag** | An array of Xcode buildFlag. Will be appended on compile command. | CORDOVA_IOS_BUILD_FLAG | [] |
82
83
  | **provisioning_profile** | GUID of the provisioning profile to be used for signing | CORDOVA_IOS_PROVISIONING_PROFILE | |
83
84
  | **keystore_path** | Path to the Keystore for Android | CORDOVA_ANDROID_KEYSTORE_PATH | |
84
85
  | **keystore_password** | Android Keystore password | CORDOVA_ANDROID_KEYSTORE_PASSWORD | |
@@ -20,14 +20,24 @@ module Fastlane
20
20
  type: 'packageType',
21
21
  team_id: 'developmentTeam',
22
22
  provisioning_profile: 'provisioningProfile',
23
+ build_flag: 'buildFlag'
23
24
  }
24
25
 
25
26
  def self.get_platform_args(params, args_map)
26
27
  platform_args = []
27
28
  args_map.each do |action_key, cli_param|
28
29
  param_value = params[action_key]
29
- unless param_value.to_s.empty?
30
- platform_args << "--#{cli_param}=#{Shellwords.escape(param_value)}"
30
+
31
+ if action_key.to_s == 'build_flag' && param_value.kind_of?(Array)
32
+ unless param_value.empty?
33
+ param_value.each do |flag|
34
+ platform_args << "--#{cli_param}=#{flag.shellescape}"
35
+ end
36
+ end
37
+ else
38
+ unless param_value.to_s.empty?
39
+ platform_args << "--#{cli_param}=#{Shellwords.escape(param_value)}"
40
+ end
31
41
  end
32
42
  end
33
43
 
@@ -244,6 +254,14 @@ module Fastlane
244
254
  description: "Call `cordova platform add` with `--nofetch` parameter",
245
255
  default_value: false,
246
256
  is_string: false
257
+ ),
258
+ FastlaneCore::ConfigItem.new(
259
+ key: :build_flag,
260
+ env_name: "CORDOVA_IOS_BUILD_FLAG",
261
+ description: "An array of Xcode buildFlag. Will be appended on compile command",
262
+ is_string: false,
263
+ optional: true,
264
+ default_value: []
247
265
  )
248
266
  ]
249
267
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Cordova
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-cordova
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
  - Almouro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-27 00:00:00.000000000 Z
11
+ date: 2018-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry