fastlane-plugin-ionic_conf 0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e8c251ae25f6ae2ee810bbf1f12a4f45e36c2eb7497255fedcb0fd1f724bcd48
4
+ data.tar.gz: a92ba1b04a5a13b12a33b35785d9cee73d13f654e32aad195d63cbd9d1fac52c
5
+ SHA512:
6
+ metadata.gz: 358d29861f34d8fc017f5226de33530ad9a6387e900810f520ffba3f8139c712defe0690777d3c78406cc20a49db3926a5c9c432277bb32bb8a1be510482fd74
7
+ data.tar.gz: e37c9b88b27b8c68f92b77ec04c507d10a19bc44a17198029b252501677dc9cd2bf14c783d84d2e790876f9613b3b4df0618f7c61288e49348e620faf6e065b7
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Jan Piotrowski <piotrowski@gmail.com>
4
+ Copyright (c) 2016 Almouro <contact@almouro.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,149 @@
1
+ # _fastlane_ Plugin for Ionic CLI
2
+
3
+ [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-ionic) [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/ionic-zone/fastlane-plugin-ionic/blob/master/LICENSE)
4
+ [![Gem](https://img.shields.io/gem/v/fastlane-plugin-ionic.svg?style=flat)](http://rubygems.org/gems/fastlane-plugin-ionic)
5
+
6
+ This _fastlane_ plugin helps you build your **Ionic Cordova** project via the [`ionic` CLI](https://ionicframework.com/docs/cli/).
7
+
8
+ It is based on [fastlane-plugin-cordova](https://github.com/bamlab/fastlane-plugin-cordova) (where it borrows a lot of its code. Thanks!).
9
+
10
+ ## Getting Started
11
+
12
+ This project is a [fastlane](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-ionic`, add it to your project by running:
13
+
14
+ ```bash
15
+ fastlane add_plugin ionic
16
+ ```
17
+
18
+ ## Actions
19
+
20
+ ### `ionic`
21
+
22
+ Runs `ionic cordova build` (technically: `ionic cordova prepare` first, then `ionic cordova compile` [which is the same as what `build` does internally]) to build your Ionic project.
23
+
24
+ ```ruby
25
+ ionic(
26
+ platform: 'ios', # Build your iOS Ionic project
27
+ )
28
+ ionic(
29
+ platform: 'android', # Build your Android Ionic project
30
+ release: false # Build a "Debug" app
31
+ )
32
+ ```
33
+
34
+
35
+ ## Examples
36
+
37
+ Lanes using these actions could look like this:
38
+
39
+ ```ruby
40
+ platform :ios do
41
+ desc "Deploy ios app on the appstore"
42
+
43
+ lane :deploy do
44
+ match(type: "appstore")
45
+ ionic(platform: 'ios')
46
+ deliver(ipa: ENV['CORDOVA_IOS_RELEASE_BUILD_PATH'])
47
+ end
48
+ end
49
+
50
+ platform :android do
51
+ desc "Deploy android app on play store"
52
+
53
+ lane :deploy do
54
+ ionic(
55
+ platform: 'android',
56
+ keystore_path: './prod.keystore',
57
+ keystore_alias: 'prod',
58
+ keystore_password: 'password'
59
+ )
60
+ supply(apk: ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'])
61
+ end
62
+ end
63
+ ```
64
+
65
+ with an `Appfile` such as
66
+
67
+ ```ruby
68
+ app_identifier "com.awesome.app"
69
+ apple_id "apple@id.com"
70
+ team_id "28323HT"
71
+ ```
72
+
73
+ ---
74
+
75
+ The `ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH']` is only valid for `cordova-android` 7.x and newer (which you should be using anyway!).
76
+
77
+ If you're using **Crosswalk** (which oyu should not really be doing anymore), replace `supply(apk: ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'])` (and equivalents) by:
78
+
79
+ ```ruby
80
+ supply(
81
+ apk_paths: [
82
+ 'platforms/android/build/outputs/apk/android-armv7-release.apk',
83
+ 'platforms/android/build/outputs/apk/android-x86-release.apk'
84
+ ],
85
+ )
86
+ ```
87
+
88
+ ## Plugin API
89
+
90
+ To check what's available in the plugin, install it in a project and run at the root of the project:
91
+
92
+ ```
93
+ fastlane actions ionic
94
+ ```
95
+
96
+ Which will produce:
97
+
98
+ | Key | Description | Env Var | Default |
99
+ |-----|-------------|---------|---------|
100
+ | **platform** | Platform to build on. <br>Should be either android or ios | CORDOVA_PLATFORM | |
101
+ | **release** | Build for release if true,<br>or for debug if false | CORDOVA_RELEASE | *true* |
102
+ | **device** | Build for device | CORDOVA_DEVICE | *true* |
103
+ | **prod** | Build for production | IONIC_PROD | *false* |
104
+ | **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 |
105
+ | **team_id** | The development team (Team ID) to use for code signing | CORDOVA_IOS_TEAM_ID | *28323HT* |
106
+ | **provisioning_profile** | GUID of the provisioning profile to be used for signing | CORDOVA_IOS_PROVISIONING_PROFILE | |
107
+ | **keystore_path** | Path to the Keystore for Android | CORDOVA_ANDROID_KEYSTORE_PATH | |
108
+ | **keystore_password** | Android Keystore password | CORDOVA_ANDROID_KEYSTORE_PASSWORD | |
109
+ | **key_password** | Android Key password (default is keystore password) | CORDOVA_ANDROID_KEY_PASSWORD | |
110
+ | **keystore_alias** | Android Keystore alias | CORDOVA_ANDROID_KEYSTORE_ALIAS | |
111
+ | **build_number** | Sets the build number for iOS and version code for Android | CORDOVA_BUILD_NUMBER | |
112
+ | **browserify** | Specifies whether to browserify build or not | CORDOVA_BROWSERIFY | *false* |
113
+ | **cordova_prepare** | Specifies whether to run `ionic cordova prepare` before building | CORDOVA_PREPARE | *true* |
114
+ | **min_sdk_version** | Overrides the value of minSdkVersion set in `AndroidManifest.xml` | CORDOVA_ANDROID_MIN_SDK_VERSION | '' |
115
+ | **cordova_no_fetch** | Specifies whether to run `ionic cordova platform add` with `--nofetch` parameter | CORDOVA_NO_FETCH | *false* |
116
+ | **build_flag** | An array of Xcode buildFlag. Will be appended on compile command. | CORDOVA_IOS_BUILD_FLAG | [] |
117
+ | **project** | Call `ionic cordova compile` with `--project=<Project>` to specify project in multi-projects monorepo, the project is looked up by key in the projects object | CORDOVA_PROJECT | |
118
+ | **configuration** | Call `ionic cordova compile` with `--configuration=<Configuration>` to specify the configuration to use (for instance to manage environment in angular) | CORDOVA_CONFIGURATION | |
119
+ | **cordova_build_config_file** | Call `ionic cordova compile` with `--buildConfig=<ConfigFile>` to specify build config file path | CORDOVA_BUILD_CONFIG_FILE | |
120
+
121
+
122
+ ## Run tests for this plugin
123
+
124
+ To run both the tests, and code style validation, run
125
+
126
+ ```
127
+ rake
128
+ ```
129
+
130
+ To automatically fix many of the styling issues, use
131
+ ```
132
+ rubocop -a
133
+ ```
134
+
135
+ ## Issues and Feedback
136
+
137
+ For any other issues and feedback about this plugin, please submit it to this repository.
138
+
139
+ ## Troubleshooting
140
+
141
+ 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.
142
+
143
+ ## Using `fastlane` Plugins
144
+
145
+ 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).
146
+
147
+ ## About `fastlane`
148
+
149
+ `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,369 @@
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 IonicAction < Action
9
+ # valid action params
10
+
11
+ ANDROID_ARGS_MAP = {
12
+ keystore_path: 'keystore',
13
+ keystore_password: 'storePassword',
14
+ key_password: 'password',
15
+ keystore_alias: 'alias',
16
+ build_number: 'versionCode',
17
+ min_sdk_version: 'gradleArg=-PcdvMinSdkVersion',
18
+ cordova_no_fetch: 'cordovaNoFetch'
19
+ }
20
+
21
+ IOS_ARGS_MAP = {
22
+ type: 'packageType',
23
+ team_id: 'developmentTeam',
24
+ provisioning_profile: 'provisioningProfile',
25
+ build_flag: 'buildFlag'
26
+ }
27
+
28
+ # extract arguments only valid for the platform from all arguments
29
+ # + map action params to the cli param they will be used for
30
+ def self.get_platform_args(params, platform_args_map)
31
+ platform_args = []
32
+ platform_args_map.each do |action_key, cli_param|
33
+ param_value = params[action_key]
34
+
35
+ # handle `build_flag` being an Array
36
+ if action_key.to_s == 'build_flag' && param_value.kind_of?(Array)
37
+ unless param_value.empty?
38
+ param_value.each do |flag|
39
+ platform_args << "--#{cli_param}=#{flag.shellescape}"
40
+ end
41
+ end
42
+ # handle all other cases
43
+ else
44
+ unless param_value.to_s.empty?
45
+ platform_args << "--#{cli_param}=#{param_value.shellescape}"
46
+ end
47
+ end
48
+ end
49
+
50
+ return platform_args.join(' ')
51
+ end
52
+
53
+ def self.get_android_args(params)
54
+ if params[:key_password].empty?
55
+ params[:key_password] = params[:keystore_password]
56
+ end
57
+
58
+ return self.get_platform_args(params, ANDROID_ARGS_MAP)
59
+ end
60
+
61
+ def self.get_ios_args(params)
62
+ app_identifier = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
63
+
64
+ if params[:provisioning_profile].empty?
65
+ # If `match` or `sigh` were used before this, use the certificates returned from there
66
+ params[:provisioning_profile] = ENV['SIGH_UUID'] || ENV["sigh_#{app_identifier}_#{params[:type].sub('-', '')}"]
67
+ end
68
+
69
+ if params[:type] == 'adhoc'
70
+ params[:type] = 'ad-hoc'
71
+ end
72
+ if params[:type] == 'appstore'
73
+ params[:type] = 'app-store'
74
+ end
75
+
76
+ return self.get_platform_args(params, IOS_ARGS_MAP)
77
+ end
78
+
79
+ # add platform if missing (run step #1)
80
+ def self.check_platform(params)
81
+ platform = params[:platform]
82
+ if platform && !File.directory?("./platforms/#{platform}")
83
+ if params[:cordova_no_fetch]
84
+ sh "ionic cordova platform add #{platform} --no-interactive --nofetch"
85
+ else
86
+ sh "ionic cordova platform add #{platform} --no-interactive"
87
+ end
88
+ end
89
+ end
90
+
91
+ # app_name
92
+ def self.get_app_name
93
+ config = REXML::Document.new(File.open('config.xml'))
94
+ return config.elements['widget'].elements['name'].first.value # TODO: Simplify!? (Check logic in cordova)
95
+ end
96
+
97
+ # actual building! (run step #2)
98
+ def self.build(params)
99
+ args = [params[:release] ? '--release' : '--debug']
100
+ args << '--device' if params[:device]
101
+ args << '--prod' if params[:prod]
102
+ args << '--browserify' if params[:browserify]
103
+
104
+ if !params[:cordova_build_config_file].to_s.empty?
105
+ args << "--buildConfig=#{Shellwords.escape(params[:cordova_build_config_file])}"
106
+ end
107
+
108
+ if !params[:project].to_s.empty?
109
+ args << "--project=#{params[:project]}"
110
+ end
111
+
112
+ if !params[:configuration].to_s.empty?
113
+ args << "--configuration=#{params[:configuration]}"
114
+ end
115
+
116
+ android_args = self.get_android_args(params) if params[:platform].to_s == 'android'
117
+ ios_args = self.get_ios_args(params) if params[:platform].to_s == 'ios'
118
+
119
+ if params[:cordova_prepare]
120
+ # TODO: Remove params not allowed/used for `prepare`
121
+ sh "ionic cordova prepare #{params[:platform]} --no-interactive #{args.join(' ')}"
122
+ end
123
+
124
+ # special handling for `build_number` param
125
+ if params[:platform].to_s == 'ios' && !params[:build_number].to_s.empty?
126
+ cf_bundle_version = params[:build_number].to_s
127
+ Actions::UpdateInfoPlistAction.run(
128
+ xcodeproj: "./platforms/ios/#{self.get_app_name}.xcodeproj",
129
+ plist_path: "#{self.get_app_name}/#{self.get_app_name}-Info.plist",
130
+ block: lambda { |plist|
131
+ plist['CFBundleVersion'] = cf_bundle_version
132
+ }
133
+ )
134
+ end
135
+
136
+ if params[:platform].to_s == 'ios'
137
+ sh "ionic cordova compile #{params[:platform]} --no-interactive #{args.join(' ')} -- #{ios_args}"
138
+ elsif params[:platform].to_s == 'android'
139
+ sh "ionic cordova compile #{params[:platform]} --no-interactive #{args.join(' ')} -- -- #{android_args}"
140
+ end
141
+ end
142
+
143
+ # export build paths (run step #3)
144
+ def self.set_build_paths(is_release)
145
+ app_name = self.get_app_name
146
+ build_type = is_release ? 'release' : 'debug'
147
+
148
+ ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'] = "./platforms/android/app/build/outputs/apk/#{build_type}/app-#{build_type}.apk"
149
+ ENV['CORDOVA_IOS_RELEASE_BUILD_PATH'] = "./platforms/ios/build/device/#{app_name}.ipa"
150
+
151
+ # TODO: https://github.com/bamlab/fastlane-plugin-cordova/issues/7
152
+ # TODO: Set env vars that gym and Co automatically use
153
+ end
154
+
155
+ def self.run(params)
156
+ self.check_platform(params)
157
+ self.build(params)
158
+ self.set_build_paths(params[:release])
159
+ end
160
+
161
+ #####################################################
162
+ # @!group Documentation
163
+ #####################################################
164
+
165
+ def self.description
166
+ "Build your Ionic app"
167
+ end
168
+
169
+ def self.details
170
+ "Easily integrate your Ionic build into a Fastlane setup"
171
+ end
172
+
173
+ def self.available_options
174
+ [
175
+ FastlaneCore::ConfigItem.new(
176
+ key: :platform,
177
+ env_name: "CORDOVA_PLATFORM",
178
+ description: "Platform to build on. Should be either android or ios",
179
+ is_string: true,
180
+ default_value: '',
181
+ verify_block: proc do |value|
182
+ UI.user_error!("Platform should be either android or ios") unless ['', 'android', 'ios'].include? value
183
+ end
184
+ ),
185
+ FastlaneCore::ConfigItem.new(
186
+ key: :release,
187
+ env_name: "CORDOVA_RELEASE",
188
+ description: "Build for release if true, or for debug if false",
189
+ is_string: false,
190
+ default_value: true,
191
+ verify_block: proc do |value|
192
+ UI.user_error!("Release should be boolean") unless [false, true].include? value
193
+ end
194
+ ),
195
+ FastlaneCore::ConfigItem.new(
196
+ key: :device,
197
+ env_name: "CORDOVA_DEVICE",
198
+ description: "Build for device",
199
+ is_string: false,
200
+ default_value: true,
201
+ verify_block: proc do |value|
202
+ UI.user_error!("Device should be boolean") unless [false, true].include? value
203
+ end
204
+ ),
205
+ FastlaneCore::ConfigItem.new(
206
+ key: :prod,
207
+ env_name: "IONIC_PROD",
208
+ description: "Build for production",
209
+ is_string: false,
210
+ default_value: false,
211
+ verify_block: proc do |value|
212
+ UI.user_error!("Prod should be boolean") unless [false, true].include? value
213
+ end
214
+ ),
215
+ FastlaneCore::ConfigItem.new(
216
+ key: :type,
217
+ env_name: "CORDOVA_IOS_PACKAGE_TYPE",
218
+ description: "This will determine what type of build is generated by Xcode. Valid options are development, enterprise, adhoc, and appstore",
219
+ is_string: true,
220
+ default_value: 'appstore',
221
+ verify_block: proc do |value|
222
+ UI.user_error!("Valid options are development, enterprise, adhoc, and appstore.") unless ['development', 'enterprise', 'adhoc', 'appstore', 'ad-hoc', 'app-store'].include? value
223
+ end
224
+ ),
225
+ FastlaneCore::ConfigItem.new(
226
+ key: :team_id,
227
+ env_name: "CORDOVA_IOS_TEAM_ID",
228
+ description: "The development team (Team ID) to use for code signing",
229
+ is_string: true,
230
+ default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_id)
231
+ ),
232
+ FastlaneCore::ConfigItem.new(
233
+ key: :provisioning_profile,
234
+ env_name: "CORDOVA_IOS_PROVISIONING_PROFILE",
235
+ description: "GUID of the provisioning profile to be used for signing",
236
+ is_string: true,
237
+ default_value: ''
238
+ ),
239
+ FastlaneCore::ConfigItem.new(
240
+ key: :keystore_path,
241
+ env_name: "CORDOVA_ANDROID_KEYSTORE_PATH",
242
+ description: "Path to the Keystore for Android",
243
+ is_string: true,
244
+ default_value: ''
245
+ ),
246
+ FastlaneCore::ConfigItem.new(
247
+ key: :keystore_password,
248
+ env_name: "CORDOVA_ANDROID_KEYSTORE_PASSWORD",
249
+ description: "Android Keystore password",
250
+ is_string: true,
251
+ default_value: ''
252
+ ),
253
+ FastlaneCore::ConfigItem.new(
254
+ key: :key_password,
255
+ env_name: "CORDOVA_ANDROID_KEY_PASSWORD",
256
+ description: "Android Key password (default is keystore password)",
257
+ is_string: true,
258
+ default_value: ''
259
+ ),
260
+ FastlaneCore::ConfigItem.new(
261
+ key: :keystore_alias,
262
+ env_name: "CORDOVA_ANDROID_KEYSTORE_ALIAS",
263
+ description: "Android Keystore alias",
264
+ is_string: true,
265
+ default_value: ''
266
+ ),
267
+ FastlaneCore::ConfigItem.new(
268
+ key: :build_number,
269
+ env_name: "CORDOVA_BUILD_NUMBER",
270
+ description: "Sets the build number for iOS and version code for Android",
271
+ optional: true,
272
+ is_string: false
273
+ ),
274
+ FastlaneCore::ConfigItem.new(
275
+ key: :browserify,
276
+ env_name: "CORDOVA_BROWSERIFY",
277
+ description: "Specifies whether to browserify build or not",
278
+ default_value: false,
279
+ is_string: false
280
+ ),
281
+ FastlaneCore::ConfigItem.new(
282
+ key: :project,
283
+ env_name: "CORDOVA_PROJECT",
284
+ description: "Specifies project in multi-projects monorepo, the project is looked up by key in the projects object",
285
+ default_value: false,
286
+ is_string: true
287
+ ),
288
+ FastlaneCore::ConfigItem.new(
289
+ key: :configuration,
290
+ env_name: "CORDOVA_CONFIGURATION",
291
+ description: "Specifies the configuration to use (for instance to manage environment in angular)",
292
+ default_value: false,
293
+ is_string: true
294
+ ),
295
+ FastlaneCore::ConfigItem.new(
296
+ key: :cordova_prepare,
297
+ env_name: "CORDOVA_PREPARE",
298
+ description: "Specifies whether to run `ionic cordova prepare` before building",
299
+ default_value: true,
300
+ is_string: false
301
+ ),
302
+ FastlaneCore::ConfigItem.new(
303
+ key: :min_sdk_version,
304
+ env_name: "CORDOVA_ANDROID_MIN_SDK_VERSION",
305
+ description: "Overrides the value of minSdkVersion set in AndroidManifest.xml",
306
+ default_value: '',
307
+ is_string: false
308
+ ),
309
+ FastlaneCore::ConfigItem.new(
310
+ key: :cordova_no_fetch,
311
+ env_name: "CORDOVA_NO_FETCH",
312
+ description: "Call `cordova platform add` with `--nofetch` parameter",
313
+ default_value: false,
314
+ is_string: false
315
+ ),
316
+ FastlaneCore::ConfigItem.new(
317
+ key: :build_flag,
318
+ env_name: "CORDOVA_IOS_BUILD_FLAG",
319
+ description: "An array of Xcode buildFlag. Will be appended on compile command",
320
+ is_string: false,
321
+ optional: true,
322
+ default_value: []
323
+ ),
324
+ FastlaneCore::ConfigItem.new(
325
+ key: :cordova_build_config_file,
326
+ env_name: "CORDOVA_BUILD_CONFIG_FILE",
327
+ description: "Call `ionic cordova compile` with `--buildConfig=<ConfigFile>` to specify build config file path",
328
+ is_string: true,
329
+ optional: true,
330
+ default_value: ''
331
+ )
332
+ ]
333
+ end
334
+
335
+ def self.output
336
+ [
337
+ ['CORDOVA_ANDROID_RELEASE_BUILD_PATH', 'Path to the signed release APK if it was generated'],
338
+ ['CORDOVA_IOS_RELEASE_BUILD_PATH', 'Path to the signed release IPA if it was generated']
339
+ ]
340
+ end
341
+
342
+ def self.authors
343
+ ['Jan Piotrowski']
344
+ end
345
+
346
+ def self.is_supported?(platform)
347
+ true
348
+ end
349
+
350
+ def self.example_code
351
+ [
352
+ "ionic(
353
+ platform: 'ios'
354
+ )",
355
+ "ionic(
356
+ platform: 'android',
357
+ keystore_path: './staging.keystore',
358
+ keystore_alias: 'alias_name',
359
+ keystore_password: 'store_password'
360
+ )"
361
+ ]
362
+ end
363
+
364
+ def self.category
365
+ :building
366
+ end
367
+ end
368
+ end
369
+ end
@@ -0,0 +1,12 @@
1
+ module Fastlane
2
+ module Helper
3
+ class IonicHelper
4
+ # class methods that you define here become available in your action
5
+ # as `Helper::IonicHelper.your_method`
6
+ #
7
+ def self.show_message
8
+ UI.message("Hello from the ionic plugin helper!")
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,5 @@
1
+ module Fastlane
2
+ module Ionic
3
+ VERSION = "0.1.1"
4
+ end
5
+ end
@@ -0,0 +1,16 @@
1
+ require 'fastlane/plugin/ionic/version'
2
+
3
+ module Fastlane
4
+ module IonicConf
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::IonicConf.all_classes.each do |current|
15
+ require current
16
+ end
metadata ADDED
@@ -0,0 +1,132 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fastlane-plugin-ionic_conf
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Zac Burrage
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: pry
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: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
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: rubocop
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: fastlane
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 1.111.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 1.111.0
97
+ description:
98
+ email: zac.burrage@gmail.com
99
+ executables: []
100
+ extensions: []
101
+ extra_rdoc_files: []
102
+ files:
103
+ - LICENSE
104
+ - README.md
105
+ - lib/fastlane/plugin/ionic-conf.rb
106
+ - lib/fastlane/plugin/ionic-conf/actions/ionic_action.rb
107
+ - lib/fastlane/plugin/ionic-conf/helper/ionic_helper.rb
108
+ - lib/fastlane/plugin/ionic-conf/version.rb
109
+ homepage: https://github.com/zdburrage/fastlane-plugin-ionic
110
+ licenses:
111
+ - MIT
112
+ metadata: {}
113
+ post_install_message:
114
+ rdoc_options: []
115
+ require_paths:
116
+ - lib
117
+ required_ruby_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - ">="
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ required_rubygems_version: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ requirements: []
128
+ rubygems_version: 3.0.3.1
129
+ signing_key:
130
+ specification_version: 4
131
+ summary: Build your Ionic app
132
+ test_files: []