fastlane-plugin-cordova_android11 3.1.1
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 +7 -0
- data/LICENSE +21 -0
- data/README.md +133 -0
- data/lib/fastlane/plugin/cordova/actions/cordova_action.rb +336 -0
- data/lib/fastlane/plugin/cordova/helper/cordova_helper.rb +12 -0
- data/lib/fastlane/plugin/cordova/version.rb +5 -0
- data/lib/fastlane/plugin/cordova.rb +16 -0
- metadata +188 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 00a2435c403fff5d6a053839d06cbcefa97b41edde6a9bb521eb950e54c1881c
|
4
|
+
data.tar.gz: c21544d9652e795854d7722ebdb37377d1cf548e2b206d6ab3611b6b9342d9cc
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: be7e31c469e1de062e4d0f81c84b137151800110fc018d2eabf867528c8d04b00c685f79f1fb187dd1b1f3d72e5a96dd0e70fe224e9879f64b62e1bb716b9f6f
|
7
|
+
data.tar.gz: 1151aab6fb05b22935b0b7fb60b5c358453f7dce869707f6fe31414e8f3eaa9abff00241e1139135467ce154937ad86d2b55394548b326ea87d671913fc533be
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Almouro <contact@almouro.com>
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,133 @@
|
|
1
|
+
# Cordova Plugin
|
2
|
+
|
3
|
+
[](https://rubygems.org/gems/fastlane-plugin-cordova)
|
4
|
+
|
5
|
+
## Features
|
6
|
+
|
7
|
+
- Build your Cordova project inside a lane
|
8
|
+
- Automatically handle code signing on iOS, even for XCode 8
|
9
|
+
|
10
|
+
## Getting Started
|
11
|
+
|
12
|
+
This project is a [fastlane](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-cordova`, add it to your project by running:
|
13
|
+
|
14
|
+
```bash
|
15
|
+
fastlane add_plugin cordova
|
16
|
+
```
|
17
|
+
|
18
|
+
:warning: *If you're using a Cordova version below 7, you need to use version `1.0.1` of this plugin*
|
19
|
+
|
20
|
+
Then you can integrate it into your Fastlane setup:
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
platform :ios do
|
24
|
+
desc "Deploy ios app on the appstore"
|
25
|
+
|
26
|
+
lane :deploy do
|
27
|
+
match(type: "appstore")
|
28
|
+
cordova(platform: 'ios')
|
29
|
+
appstore(ipa: ENV['CORDOVA_IOS_RELEASE_BUILD_PATH'])
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
platform :android do
|
34
|
+
desc "Deploy android app on play store"
|
35
|
+
|
36
|
+
lane :deploy do
|
37
|
+
cordova(
|
38
|
+
platform: 'android',
|
39
|
+
keystore_path: './prod.keystore',
|
40
|
+
keystore_alias: 'prod',
|
41
|
+
keystore_password: 'password'
|
42
|
+
)
|
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'])
|
54
|
+
end
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
with an `Appfile` such as
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
app_identifier "com.awesome.app"
|
62
|
+
apple_id "apple@id.com"
|
63
|
+
team_id "28323HT"
|
64
|
+
```
|
65
|
+
|
66
|
+
If using **Crosswalk**, replace `supply(apk: ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'])` by:
|
67
|
+
```
|
68
|
+
supply(
|
69
|
+
apk_paths: [
|
70
|
+
'platforms/android/build/outputs/apk/android-armv7-release.apk',
|
71
|
+
'platforms/android/build/outputs/apk/android-x86-release.apk'
|
72
|
+
],
|
73
|
+
)
|
74
|
+
```
|
75
|
+
|
76
|
+
## Plugin API
|
77
|
+
|
78
|
+
To check what's available in the plugin, install it in a project and run at the root of the project:
|
79
|
+
```
|
80
|
+
fastlane actions cordova
|
81
|
+
```
|
82
|
+
|
83
|
+
Which will produce:
|
84
|
+
|
85
|
+
| Key | Description | Env Var | Default |
|
86
|
+
|-----|-------------|---------|---------|
|
87
|
+
| **platform** | Platform to build on. <br>Should be either android or ios | CORDOVA_PLATFORM | |
|
88
|
+
| **release** | Build for release if true,<br>or for debug if false | CORDOVA_RELEASE | *true* |
|
89
|
+
| **device** | Build for device | CORDOVA_DEVICE | *true* |
|
90
|
+
| **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 |
|
91
|
+
| **team_id** | The development team (Team ID) to use for code signing | CORDOVA_IOS_TEAM_ID | *28323HT* |
|
92
|
+
| **build_flag** | An array of Xcode buildFlag. Will be appended on compile command. | CORDOVA_IOS_BUILD_FLAG | [] |
|
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 |
|
95
|
+
| **keystore_path** | Path to the Keystore for Android | CORDOVA_ANDROID_KEYSTORE_PATH | |
|
96
|
+
| **keystore_password** | Android Keystore password | CORDOVA_ANDROID_KEYSTORE_PASSWORD | |
|
97
|
+
| **key_password** | Android Key password (default is keystore password) | CORDOVA_ANDROID_KEY_PASSWORD | |
|
98
|
+
| **keystore_alias** | Android Keystore alias | CORDOVA_ANDROID_KEYSTORE_ALIAS | |
|
99
|
+
| **min_sdk_version** | Overrides the value of minSdkVersion | CORDOVA_ANDROID_MIN_SDK_VERSION | |
|
100
|
+
| **build_number** | Build Number for iOS and Android | CORDOVA_BUILD_NUMBER | |
|
101
|
+
| **browserify** | Specifies whether to browserify build or not | CORDOVA_BROWSERIFY | *false* |
|
102
|
+
| **cordova_prepare** | Specifies whether to run `cordova prepare` before building | CORDOVA_PREPARE | *true* |
|
103
|
+
| **cordova_no_fetch** | Specifies whether to run `cordova platform add` with `--nofetch` parameter | CORDOVA_NO_FETCH | *false* |
|
104
|
+
| **cordova_build_config_file** | Call `cordova compile` with `--buildConfig=<ConfigFile>` to specify build config file path | CORDOVA_BUILD_CONFIG_FILE | |
|
105
|
+
|
106
|
+
## Run tests for this plugin
|
107
|
+
|
108
|
+
To run both the tests, and code style validation, run
|
109
|
+
|
110
|
+
```
|
111
|
+
rake
|
112
|
+
```
|
113
|
+
|
114
|
+
To automatically fix many of the styling issues, use
|
115
|
+
```
|
116
|
+
rubocop -a
|
117
|
+
```
|
118
|
+
|
119
|
+
## Issues and Feedback
|
120
|
+
|
121
|
+
For any other issues and feedback about this plugin, please submit it to this repository.
|
122
|
+
|
123
|
+
## Troubleshooting
|
124
|
+
|
125
|
+
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://github.com/fastlane/fastlane/blob/master/fastlane/docs/PluginsTroubleshooting.md) doc in the main `fastlane` repo.
|
126
|
+
|
127
|
+
## Using `fastlane` Plugins
|
128
|
+
|
129
|
+
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Plugins.md).
|
130
|
+
|
131
|
+
## About `fastlane`
|
132
|
+
|
133
|
+
`fastlane` is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
|
@@ -0,0 +1,336 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
module SharedValues
|
4
|
+
CORDOVA_IOS_RELEASE_BUILD_PATH = :CORDOVA_IOS_RELEASE_BUILD_PATH
|
5
|
+
CORDOVA_ANDROID_RELEASE_BUILD_PATH = :CORDOVA_ANDROID_RELEASE_BUILD_PATH
|
6
|
+
end
|
7
|
+
|
8
|
+
class CordovaAction < Action
|
9
|
+
ANDROID_ARGS_MAP = {
|
10
|
+
keystore_path: 'keystore',
|
11
|
+
keystore_password: 'storePassword',
|
12
|
+
key_password: 'password',
|
13
|
+
keystore_alias: 'alias',
|
14
|
+
build_number: 'versionCode',
|
15
|
+
min_sdk_version: 'gradleArg=-PcdvMinSdkVersion',
|
16
|
+
cordova_no_fetch: 'cordovaNoFetch',
|
17
|
+
package_type: 'packageType'
|
18
|
+
}
|
19
|
+
|
20
|
+
IOS_ARGS_MAP = {
|
21
|
+
type: 'packageType',
|
22
|
+
team_id: 'developmentTeam',
|
23
|
+
provisioning_profile: 'provisioningProfile',
|
24
|
+
build_flag: 'buildFlag'
|
25
|
+
}
|
26
|
+
|
27
|
+
def self.get_platform_args(params, args_map)
|
28
|
+
platform_args = []
|
29
|
+
args_map.each do |action_key, cli_param|
|
30
|
+
param_value = params[action_key]
|
31
|
+
|
32
|
+
if action_key.to_s == 'build_flag' && param_value.kind_of?(Array)
|
33
|
+
unless param_value.empty?
|
34
|
+
param_value.each do |flag|
|
35
|
+
platform_args << "--#{cli_param}=#{flag.shellescape}"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
else
|
39
|
+
unless param_value.to_s.empty?
|
40
|
+
platform_args << "--#{cli_param}=#{Shellwords.escape(param_value)}"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
return platform_args.join(' ')
|
46
|
+
end
|
47
|
+
|
48
|
+
def self.get_android_args(params)
|
49
|
+
if params[:key_password].empty?
|
50
|
+
params[:key_password] = params[:keystore_password]
|
51
|
+
end
|
52
|
+
|
53
|
+
return self.get_platform_args(params, ANDROID_ARGS_MAP)
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.get_ios_args(params)
|
57
|
+
app_identifier = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
|
58
|
+
|
59
|
+
if params[:provisioning_profile].empty?
|
60
|
+
params[:provisioning_profile] = ENV['SIGH_UUID'] || ENV["sigh_#{app_identifier}_#{params[:type].sub("-","")}"]
|
61
|
+
end
|
62
|
+
|
63
|
+
if params[:type] == 'adhoc'
|
64
|
+
params[:type] = 'ad-hoc'
|
65
|
+
end
|
66
|
+
if params[:type] == 'appstore'
|
67
|
+
params[:type] = 'app-store'
|
68
|
+
end
|
69
|
+
|
70
|
+
return self.get_platform_args(params, IOS_ARGS_MAP)
|
71
|
+
end
|
72
|
+
|
73
|
+
def self.check_platform(params)
|
74
|
+
platform = params[:platform]
|
75
|
+
if platform && !File.directory?("./platforms/#{platform}")
|
76
|
+
if params[:cordova_no_fetch]
|
77
|
+
sh "npx --no-install cordova platform add #{platform} --nofetch"
|
78
|
+
else
|
79
|
+
if platform == 'android'
|
80
|
+
sh "npx --no-install cordova platform add android@11.0.0"
|
81
|
+
else
|
82
|
+
sh "npx --no-install cordova platform add #{platform}"
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
def self.get_app_name()
|
89
|
+
config = REXML::Document.new(File.open('config.xml'))
|
90
|
+
return config.elements['widget'].elements['name'].first.value
|
91
|
+
end
|
92
|
+
|
93
|
+
def self.build(params)
|
94
|
+
args = [params[:release] ? '--release' : '--debug']
|
95
|
+
args << '--device' if params[:device]
|
96
|
+
args << '--browserify' if params[:browserify]
|
97
|
+
|
98
|
+
if !params[:cordova_build_config_file].to_s.empty?
|
99
|
+
args << "--buildConfig=#{Shellwords.escape(params[:cordova_build_config_file])}"
|
100
|
+
end
|
101
|
+
|
102
|
+
android_args = self.get_android_args(params) if params[:platform].to_s == 'android'
|
103
|
+
ios_args = self.get_ios_args(params) if params[:platform].to_s == 'ios'
|
104
|
+
|
105
|
+
if params[:cordova_prepare]
|
106
|
+
sh "npx --no-install cordova prepare #{params[:platform]} #{args.join(' ')} #{ios_args} -- #{android_args}"
|
107
|
+
end
|
108
|
+
|
109
|
+
if params[:platform].to_s == 'ios' && !params[:build_number].to_s.empty?
|
110
|
+
cf_bundle_version = params[:build_number].to_s
|
111
|
+
Actions::UpdateInfoPlistAction.run(
|
112
|
+
xcodeproj: "./platforms/ios/#{self.get_app_name}.xcodeproj",
|
113
|
+
plist_path: "#{self.get_app_name}/#{self.get_app_name}-Info.plist",
|
114
|
+
block: lambda { |plist|
|
115
|
+
plist['CFBundleVersion'] = cf_bundle_version
|
116
|
+
}
|
117
|
+
)
|
118
|
+
end
|
119
|
+
|
120
|
+
sh "npx --no-install cordova compile #{params[:platform]} #{args.join(' ')} #{ios_args} -- #{android_args}"
|
121
|
+
end
|
122
|
+
|
123
|
+
def self.set_build_paths(params)
|
124
|
+
app_name = self.get_app_name()
|
125
|
+
build_type = params[:release] ? 'release' : 'debug'
|
126
|
+
|
127
|
+
# Update the build path accordingly if Android is being
|
128
|
+
# built as an Android Application Bundle.
|
129
|
+
android_package_type = params[:package_type] || 'apk'
|
130
|
+
android_package_extension = android_package_type == 'bundle' ? '.aab' : '.apk'
|
131
|
+
|
132
|
+
ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'] = "./platforms/android/app/build/outputs/#{android_package_type}/#{build_type}/app-#{build_type}#{android_package_extension}"
|
133
|
+
ENV['CORDOVA_IOS_RELEASE_BUILD_PATH'] = "./platforms/ios/build/device/#{app_name}.ipa"
|
134
|
+
end
|
135
|
+
|
136
|
+
def self.run(params)
|
137
|
+
self.check_platform(params)
|
138
|
+
self.build(params)
|
139
|
+
self.set_build_paths(params)
|
140
|
+
end
|
141
|
+
|
142
|
+
#####################################################
|
143
|
+
# @!group Documentation
|
144
|
+
#####################################################
|
145
|
+
|
146
|
+
def self.description
|
147
|
+
"Build your Cordova app"
|
148
|
+
end
|
149
|
+
|
150
|
+
def self.details
|
151
|
+
"Easily integrate your cordova build into a Fastlane setup"
|
152
|
+
end
|
153
|
+
|
154
|
+
def self.available_options
|
155
|
+
[
|
156
|
+
FastlaneCore::ConfigItem.new(
|
157
|
+
key: :platform,
|
158
|
+
env_name: "CORDOVA_PLATFORM",
|
159
|
+
description: "Platform to build on. Should be either android or ios",
|
160
|
+
is_string: true,
|
161
|
+
default_value: '',
|
162
|
+
verify_block: proc do |value|
|
163
|
+
UI.user_error!("Platform should be either android or ios") unless ['', 'android', 'ios'].include? value
|
164
|
+
end
|
165
|
+
),
|
166
|
+
FastlaneCore::ConfigItem.new(
|
167
|
+
key: :release,
|
168
|
+
env_name: "CORDOVA_RELEASE",
|
169
|
+
description: "Build for release if true, or for debug if false",
|
170
|
+
is_string: false,
|
171
|
+
default_value: true,
|
172
|
+
verify_block: proc do |value|
|
173
|
+
UI.user_error!("Release should be boolean") unless [false, true].include? value
|
174
|
+
end
|
175
|
+
),
|
176
|
+
FastlaneCore::ConfigItem.new(
|
177
|
+
key: :device,
|
178
|
+
env_name: "CORDOVA_DEVICE",
|
179
|
+
description: "Build for device",
|
180
|
+
is_string: false,
|
181
|
+
default_value: true,
|
182
|
+
verify_block: proc do |value|
|
183
|
+
UI.user_error!("Device should be boolean") unless [false, true].include? value
|
184
|
+
end
|
185
|
+
),
|
186
|
+
FastlaneCore::ConfigItem.new(
|
187
|
+
key: :type,
|
188
|
+
env_name: "CORDOVA_IOS_PACKAGE_TYPE",
|
189
|
+
description: "This will determine what type of build is generated by Xcode. Valid options are development, enterprise, adhoc, and appstore",
|
190
|
+
is_string: true,
|
191
|
+
default_value: 'appstore',
|
192
|
+
verify_block: proc do |value|
|
193
|
+
UI.user_error!("Valid options are development, enterprise, adhoc, and appstore.") unless ['development', 'enterprise', 'adhoc', 'appstore', 'ad-hoc', 'app-store'].include? value
|
194
|
+
end
|
195
|
+
),
|
196
|
+
FastlaneCore::ConfigItem.new(
|
197
|
+
key: :team_id,
|
198
|
+
env_name: "CORDOVA_IOS_TEAM_ID",
|
199
|
+
description: "The development team (Team ID) to use for code signing",
|
200
|
+
is_string: true,
|
201
|
+
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_id)
|
202
|
+
),
|
203
|
+
FastlaneCore::ConfigItem.new(
|
204
|
+
key: :provisioning_profile,
|
205
|
+
env_name: "CORDOVA_IOS_PROVISIONING_PROFILE",
|
206
|
+
description: "GUID of the provisioning profile to be used for signing",
|
207
|
+
is_string: true,
|
208
|
+
default_value: ''
|
209
|
+
),
|
210
|
+
FastlaneCore::ConfigItem.new(
|
211
|
+
key: :package_type,
|
212
|
+
env_name: "CORDOVA_ANDROID_PACKAGE_TYPE",
|
213
|
+
description: "This will determine what type of Android build is generated. Valid options are apk or bundle",
|
214
|
+
is_string: true,
|
215
|
+
default_value: 'apk',
|
216
|
+
verify_block: proc do |value|
|
217
|
+
UI.user_error!("Valid options are apk or bundle.") unless ['apk', 'bundle'].include? value
|
218
|
+
end
|
219
|
+
),
|
220
|
+
FastlaneCore::ConfigItem.new(
|
221
|
+
key: :keystore_path,
|
222
|
+
env_name: "CORDOVA_ANDROID_KEYSTORE_PATH",
|
223
|
+
description: "Path to the Keystore for Android",
|
224
|
+
is_string: true,
|
225
|
+
default_value: ''
|
226
|
+
),
|
227
|
+
FastlaneCore::ConfigItem.new(
|
228
|
+
key: :keystore_password,
|
229
|
+
env_name: "CORDOVA_ANDROID_KEYSTORE_PASSWORD",
|
230
|
+
description: "Android Keystore password",
|
231
|
+
is_string: true,
|
232
|
+
default_value: ''
|
233
|
+
),
|
234
|
+
FastlaneCore::ConfigItem.new(
|
235
|
+
key: :key_password,
|
236
|
+
env_name: "CORDOVA_ANDROID_KEY_PASSWORD",
|
237
|
+
description: "Android Key password (default is keystore password)",
|
238
|
+
is_string: true,
|
239
|
+
default_value: ''
|
240
|
+
),
|
241
|
+
FastlaneCore::ConfigItem.new(
|
242
|
+
key: :keystore_alias,
|
243
|
+
env_name: "CORDOVA_ANDROID_KEYSTORE_ALIAS",
|
244
|
+
description: "Android Keystore alias",
|
245
|
+
is_string: true,
|
246
|
+
default_value: ''
|
247
|
+
),
|
248
|
+
FastlaneCore::ConfigItem.new(
|
249
|
+
key: :build_number,
|
250
|
+
env_name: "CORDOVA_BUILD_NUMBER",
|
251
|
+
description: "Build Number for iOS",
|
252
|
+
optional: true,
|
253
|
+
is_string: false,
|
254
|
+
),
|
255
|
+
FastlaneCore::ConfigItem.new(
|
256
|
+
key: :browserify,
|
257
|
+
env_name: "CORDOVA_BROWSERIFY",
|
258
|
+
description: "Specifies whether to browserify build or not",
|
259
|
+
default_value: false,
|
260
|
+
is_string: false
|
261
|
+
),
|
262
|
+
FastlaneCore::ConfigItem.new(
|
263
|
+
key: :cordova_prepare,
|
264
|
+
env_name: "CORDOVA_PREPARE",
|
265
|
+
description: "Specifies whether to run `npx cordova prepare` before building",
|
266
|
+
default_value: true,
|
267
|
+
is_string: false
|
268
|
+
),
|
269
|
+
FastlaneCore::ConfigItem.new(
|
270
|
+
key: :min_sdk_version,
|
271
|
+
env_name: "CORDOVA_ANDROID_MIN_SDK_VERSION",
|
272
|
+
description: "Overrides the value of minSdkVersion set in AndroidManifest.xml",
|
273
|
+
default_value: '',
|
274
|
+
is_string: false
|
275
|
+
),
|
276
|
+
FastlaneCore::ConfigItem.new(
|
277
|
+
key: :cordova_no_fetch,
|
278
|
+
env_name: "CORDOVA_NO_FETCH",
|
279
|
+
description: "Call `npx cordova platform add` with `--nofetch` parameter",
|
280
|
+
default_value: false,
|
281
|
+
is_string: false
|
282
|
+
),
|
283
|
+
FastlaneCore::ConfigItem.new(
|
284
|
+
key: :build_flag,
|
285
|
+
env_name: "CORDOVA_IOS_BUILD_FLAG",
|
286
|
+
description: "An array of Xcode buildFlag. Will be appended on compile command",
|
287
|
+
is_string: false,
|
288
|
+
optional: true,
|
289
|
+
default_value: []
|
290
|
+
),
|
291
|
+
FastlaneCore::ConfigItem.new(
|
292
|
+
key: :cordova_build_config_file,
|
293
|
+
env_name: "CORDOVA_BUILD_CONFIG_FILE",
|
294
|
+
description: "Call `npx cordova compile` with `--buildConfig=<ConfigFile>` to specify build config file path",
|
295
|
+
is_string: true,
|
296
|
+
optional: true,
|
297
|
+
default_value: ''
|
298
|
+
)
|
299
|
+
]
|
300
|
+
end
|
301
|
+
|
302
|
+
def self.output
|
303
|
+
[
|
304
|
+
['CORDOVA_ANDROID_RELEASE_BUILD_PATH', 'Path to the signed release APK or AAB if it was generated'],
|
305
|
+
['CORDOVA_IOS_RELEASE_BUILD_PATH', 'Path to the signed release IPA if it was generated']
|
306
|
+
]
|
307
|
+
end
|
308
|
+
|
309
|
+
def self.authors
|
310
|
+
['almouro']
|
311
|
+
end
|
312
|
+
|
313
|
+
def self.is_supported?(platform)
|
314
|
+
true
|
315
|
+
end
|
316
|
+
|
317
|
+
def self.example_code
|
318
|
+
[
|
319
|
+
"cordova(
|
320
|
+
platform: 'ios'
|
321
|
+
)",
|
322
|
+
"cordova(
|
323
|
+
platform: 'android',
|
324
|
+
keystore_path: './staging.keystore',
|
325
|
+
keystore_alias: 'alias_name',
|
326
|
+
keystore_password: 'store_password'
|
327
|
+
)"
|
328
|
+
]
|
329
|
+
end
|
330
|
+
|
331
|
+
def self.category
|
332
|
+
:building
|
333
|
+
end
|
334
|
+
end
|
335
|
+
end
|
336
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Helper
|
3
|
+
class CordovaHelper
|
4
|
+
# class methods that you define here become available in your action
|
5
|
+
# as `Helper::CordovaHelper.your_method`
|
6
|
+
#
|
7
|
+
def self.show_message
|
8
|
+
UI.message("Hello from the cordova plugin helper!")
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'fastlane/plugin/cordova/version'
|
2
|
+
|
3
|
+
module Fastlane
|
4
|
+
module Cordova
|
5
|
+
# Return all .rb files inside the "actions" and "helper" directory
|
6
|
+
def self.all_classes
|
7
|
+
Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))]
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
# By default we want to import all available actions and helpers
|
13
|
+
# A plugin can contain any number of actions and plugins
|
14
|
+
Fastlane::Cordova.all_classes.each do |current|
|
15
|
+
require current
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,188 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fastlane-plugin-cordova_android11
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Fer Cervantes
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-12-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: fastlane
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.206.2
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.206.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec_junit_formatter
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.12.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.12.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-performance
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rubocop-require_tools
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: simplecov
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description:
|
154
|
+
email: so4tune@hotmail.com
|
155
|
+
executables: []
|
156
|
+
extensions: []
|
157
|
+
extra_rdoc_files: []
|
158
|
+
files:
|
159
|
+
- LICENSE
|
160
|
+
- README.md
|
161
|
+
- lib/fastlane/plugin/cordova.rb
|
162
|
+
- lib/fastlane/plugin/cordova/actions/cordova_action.rb
|
163
|
+
- lib/fastlane/plugin/cordova/helper/cordova_helper.rb
|
164
|
+
- lib/fastlane/plugin/cordova/version.rb
|
165
|
+
homepage: https://github.com/SunPower/fastlane-plugin-cordova
|
166
|
+
licenses:
|
167
|
+
- MIT
|
168
|
+
metadata: {}
|
169
|
+
post_install_message:
|
170
|
+
rdoc_options: []
|
171
|
+
require_paths:
|
172
|
+
- lib
|
173
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
version: '2.5'
|
178
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
requirements: []
|
184
|
+
rubygems_version: 3.3.26
|
185
|
+
signing_key:
|
186
|
+
specification_version: 4
|
187
|
+
summary: Cordova plugin for Fastlane with support for cordova-android-11
|
188
|
+
test_files: []
|