fastlane-plugin-gs_project_flow_ios 0.4.6 → 0.4.7
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49d82edb5fabb3b6974dc5a2af77fd7315276836
|
4
|
+
data.tar.gz: 47581e900ff67b8c6885974eccd20b74818666f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4261bf4bafca8a4450d6926d3c567bc661f0c82f2c014b5308cd44d6d5ee28626cb4bf8f7093ebc07c93818db5fbd75cc6528b45c7134cdf75d55ded397f66d3
|
7
|
+
data.tar.gz: 9f4443de0e8045689d9770b289e49abb5eddd7247db29b433447960fb0a490ff099fbd37ada9a5c015a413b636dae6918c2c16369c1f9c3181af9b5a535eb411
|
@@ -4,6 +4,7 @@ module Fastlane
|
|
4
4
|
def self.run(params)
|
5
5
|
require 'fastlane/plugin/gs_versioning'
|
6
6
|
require 'fastlane/plugin/versioning'
|
7
|
+
ENV['RC_DID_FAILED'] = true
|
7
8
|
|
8
9
|
fastlaneHelper = Fastlane::Helper::GsProjectFlowIosHelper.new
|
9
10
|
arg = FastlaneCore::Configuration.create(GsIncrementRcVersionAction.available_options, {path:Helper::GsProjectFlowIosHelper.get_versions_path})
|
@@ -55,6 +56,7 @@ module Fastlane
|
|
55
56
|
UI.success("App is released to internal testing")
|
56
57
|
|
57
58
|
Actions::GsSaveRcVersionAction.run(FastlaneCore::Configuration.create(GsSaveRcVersionAction.available_options,{version: v, path:Helper::GsProjectFlowIosHelper.get_versions_path}))
|
59
|
+
ENV['RC_DID_FAILED'] = false
|
58
60
|
|
59
61
|
Actions::GsExecuteRcLaneAction.moveToReview(version_name)
|
60
62
|
UI.success("✅ App status is changed to Waiting For Review")
|
@@ -62,17 +62,34 @@ module Fastlane
|
|
62
62
|
return text
|
63
63
|
end
|
64
64
|
|
65
|
-
def self.version_for_lane(lane)
|
65
|
+
def self.version_for_lane(lane, buildState)
|
66
66
|
version_name = ""
|
67
67
|
if lane == :beta
|
68
|
-
|
68
|
+
if buildState == BuildState::FAILURE
|
69
|
+
v = Actions::GsIncrementBetaVersionAction.run(FastlaneCore::Configuration.create(Actions::GsIncrementBetaVersionAction.available_options,{path: GsProjectFlowIosHelper.get_versions_path}))
|
70
|
+
else
|
71
|
+
v = Actions::GsGetBetaVersionAction.run(FastlaneCore::Configuration.create(Actions::GsGetBetaVersionAction.available_options,{path: GsProjectFlowIosHelper.get_versions_path}))
|
72
|
+
end
|
73
|
+
|
69
74
|
version_name = v.major.to_s+ "." + v.minor.to_s + "." + v.build.to_s
|
70
75
|
elsif lane == :rc
|
71
|
-
|
76
|
+
if buildState == BuildState::FAILURE
|
77
|
+
if ENV['RC_DID_FAILED'] #Если произошла ошибка после отправки в стор
|
78
|
+
v = Actions::GsIncrementRcVersionAction.run(FastlaneCore::Configuration.create(Actions::GsIncrementBetaVersionAction.available_options,{path: GsProjectFlowIosHelper.get_versions_path}))
|
79
|
+
else
|
80
|
+
v = Actions::GsGetRcVersionAction.run(FastlaneCore::Configuration.create(Actions::GsGetBetaVersionAction.available_options,{path: GsProjectFlowIosHelper.get_versions_path}))
|
81
|
+
end
|
82
|
+
else
|
83
|
+
v = Actions::GsGetRcVersionAction.run(FastlaneCore::Configuration.create(Actions::GsGetBetaVersionAction.available_options,{path: GsProjectFlowIosHelper.get_versions_path}))
|
84
|
+
end
|
72
85
|
# v = gs_get_rc_version(path: GsProjectFlowIosHelper.get_versions_path)
|
73
86
|
version_name = v.major.to_s+ "." + v.minor.to_s
|
74
87
|
elsif lane == :release
|
75
|
-
|
88
|
+
if buildState == BuildState::FAILURE
|
89
|
+
v = Actions::GsIncrementReleaseVersionAction.run(FastlaneCore::Configuration.create(Actions::GsIncrementBetaVersionAction.available_options,{path: GsProjectFlowIosHelper.get_versions_path}))
|
90
|
+
else
|
91
|
+
v = Actions::GsGetReleaseVersionAction.run(FastlaneCore::Configuration.create(Actions::GsGetBetaVersionAction.available_options,{path: GsProjectFlowIosHelper.get_versions_path}))
|
92
|
+
end
|
76
93
|
# v = gs_get_release_version(path: GsProjectFlowIosHelper.get_versions_path)
|
77
94
|
version_name = v.major.to_s+ "." + v.minor.to_s
|
78
95
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-gs_project_flow_ios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Сергей Веселовский
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|