fastlane-plugin-cordova 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: b1ac4cf5e05ba35ef574978b52da40235f4a48ce
4
- data.tar.gz: 6b0f56e0764c4598b52aa3e32e5bc4bd535e42ff
3
+ metadata.gz: 881cdb31308be3e8c1202dac3a600cef6a31185b
4
+ data.tar.gz: c180dc5c06d5856265f9a958fb182f654ffbe629
5
5
  SHA512:
6
- metadata.gz: 99108105293a031932157725d8bb7d2de5952df3c1051e919b48233333ce633a82259c87453c09ded9e3f0fb636186158b7076267a817d7a54327cf084379ade
7
- data.tar.gz: 2b2e0e922918348e5c6256ee32695b34750183a650fb8d899cfd3e0f23591387da414e264f5ae00924b991b5394829246f37a2e0fcc62eb98d4c89883e8c26bc
6
+ metadata.gz: 3867bf89552672f51c0f045cf847ee9418894f7584c354a47f536ab70954747d7956be87959939cc60ebe6d6587f4c4c93c6b7525916bd8d99a7f2293d5f3f19
7
+ data.tar.gz: 3751b547aef6d49af01c5a2c9bf787d0d5f5f1dac405f782ee801c06609ce67ba1d363efb29b22d2fbded88317522c421cc17d45d37e1b5bc58a11a5238649b8
@@ -10,21 +10,23 @@ module Fastlane
10
10
  keystore_path: 'keystore',
11
11
  keystore_password: 'storePassword',
12
12
  key_password: 'password',
13
- keystore_alias: 'alias'
13
+ keystore_alias: 'alias',
14
+ build_number: 'versionCode'
14
15
  }
15
16
 
16
17
  IOS_ARGS_MAP = {
17
18
  type: 'packageType',
18
19
  team_id: 'developmentTeam',
19
- provisioning_profile: 'provisioningProfile'
20
+ provisioning_profile: 'provisioningProfile',
21
+ build_number: 'CFBundleVersion'
20
22
  }
21
23
 
22
24
  def self.get_platform_args(params, args_map)
23
25
  platform_args = []
24
26
  args_map.each do |action_key, cli_param|
25
27
  param_value = params[action_key]
26
- unless param_value.empty?
27
- platform_args << "--#{cli_param}=\"#{param_value}\""
28
+ unless param_value.to_s.empty?
29
+ platform_args << "--#{cli_param}=#{Shellwords.escape(param_value)}"
28
30
  end
29
31
  end
30
32
 
@@ -70,8 +72,8 @@ module Fastlane
70
72
  def self.build(params)
71
73
  prod = params[:release] ? 'release' : 'debug'
72
74
  device = params[:device] ? ' --device' : ''
73
- android_args = self.get_android_args(params)
74
- ios_args = self.get_ios_args(params)
75
+ android_args = self.get_android_args(params) if params[:platform].to_s == 'android'
76
+ ios_args = self.get_ios_args(params) if params[:platform].to_s == 'ios'
75
77
 
76
78
  sh "cordova build #{params[:platform]} --#{prod}#{device} #{ios_args} -- #{android_args}"
77
79
  end
@@ -79,7 +81,7 @@ module Fastlane
79
81
  def self.set_build_paths(is_release)
80
82
  app_name = self.get_app_name()
81
83
  build_type = is_release ? 'release' : 'debug'
82
-
84
+
83
85
  ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'] = "./platforms/android/build/outputs/apk/android-#{build_type}.apk"
84
86
  ENV['CORDOVA_IOS_RELEASE_BUILD_PATH'] = "./platforms/ios/build/device/#{app_name}.ipa"
85
87
  end
@@ -185,6 +187,14 @@ module Fastlane
185
187
  description: "Android Keystore alias",
186
188
  is_string: true,
187
189
  default_value: ''
190
+ ),
191
+ FastlaneCore::ConfigItem.new(
192
+ key: :build_number,
193
+ env_name: "CORDOVA_BUILD_NUMBER",
194
+ description: "Build Number for iOS and Android Keystore alias",
195
+ default_value: 0,
196
+ is_string: false,
197
+ type: Numeric
188
198
  )
189
199
  ]
190
200
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Cordova
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
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.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Almouro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-16 00:00:00.000000000 Z
11
+ date: 2017-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry