fastlane-plugin-flutter_version 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/flutter_version.rb +2 -2
- data/lib/fastlane/plugin/flutter_version/actions/flutter_version_action.rb +10 -8
- data/lib/fastlane/plugin/flutter_version/helper/flutter_version_helper.rb +1 -1
- data/lib/fastlane/plugin/flutter_version/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30b35f422287cba08f605ff1797746112440473a2b1bd4b5f2291650f4da88ce
|
4
|
+
data.tar.gz: fbdd639da5100bf39b10962cf95e5c563afd2ac6bf10735ce0fd0b684d5f6cd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa59720457e20214d8ac09109a9e59d9244a9ac13f6837e50d1115eccf4edeb48b2f27d74f547c3b2b8a3372e71f4846be036f55b8a032dc891a37ce1b81010f
|
7
|
+
data.tar.gz: dc95e05ee1a161684bd95b5c76ea0e622fc9e9519e9fe4d621af1e12f7f703f1d6126f4e3b46e89c987f9997ab13213c2cfa68613f1ac067426ed4536e501ae6
|
@@ -1,10 +1,10 @@
|
|
1
|
-
require
|
1
|
+
require "fastlane/plugin/flutter_version/version"
|
2
2
|
|
3
3
|
module Fastlane
|
4
4
|
module FlutterVersion
|
5
5
|
# Return all .rb files inside the "actions" and "helper" directory
|
6
6
|
def self.all_classes
|
7
|
-
Dir[File.expand_path(
|
7
|
+
Dir[File.expand_path("**/{actions,helper}/*.rb", File.dirname(__FILE__))]
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
@@ -1,25 +1,27 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require_relative
|
1
|
+
require "fastlane/action"
|
2
|
+
require "yaml"
|
3
|
+
require_relative "../helper/flutter_version_helper"
|
4
4
|
|
5
5
|
module Fastlane
|
6
6
|
module Actions
|
7
7
|
class FlutterVersionAction < Action
|
8
8
|
def self.run(params)
|
9
|
-
UI.message("The flutter_version plugin is working!")
|
10
9
|
pubspec_location = params[:pubspec_location]
|
11
10
|
pubspec = YAML.load_file(pubspec_location)
|
12
11
|
version = pubspec["version"]
|
13
12
|
UI.message("The full version is: ".concat(version))
|
14
13
|
if not version.include? "+"
|
15
|
-
raise "Verson code indicator (+) not
|
14
|
+
raise "Verson code indicator (+) not found in pubspec.yml"
|
16
15
|
end
|
17
16
|
version_sections = version.split("+")
|
18
17
|
version_name = version_sections[0]
|
19
18
|
version_code = version_sections[1]
|
20
19
|
UI.message("The version name: ".concat(version_name))
|
21
20
|
UI.message("The version code: ".concat(version_code))
|
22
|
-
return
|
21
|
+
return {
|
22
|
+
"verison_code" => version_code,
|
23
|
+
"version_name" => version_name,
|
24
|
+
}
|
23
25
|
end
|
24
26
|
|
25
27
|
def self.description
|
@@ -32,7 +34,7 @@ module Fastlane
|
|
32
34
|
|
33
35
|
def self.return_value
|
34
36
|
[
|
35
|
-
[
|
37
|
+
["VERSION_CODE", "The version code"],
|
36
38
|
]
|
37
39
|
end
|
38
40
|
|
@@ -48,7 +50,7 @@ module Fastlane
|
|
48
50
|
description: "The location of pubspec.yml",
|
49
51
|
optional: true,
|
50
52
|
type: String,
|
51
|
-
default_value:"../pubspec.yaml"
|
53
|
+
default_value: "../pubspec.yaml",
|
52
54
|
),
|
53
55
|
]
|
54
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-flutter_version
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tianhaoz95
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.80.1
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.80.1
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop-require_tools
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|