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: 1b40e0053f637e07d053a17c343cd7f9534b5fea432599585162068c8064be68
4
- data.tar.gz: 0f0c50ae8c57178a6d7d81423916f7a92184e35e2712653805f59ee1605ee7f1
3
+ metadata.gz: 6aea270fd928ab346d0584a3e4f38da827b8b3419a708c22ccec6998afcfe367
4
+ data.tar.gz: 30898a2a549a849d9d2c9b9cb62dbb6be17da9a9c6324c09ff70780bb38a18d1
5
5
  SHA512:
6
- metadata.gz: f8ba33b0495a4c50a9193c53782382eb744c9f03a643221cdb175e9f9bfccea8b0abb67159b21eb89b70a12c14bb73a74393142b275a2c1a247544446106aaf6
7
- data.tar.gz: 31ad9d4d7bdc85c57174942010c6c7d6fc9c68ff19e269c1b57de276f9ef89c7cc18a18f13c355399f39799fb7fa596c3481980f01a479bcac33a9ee94598a05
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, options)
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: "Where we're releasing to",
244
- optional: false,
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 = Sunny.string(Fastlane::Actions::ChangelogFromGitCommitsAction.run(
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
- cmd("set_version", "pubver set #{semver}")
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
- Dir.chdir("../ios") {
139
- if version
140
- ## This will update the xcode version number
141
- Fastlane::Actions::IncrementVersionNumberAction(
142
- version_number: "#{version.major}.#{version.minor}.#{version.patch}",
143
- xcodeproj: "ios/Runner.xcodeproj"
144
- )
145
- else
146
- UI.user_error! "No version found"
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
- gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2').
201
- gsub(/([a-z\d])([A-Z])/, '\1_\2').
202
- tr("-", "_").
203
- downcase
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module SunnyProject
3
- VERSION = "0.1.14"
3
+ VERSION = "0.1.15"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-sunny_project
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - ericmartineau