fastlane-plugin-cordova 0.2.1 → 0.3.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: 881cdb31308be3e8c1202dac3a600cef6a31185b
4
- data.tar.gz: c180dc5c06d5856265f9a958fb182f654ffbe629
3
+ metadata.gz: eb18e398d29017c66d212f0e9b00ad08dd340eb8
4
+ data.tar.gz: 3b856a7736e3801c979a4ec2bdad3ca6a3995da3
5
5
  SHA512:
6
- metadata.gz: 3867bf89552672f51c0f045cf847ee9418894f7584c354a47f536ab70954747d7956be87959939cc60ebe6d6587f4c4c93c6b7525916bd8d99a7f2293d5f3f19
7
- data.tar.gz: 3751b547aef6d49af01c5a2c9bf787d0d5f5f1dac405f782ee801c06609ce67ba1d363efb29b22d2fbded88317522c421cc17d45d37e1b5bc58a11a5238649b8
6
+ metadata.gz: c29a422ad9dbd505b771b78c298498e0c93686653d51209b61c782c62d7d1c9763d3964ec23d1975b05df9023d7bda5d6f2f146d0d16567a2eb0240869041983
7
+ data.tar.gz: f8cd469a70f2175ad287e92a452f67f4cfd4fc16fcc96242b7ca4d5cbda2ca189aff7463013ae1103f459ebb9be0305417e30d1dcbf894f4bf01f42436bec5c0
@@ -70,12 +70,13 @@ module Fastlane
70
70
  end
71
71
 
72
72
  def self.build(params)
73
- prod = params[:release] ? 'release' : 'debug'
74
- device = params[:device] ? ' --device' : ''
73
+ args = [params[:release] ? '--release' : '--debug']
74
+ args << '--device' if params[:device]
75
+ args << '--browserify' if params[:browserify]
75
76
  android_args = self.get_android_args(params) if params[:platform].to_s == 'android'
76
77
  ios_args = self.get_ios_args(params) if params[:platform].to_s == 'ios'
77
78
 
78
- sh "cordova build #{params[:platform]} --#{prod}#{device} #{ios_args} -- #{android_args}"
79
+ sh "cordova build #{params[:platform]} #{args.join(' ')} #{ios_args} -- #{android_args}"
79
80
  end
80
81
 
81
82
  def self.set_build_paths(is_release)
@@ -195,6 +196,13 @@ module Fastlane
195
196
  default_value: 0,
196
197
  is_string: false,
197
198
  type: Numeric
199
+ ),
200
+ FastlaneCore::ConfigItem.new(
201
+ key: :browserify,
202
+ env_name: "CORDOVA_BROWSERIFY",
203
+ description: "Specifies whether to browserify build or not",
204
+ default_value: false,
205
+ is_string: false
198
206
  )
199
207
  ]
200
208
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Cordova
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.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: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Almouro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-11 00:00:00.000000000 Z
11
+ date: 2017-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry