fastlane-plugin-fivethree_ionic 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_bump_version.rb +62 -0
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_update_version_and_build_no.rb +66 -0
- data/lib/fastlane/plugin/fivethree_ionic/actions/fiv_version.rb +109 -0
- data/lib/fastlane/plugin/fivethree_ionic/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a75285850239bce8920f6049beb1f0c88539bb1
|
4
|
+
data.tar.gz: 51cd9286a3ef592c007413b5d43a0c1fde4b6540
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02b18fcc1d4fbd4c722bb32815081b1094f757f9d37c7c85fb430d6f444564c9a5c59d76bb16fe8cc976cbc456c3b61293f93643321fab4fed538f1007c73f0f
|
7
|
+
data.tar.gz: 5a11042677f9896b6ea881ebf9e3b4bc181c78e75bb07b3f2d46cd844c1291327bd8292d5d2544e8942f11cce685ce05157f56e456d62b3384de19244f0c7ee3
|
@@ -0,0 +1,62 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
module SharedValues
|
4
|
+
FIV_BUILD_IONIC_ANDROID_CUSTOM_VALUE = :FIV_BUILD_IONIC_ANDROID_CUSTOM_VALUE
|
5
|
+
end
|
6
|
+
|
7
|
+
class FivBumpVersionAction < Action
|
8
|
+
def self.run(params)
|
9
|
+
sh "git add config.xml"
|
10
|
+
sh "git commit -m \"#{params[:message]}\""
|
11
|
+
end
|
12
|
+
|
13
|
+
#####################################################
|
14
|
+
# @!group Documentation
|
15
|
+
#####################################################
|
16
|
+
|
17
|
+
def self.description
|
18
|
+
"A short description with <= 80 characters of what this action does"
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.details
|
22
|
+
# Optional:
|
23
|
+
# this is your chance to provide a more detailed description of this action
|
24
|
+
"You can use this action to do cool things..."
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.available_options
|
28
|
+
# Define all options your action supports.
|
29
|
+
|
30
|
+
# Below a few examples
|
31
|
+
[
|
32
|
+
FastlaneCore::ConfigItem.new(key: :message,
|
33
|
+
env_name: "FIV_BUILD_IONIC_ANDROID_IS_PROD",
|
34
|
+
description: "Dev or Prod build",
|
35
|
+
optional: false,
|
36
|
+
type: String)
|
37
|
+
]
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.output
|
41
|
+
# Define the shared values you are going to provide
|
42
|
+
# Example
|
43
|
+
[
|
44
|
+
['FIV_BUILD_IONIC_ANDROID_CUSTOM_VALUE', 'A description of what this value contains']
|
45
|
+
]
|
46
|
+
end
|
47
|
+
|
48
|
+
def self.return_value
|
49
|
+
# If your method provides a return value, you can describe here what it does
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.authors
|
53
|
+
# So no one will ever forget your contribution to fastlane :) You are awesome btw!
|
54
|
+
["Your GitHub/Twitter Name"]
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.is_supported?(platform)
|
58
|
+
platform == :android
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
require 'fastlane/action'
|
2
|
+
require_relative '../helper/fivethree_ionic_helper'
|
3
|
+
require_relative './fiv_update_version'
|
4
|
+
require_relative './fiv_increment_build_no'
|
5
|
+
|
6
|
+
module Fastlane
|
7
|
+
module Actions
|
8
|
+
class FivUpdateVersionAndBuildNoAction < Action
|
9
|
+
def self.run(params)
|
10
|
+
|
11
|
+
version = Fastlane::Actions::FivUpdateVersionAction.run(pathToConfigXML:params[:pathToConfigXML])
|
12
|
+
build_no = Fastlane::Actions::FivIncrementBuildNoAction.run(
|
13
|
+
pathToConfigXML: params[:pathToConfigXML],
|
14
|
+
ios: params[:ios]
|
15
|
+
)
|
16
|
+
|
17
|
+
return {version: version, build_no: build_no}
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.description
|
22
|
+
"Fastlane plugin for Ionic v4 Projects"
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.authors
|
26
|
+
["Fivethree"]
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.return_value
|
30
|
+
# If your method provides a return value, you can describe here what it does
|
31
|
+
"returns object containing version and build_no"
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.details
|
35
|
+
# Optional:
|
36
|
+
"Fastlane"
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.available_options
|
40
|
+
[
|
41
|
+
FastlaneCore::ConfigItem.new(key: :ios,
|
42
|
+
env_name: "FIV_INCREMENT_BUILD_NO_IOS",
|
43
|
+
description: "---",
|
44
|
+
optional: false,
|
45
|
+
type: Boolean),
|
46
|
+
FastlaneCore::ConfigItem.new(key: :pathToConfigXML,
|
47
|
+
env_name: "FIV_INCREMENT_BUILD_CONFIG",
|
48
|
+
description: "---",
|
49
|
+
optional: false,
|
50
|
+
verify_block: proc do | value |
|
51
|
+
UI.user_error!("Couldnt find config.xml! Please change your path.") unless File.exist?(value)
|
52
|
+
end ,
|
53
|
+
type: String)
|
54
|
+
]
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.is_supported?(platform)
|
58
|
+
# Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
|
59
|
+
# See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
|
60
|
+
#
|
61
|
+
# [:ios, :mac, :android].include?(platform)
|
62
|
+
true
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,109 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
module SharedValues
|
4
|
+
FIV_BUILD_IONIC_ANDROID_CUSTOM_VALUE = :FIV_BUILD_IONIC_ANDROID_CUSTOM_VALUE
|
5
|
+
end
|
6
|
+
|
7
|
+
class FivVersionAction < Action
|
8
|
+
def self.run(params)
|
9
|
+
version_and_build_no = Fastlane::Actions::FivUpdateVersionAndBuildNoAction.run(ios: params[:ios],pathToConfigXML:params[:pathToConfigXML])
|
10
|
+
|
11
|
+
Fastlane::Actions::FivBumpVersionAction.run(
|
12
|
+
message: "Version Bump: build #{version_and_build_no[:build_no]}, version: #{version_and_build_no[:version]}"
|
13
|
+
)
|
14
|
+
|
15
|
+
|
16
|
+
Fastlane::Actions::PushToGitRemoteAction.run(
|
17
|
+
remote: params[:remote],
|
18
|
+
local_branch: params[:local_branch],
|
19
|
+
remote_branch: params[:remote_branch],
|
20
|
+
force: params[:force],
|
21
|
+
tags: params[:tags]
|
22
|
+
)
|
23
|
+
|
24
|
+
return version_and_build_no
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
#####################################################
|
29
|
+
# @!group Documentation
|
30
|
+
#####################################################
|
31
|
+
|
32
|
+
def self.description
|
33
|
+
"A short description with <= 80 characters of what this action does"
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.details
|
37
|
+
# Optional:
|
38
|
+
# this is your chance to provide a more detailed description of this action
|
39
|
+
"You can use this action to do cool things..."
|
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: :ios,
|
48
|
+
env_name: "FIV_INCREMENT_BUILD_NO_IOS",
|
49
|
+
description: "---",
|
50
|
+
optional: false,
|
51
|
+
type: Boolean),
|
52
|
+
FastlaneCore::ConfigItem.new(key: :pathToConfigXML,
|
53
|
+
env_name: "FIV_INCREMENT_BUILD_CONFIG",
|
54
|
+
description: "---",
|
55
|
+
optional: false,
|
56
|
+
verify_block: proc do | value |
|
57
|
+
UI.user_error!("Couldnt find config.xml! Please change your path.") unless File.exist?(value)
|
58
|
+
end ,
|
59
|
+
type: String),
|
60
|
+
FastlaneCore::ConfigItem.new(key: :local_branch,
|
61
|
+
env_name: "FL_GIT_PUSH_LOCAL_BRANCH",
|
62
|
+
description: "The local branch to push from. Defaults to the current branch",
|
63
|
+
default_value_dynamic: true,
|
64
|
+
optional: true),
|
65
|
+
FastlaneCore::ConfigItem.new(key: :remote_branch,
|
66
|
+
env_name: "FL_GIT_PUSH_REMOTE_BRANCH",
|
67
|
+
description: "The remote branch to push to. Defaults to the local branch",
|
68
|
+
default_value_dynamic: true,
|
69
|
+
optional: true),
|
70
|
+
FastlaneCore::ConfigItem.new(key: :force,
|
71
|
+
env_name: "FL_PUSH_GIT_FORCE",
|
72
|
+
description: "Force push to remote",
|
73
|
+
is_string: false,
|
74
|
+
default_value: false),
|
75
|
+
FastlaneCore::ConfigItem.new(key: :tags,
|
76
|
+
env_name: "FL_PUSH_GIT_TAGS",
|
77
|
+
description: "Whether tags are pushed to remote",
|
78
|
+
is_string: false,
|
79
|
+
default_value: true),
|
80
|
+
FastlaneCore::ConfigItem.new(key: :remote,
|
81
|
+
env_name: "FL_GIT_PUSH_REMOTE",
|
82
|
+
description: "The remote to push to",
|
83
|
+
default_value: 'origin')
|
84
|
+
]
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.output
|
88
|
+
# Define the shared values you are going to provide
|
89
|
+
# Example
|
90
|
+
[
|
91
|
+
['FIV_BUILD_IONIC_ANDROID_CUSTOM_VALUE', 'A description of what this value contains']
|
92
|
+
]
|
93
|
+
end
|
94
|
+
|
95
|
+
def self.return_value
|
96
|
+
# If your method provides a return value, you can describe here what it does
|
97
|
+
end
|
98
|
+
|
99
|
+
def self.authors
|
100
|
+
# So no one will ever forget your contribution to fastlane :) You are awesome btw!
|
101
|
+
["Your GitHub/Twitter Name"]
|
102
|
+
end
|
103
|
+
|
104
|
+
def self.is_supported?(platform)
|
105
|
+
platform == :android
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
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.4
|
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-08-
|
11
|
+
date: 2018-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -147,8 +147,11 @@ files:
|
|
147
147
|
- lib/fastlane/plugin/fivethree_ionic.rb
|
148
148
|
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_add_transparent_statusbar.rb
|
149
149
|
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_build_ionic_android.rb
|
150
|
+
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_bump_version.rb
|
150
151
|
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_increment_build_no.rb
|
151
152
|
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_update_version.rb
|
153
|
+
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_update_version_and_build_no.rb
|
154
|
+
- lib/fastlane/plugin/fivethree_ionic/actions/fiv_version.rb
|
152
155
|
- lib/fastlane/plugin/fivethree_ionic/actions/fivethree_ionic_action.rb
|
153
156
|
- lib/fastlane/plugin/fivethree_ionic/helper/fivethree_ionic_helper.rb
|
154
157
|
- lib/fastlane/plugin/fivethree_ionic/version.rb
|