fastlane-plugin-cordova 3.0.0 → 3.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: 8e99de8a0b61971ce82e999b29ca6e69149bf4cfd9d10878bc12c567630afdef
4
- data.tar.gz: 1ee12a3b5401561de12fe1c3dda8d995a2bc368df1c9cdac38f168bcc992a967
3
+ metadata.gz: a6a4b5b48aa28034b00f28805ce38d774482cb0b1395276e2ca2f41e1be8cbb8
4
+ data.tar.gz: e19f9770b313b16898a2fcfd82f2fbd3c1bed883b1f7c98a4b85582b2ff6b85f
5
5
  SHA512:
6
- metadata.gz: e134266eecc26bdbf6662cf9f08bd60d1316590b5eded1ea9f67cccd6fec5e45daf39d362fede2d9194137be2e7a703826b03f1f97e8b5358fa4e7004b9e204c
7
- data.tar.gz: db4ef75db27170061b9fae83c90b2648d8c4014bee40f95aeea845cf6303f6e13c875bf7ff839f68dfa41b0ddbabd3cb61a484fda666bdd4a87e0aa55a73ce1a
6
+ metadata.gz: 29793953c8d3ba76fced81de00c853cd9b7f2627b4f535fccc77c83d8930a60ca08d61cbb7095d10d4f3c09494f678011f09375f77792da91465d5cccf764f0f
7
+ data.tar.gz: d2736e308f3da7e4cd4586c3a61717a711fadf50bd358eb6adbbb903baa61996775e6455cdab1fbe7db91cfd754d90a9d8d5c6f6328e0061448d3cfd336fd9d1
data/README.md CHANGED
@@ -41,6 +41,16 @@ platform :android do
41
41
  keystore_password: 'password'
42
42
  )
43
43
  supply(apk: ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'])
44
+
45
+ # Alternatively, deploy an Android Application Bundle
46
+ # cordova(
47
+ # package_type: 'bundle',
48
+ # platform: 'android',
49
+ # keystore_path: './prod.keystore',
50
+ # keystore_alias: 'prod',
51
+ # keystore_password: 'password'
52
+ # )
53
+ # supply(aab: ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'])
44
54
  end
45
55
  end
46
56
  ```
@@ -81,6 +91,7 @@ Which will produce:
81
91
  | **team_id** | The development team (Team ID) to use for code signing | CORDOVA_IOS_TEAM_ID | *28323HT* |
82
92
  | **build_flag** | An array of Xcode buildFlag. Will be appended on compile command. | CORDOVA_IOS_BUILD_FLAG | [] |
83
93
  | **provisioning_profile** | GUID of the provisioning profile to be used for signing | CORDOVA_IOS_PROVISIONING_PROFILE | |
94
+ | **package_type** | This will determine what type of Android build is generated. <br>Valid options are apk and bundle | CORDOVA_ANDROID_PACKAGE_TYPE | apk |
84
95
  | **keystore_path** | Path to the Keystore for Android | CORDOVA_ANDROID_KEYSTORE_PATH | |
85
96
  | **keystore_password** | Android Keystore password | CORDOVA_ANDROID_KEYSTORE_PASSWORD | |
86
97
  | **key_password** | Android Key password (default is keystore password) | CORDOVA_ANDROID_KEY_PASSWORD | |
@@ -13,7 +13,8 @@ module Fastlane
13
13
  keystore_alias: 'alias',
14
14
  build_number: 'versionCode',
15
15
  min_sdk_version: 'gradleArg=-PcdvMinSdkVersion',
16
- cordova_no_fetch: 'cordovaNoFetch'
16
+ cordova_no_fetch: 'cordovaNoFetch',
17
+ package_type: 'packageType'
17
18
  }
18
19
 
19
20
  IOS_ARGS_MAP = {
@@ -119,7 +120,12 @@ module Fastlane
119
120
  app_name = self.get_app_name()
120
121
  build_type = is_release ? 'release' : 'debug'
121
122
 
122
- ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'] = "./platforms/android/app/build/outputs/apk/#{build_type}/app-#{build_type}.apk"
123
+ # Update the build path accordingly if Android is being
124
+ # built as an Android Application Bundle.
125
+ android_package_type = params[:package_type] || 'apk'
126
+ android_package_extension = android_package_type == 'bundle' ? '.aab' : '.apk'
127
+
128
+ ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'] = "./platforms/android/app/build/outputs/#{android_package_type}/#{build_type}/app-#{build_type}#{android_package_extension}"
123
129
  ENV['CORDOVA_IOS_RELEASE_BUILD_PATH'] = "./platforms/ios/build/device/#{app_name}.ipa"
124
130
  end
125
131
 
@@ -197,6 +203,16 @@ module Fastlane
197
203
  is_string: true,
198
204
  default_value: ''
199
205
  ),
206
+ FastlaneCore::ConfigItem.new(
207
+ key: :package_type,
208
+ env_name: "CORDOVA_ANDROID_PACKAGE_TYPE",
209
+ description: "This will determine what type of Android build is generated. Valid options are apk or bundle",
210
+ is_string: true,
211
+ default_value: 'apk',
212
+ verify_block: proc do |value|
213
+ UI.user_error!("Valid options are apk or bundle.") unless ['apk', 'bundle'].include? value
214
+ end
215
+ ),
200
216
  FastlaneCore::ConfigItem.new(
201
217
  key: :keystore_path,
202
218
  env_name: "CORDOVA_ANDROID_KEYSTORE_PATH",
@@ -281,7 +297,7 @@ module Fastlane
281
297
 
282
298
  def self.output
283
299
  [
284
- ['CORDOVA_ANDROID_RELEASE_BUILD_PATH', 'Path to the signed release APK if it was generated'],
300
+ ['CORDOVA_ANDROID_RELEASE_BUILD_PATH', 'Path to the signed release APK or AAB if it was generated'],
285
301
  ['CORDOVA_IOS_RELEASE_BUILD_PATH', 'Path to the signed release IPA if it was generated']
286
302
  ]
287
303
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Cordova
3
- VERSION = "3.0.0"
3
+ VERSION = "3.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: 3.0.0
4
+ version: 3.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: 2020-07-02 00:00:00.000000000 Z
11
+ date: 2020-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry