fastlane-plugin-sunny_project 0.1.14 → 0.1.15
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6aea270fd928ab346d0584a3e4f38da827b8b3419a708c22ccec6998afcfe367
|
4
|
+
data.tar.gz: 30898a2a549a849d9d2c9b9cb62dbb6be17da9a9c6324c09ff70780bb38a18d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e917e23d4bff8cc4cf7faf4512a1230bd86664a55334e10976e9f14469b291d50ea5432098c5e7ed7135f8814a2a100b65205ed13b11d4c923757f9e4450023a
|
7
|
+
data.tar.gz: 46dcab55ca6f875ef076ccf3c7d757633a63f5a1f528a991379b55fb1a20039c31af4a91b19748a66b893eee71097c761464a87c7410f1af8b5b1403d62415cd
|
@@ -29,6 +29,7 @@ module Fastlane
|
|
29
29
|
Sunny.run_action(EnsureGitStatusCleanAction)
|
30
30
|
end
|
31
31
|
|
32
|
+
|
32
33
|
sunny_file = Sunny.config(SunnyProject::Options.available_options, {})
|
33
34
|
sunny_file.load_configuration_file("Sunnyfile")
|
34
35
|
|
@@ -71,7 +72,7 @@ module Fastlane
|
|
71
72
|
UI.important "Skipping Flutter Build"
|
72
73
|
else
|
73
74
|
UI.header "Run Flutter Build"
|
74
|
-
Sunny.build_ios(build_number
|
75
|
+
Sunny.build_ios(build_number)
|
75
76
|
end
|
76
77
|
require 'match'
|
77
78
|
build_opts = options[:build_options]
|
@@ -108,10 +109,10 @@ module Fastlane
|
|
108
109
|
|
109
110
|
end
|
110
111
|
rescue StandardError => e
|
111
|
-
UI.user_error!(">> build ios failed << \n #{e}", {})
|
112
112
|
# Put the version back like it was
|
113
113
|
UI.important("Restoring old version: #{old_version}")
|
114
114
|
Sunny.override_version(version: old_version)
|
115
|
+
UI.user_error!(">> build ios failed #{e} << \n #{e.backtrace.join("\n")}")
|
115
116
|
return
|
116
117
|
end
|
117
118
|
|
@@ -240,8 +241,8 @@ module Fastlane
|
|
240
241
|
|
241
242
|
FastlaneCore::ConfigItem.new(key: :skip_flutter_build,
|
242
243
|
env_name: "SKIP FLUTTER BUILD",
|
243
|
-
description: "
|
244
|
-
optional:
|
244
|
+
description: "Skip the initial flutter build",
|
245
|
+
optional: true,
|
245
246
|
type: Object),
|
246
247
|
FastlaneCore::ConfigItem.new(key: :verbose,
|
247
248
|
env_name: "SUNNY_VERBOSE",
|
@@ -29,7 +29,6 @@ module Fastlane
|
|
29
29
|
action.run(self.config(action.available_options, options))
|
30
30
|
end
|
31
31
|
|
32
|
-
|
33
32
|
def self.do_increase_version(options)
|
34
33
|
command = "pubver #{options[:type]} "
|
35
34
|
if options[:type] == 'patch'
|
@@ -81,7 +80,7 @@ module Fastlane
|
|
81
80
|
return changes
|
82
81
|
end
|
83
82
|
unless File.file?(Sunny.release_notes_file)
|
84
|
-
changes =
|
83
|
+
changes = Sunny.string(Fastlane::Actions::ChangelogFromGitCommitsAction.run(
|
85
84
|
path: "./",
|
86
85
|
pretty: "%B",
|
87
86
|
ancestry_path: false,
|
@@ -130,22 +129,20 @@ module Fastlane
|
|
130
129
|
UI.user_error! "No version parameter found"
|
131
130
|
return
|
132
131
|
end
|
133
|
-
|
134
|
-
sync_version_number(semver)
|
132
|
+
self.exec_cmd("set_version", "pubver set #{semver}", quiet: true)
|
133
|
+
self.sync_version_number(semver)
|
135
134
|
end
|
136
135
|
|
137
136
|
def self.sync_version_number(version)
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
end
|
148
|
-
}
|
137
|
+
if version
|
138
|
+
self.run_action(Fastlane::Actions::IncrementVersionNumberAction,
|
139
|
+
version_number: "#{version.major}.#{version.minor}.#{version.patch}",
|
140
|
+
xcodeproj: "ios/Runner.xcodeproj"
|
141
|
+
)
|
142
|
+
else
|
143
|
+
UI.user_error! "No version found"
|
144
|
+
end
|
145
|
+
|
149
146
|
end
|
150
147
|
|
151
148
|
def self.build_ios(build_num, **options)
|
@@ -168,7 +165,7 @@ module Fastlane
|
|
168
165
|
|
169
166
|
## Retrieves the current semver based on git tags
|
170
167
|
def self.current_version_string
|
171
|
-
self.exec_cmd("get version", "pubver get", quiet:true)
|
168
|
+
self.exec_cmd("get version", "pubver get", quiet: true)
|
172
169
|
end
|
173
170
|
|
174
171
|
# lane :ximg do |options|
|
@@ -197,10 +194,10 @@ module Fastlane
|
|
197
194
|
|
198
195
|
def self.underscore(str)
|
199
196
|
str.gsub(/::/, '/').
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
197
|
+
gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2').
|
198
|
+
gsub(/([a-z\d])([A-Z])/, '\1_\2').
|
199
|
+
tr("-", "_").
|
200
|
+
downcase
|
204
201
|
end
|
205
202
|
end
|
206
203
|
end
|