fastlane-plugin-fivethree_ionic 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_select_branding.rb +91 -0
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_select_brandings.rb +106 -0
- data/lib/fastlane/plugin/fivethree_ionic/version.rb +1 -1
- metadata +5 -4
- data/lib/fastlane/plugin/fivethree_ionic/actions/fivethree_ionic_action.rb +0 -47
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c05f8c0dbe685e40f93ea3358d72bd4daddcd62d843141439219179e46ee4de7
|
4
|
+
data.tar.gz: 4d54eab0ff63ff7fbe357ae960929f8160e25faaf2401136621efe24236a6a70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 042bfceaf4e76a0ff6f20eee265c27c36a038a73148e4d8bf10acb5a7ced1ae80e84e4737c7bfe97fe5f9acc0f733f74d7682d6695317c10fee857b310fd4d83
|
7
|
+
data.tar.gz: 2ee2747b5ba294c56da4139c85943340acdb5f516e4ec7f45004f5f7704f5ee1ba3a1f99f54cf55a88cd095d864da8d6a24c0643a7ef7417849c22c6355d3679
|
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2018 Marc Stammerjohann
|
3
|
+
Copyright (c) 2018 Gary Großgarten, Marc Stammerjohann
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
@@ -42,7 +42,7 @@ rubocop -a
|
|
42
42
|
* `sudo rake install`
|
43
43
|
* increment version number in `lib/fastlane/plugin/fivethree_ionic/version.rb`
|
44
44
|
* build new plugin version `rake build`
|
45
|
-
* publish ruby gem `gem push pkg/fastlane-plugin-fivethree_ionic
|
45
|
+
* publish ruby gem `gem push pkg/fastlane-plugin-fivethree_ionic-${version}`
|
46
46
|
|
47
47
|
## Issues and Feedback
|
48
48
|
|
@@ -0,0 +1,91 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
module SharedValues
|
4
|
+
FIV_SELECTED_BRANDING_KEY = :FIV_SELECTED_BRANDING_KEY
|
5
|
+
FIV_SELECTED_BRANDING_PATH = :FIV_SELECTED_BRANDING_PATH
|
6
|
+
end
|
7
|
+
|
8
|
+
class FivSelectBrandingAction < Action
|
9
|
+
def self.run(params)
|
10
|
+
Dir.chdir "#{params[:branding_folder]}" do
|
11
|
+
branding_folders = Dir.glob('*').select {|f| File.directory? f}
|
12
|
+
selected_branding_key = UI.select("Select one branding: ", branding_folders)
|
13
|
+
|
14
|
+
puts "
|
15
|
+
***********************************************
|
16
|
+
Selected branding key = #{selected_branding_key}
|
17
|
+
***********************************************
|
18
|
+
"
|
19
|
+
|
20
|
+
ENV['FIV_SELECTED_BRANDING_KEY'] = selected_branding_key
|
21
|
+
ENV['FIV_SELECTED_BRANDING_PATH'] = "#{params[:branding_folder]}/#{selected_branding_key}"
|
22
|
+
|
23
|
+
return selected_branding_key
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
#####################################################
|
28
|
+
# @!group Documentation
|
29
|
+
#####################################################
|
30
|
+
|
31
|
+
def self.description
|
32
|
+
"Action lets the user select one branding key from a folder"
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.details
|
36
|
+
# Optional:
|
37
|
+
# this is your chance to provide a more detailed description of this action
|
38
|
+
"For whitelabel programming it is very helpful to extract all assets into a `brandings` folder.
|
39
|
+
This actions helps to select one branding key which can further be used to copy assets, build application or more."
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.available_options
|
43
|
+
# Define all options your action supports.
|
44
|
+
|
45
|
+
# Below a few examples
|
46
|
+
[
|
47
|
+
FastlaneCore::ConfigItem.new(key: :branding_folder,
|
48
|
+
env_name: "FIV_SELECT_BRANDING_API_TOKEN", # The name of the environment variable
|
49
|
+
description: "Branding folder path for FivSelectBrandingAction", # a short description of this parameter
|
50
|
+
default_value: "../brandings",
|
51
|
+
is_string: true,
|
52
|
+
verify_block: proc do |value|
|
53
|
+
UI.user_error!("No branding folder path for FivSelectBrandingAction given, pass using `branding_folder: '../path_to_branding_folder'`") unless (value and not value.empty?)
|
54
|
+
UI.user_error!("Couldn't find branding folder at path '#{value}'") unless File.directory?(value)
|
55
|
+
end)
|
56
|
+
]
|
57
|
+
end
|
58
|
+
|
59
|
+
def self.output
|
60
|
+
# Define the shared values you are going to provide
|
61
|
+
# Example
|
62
|
+
[
|
63
|
+
['FIV_SELECTED_BRANDING_KEY', 'Selected branding key'],
|
64
|
+
['FIV_SELECTED_BRANDING_PATH', 'Selected branding path']
|
65
|
+
]
|
66
|
+
end
|
67
|
+
|
68
|
+
def self.return_value
|
69
|
+
# If your method provides a return value, you can describe here what it does
|
70
|
+
end
|
71
|
+
|
72
|
+
def self.authors
|
73
|
+
# So no one will ever forget your contribution to fastlane :) You are awesome btw!
|
74
|
+
["marcjulian"]
|
75
|
+
end
|
76
|
+
|
77
|
+
def self.is_supported?(platform)
|
78
|
+
# you can do things like
|
79
|
+
#
|
80
|
+
# true
|
81
|
+
#
|
82
|
+
# platform == :ios
|
83
|
+
#
|
84
|
+
# [:ios, :mac].include?(platform)
|
85
|
+
#
|
86
|
+
|
87
|
+
true
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,106 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
module SharedValues
|
4
|
+
FIV_SELECT_BRANDING_KEYS = :FIV_SELECT_BRANDING_KEYS
|
5
|
+
end
|
6
|
+
|
7
|
+
class FivSelectBrandingsAction < Action
|
8
|
+
def self.run(params)
|
9
|
+
branding_keys = []
|
10
|
+
|
11
|
+
if (ENV["SELECTED_BRANDING"])
|
12
|
+
# If comma separated branding array is specified via console parameter
|
13
|
+
ENV["SELECTED_BRANDING"].split(",").each {|branding| branding_keys.push(branding)}
|
14
|
+
else
|
15
|
+
puts "
|
16
|
+
***********************************************************************
|
17
|
+
You can also specify one or more brandings via command line parameter
|
18
|
+
e.g. 'brandings:branding1'
|
19
|
+
***********************************************************************
|
20
|
+
"
|
21
|
+
Dir.chdir "#{params[:branding_folder]}" do
|
22
|
+
branding_folders = Dir.glob('*').select {|f| File.directory? f}
|
23
|
+
branding_folders.unshift("ALL")
|
24
|
+
selected_branding_key = UI.select("Select branding: ", branding_folders)
|
25
|
+
|
26
|
+
if (selected_branding_key == "ALL")
|
27
|
+
branding_folders.shift # remove "ALL" entry
|
28
|
+
branding_keys = branding_folders
|
29
|
+
else
|
30
|
+
selected_branding_key.split(",").each {|branding| branding_keys.push(branding)}
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
puts "
|
36
|
+
***********************************************
|
37
|
+
Selected branding keys = #{branding_keys}
|
38
|
+
***********************************************
|
39
|
+
"
|
40
|
+
|
41
|
+
return branding_keys
|
42
|
+
end
|
43
|
+
|
44
|
+
#####################################################
|
45
|
+
# @!group Documentation
|
46
|
+
#####################################################
|
47
|
+
|
48
|
+
def self.description
|
49
|
+
"A short description with <= 80 characters of what this action does"
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.details
|
53
|
+
# Optional:
|
54
|
+
# this is your chance to provide a more detailed description of this action
|
55
|
+
"You can use this action to do cool things..."
|
56
|
+
end
|
57
|
+
|
58
|
+
def self.available_options
|
59
|
+
# Define all options your action supports.
|
60
|
+
|
61
|
+
# Below a few examples
|
62
|
+
[
|
63
|
+
FastlaneCore::ConfigItem.new(key: :branding_folder,
|
64
|
+
env_name: "FIV_SELECT_BRANDING_FOLDER", # The name of the environment variable
|
65
|
+
description: "Branding folder path for FivSelectBrandingsAction", # a short description of this parameter
|
66
|
+
default_value: "../brandings",
|
67
|
+
is_string: true,
|
68
|
+
verify_block: proc do |value|
|
69
|
+
UI.user_error!("No branding folder path for FivSelectBrandingAction given, pass using `branding_folder: '../path_to_branding_folder'`") unless (value and not value.empty?)
|
70
|
+
UI.user_error!("Couldn't find branding folder at path '#{value}'") unless File.directory?(value)
|
71
|
+
end)
|
72
|
+
]
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.output
|
76
|
+
# Define the shared values you are going to provide
|
77
|
+
# Example
|
78
|
+
[
|
79
|
+
['FIV_SELECT_BRANDING_KEYS', 'A description of what this value contains']
|
80
|
+
]
|
81
|
+
end
|
82
|
+
|
83
|
+
def self.return_value
|
84
|
+
# If your method provides a return value, you can describe here what it does
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.authors
|
88
|
+
# So no one will ever forget your contribution to fastlane :) You are awesome btw!
|
89
|
+
["marcjulian"]
|
90
|
+
end
|
91
|
+
|
92
|
+
def self.is_supported?(platform)
|
93
|
+
# you can do things like
|
94
|
+
#
|
95
|
+
# true
|
96
|
+
#
|
97
|
+
# platform == :ios
|
98
|
+
#
|
99
|
+
# [:ios, :mac].include?(platform)
|
100
|
+
#
|
101
|
+
|
102
|
+
true
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-fivethree_ionic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marc Stammerjohann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -152,12 +152,13 @@ files:
|
|
152
152
|
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_clean_install.rb
|
153
153
|
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_increment_build_no.rb
|
154
154
|
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_ionic.rb
|
155
|
+
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_select_branding.rb
|
156
|
+
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_select_brandings.rb
|
155
157
|
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_sign_android.rb
|
156
158
|
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_take_screenshots.rb
|
157
159
|
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_update_version.rb
|
158
160
|
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_update_version_and_build_no.rb
|
159
161
|
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_version.rb
|
160
|
-
- lib/fastlane/plugin/fivethree_ionic/actions/fivethree_ionic_action.rb
|
161
162
|
- lib/fastlane/plugin/fivethree_ionic/helper/fivethree_ionic_helper.rb
|
162
163
|
- lib/fastlane/plugin/fivethree_ionic/version.rb
|
163
164
|
homepage:
|
@@ -180,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
181
|
version: '0'
|
181
182
|
requirements: []
|
182
183
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.
|
184
|
+
rubygems_version: 2.7.7
|
184
185
|
signing_key:
|
185
186
|
specification_version: 4
|
186
187
|
summary: Fastlane plugin for Ionic v4 Projects
|
@@ -1,47 +0,0 @@
|
|
1
|
-
require 'fastlane/action'
|
2
|
-
require_relative '../helper/fivethree_ionic_helper'
|
3
|
-
|
4
|
-
module Fastlane
|
5
|
-
module Actions
|
6
|
-
class FivethreeIonicAction < Action
|
7
|
-
def self.run(params)
|
8
|
-
UI.message("The fivethree_ionic plugin is working!")
|
9
|
-
end
|
10
|
-
|
11
|
-
def self.description
|
12
|
-
"Fastlane plugin for Ionic v4 Projects"
|
13
|
-
end
|
14
|
-
|
15
|
-
def self.authors
|
16
|
-
["Marc Stammerjohann"]
|
17
|
-
end
|
18
|
-
|
19
|
-
def self.return_value
|
20
|
-
# If your method provides a return value, you can describe here what it does
|
21
|
-
end
|
22
|
-
|
23
|
-
def self.details
|
24
|
-
# Optional:
|
25
|
-
"Fastlane"
|
26
|
-
end
|
27
|
-
|
28
|
-
def self.available_options
|
29
|
-
[
|
30
|
-
# FastlaneCore::ConfigItem.new(key: :your_option,
|
31
|
-
# env_name: "FIVETHREE_IONIC_YOUR_OPTION",
|
32
|
-
# description: "A description of your option",
|
33
|
-
# optional: false,
|
34
|
-
# type: String)
|
35
|
-
]
|
36
|
-
end
|
37
|
-
|
38
|
-
def self.is_supported?(platform)
|
39
|
-
# Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
40
|
-
# See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
|
41
|
-
#
|
42
|
-
# [:ios, :mac, :android].include?(platform)
|
43
|
-
true
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|