fastlane-plugin-android_version_manager 0.1.0 → 0.2.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87860bf0d6ecd00b369a426b3fd2b67005efcf44fed108ed6cf7174287f8a5b7
|
4
|
+
data.tar.gz: 59c3c15839cc90eefe2f30153a206f1e108657326e2845b875e3676295101c00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffa393fa739124f60b5b7a733398ef94ea11b11d64eb550b3e71ebc93831bc6c982da2bfa859990a7a0a817142c2f4ad227aae774b4ef0bba3c6a3d38e660650
|
7
|
+
data.tar.gz: 959c73e714ecc1af244cd6e1ed861728ce9b987d9468b18aa2dc831a0bd28c200cc25e2359c7e2e6e25bcd792939f54195320150fea71cba2740444ca3d96219
|
data/README.md
CHANGED
@@ -44,18 +44,6 @@ This plugin does not provide any functionality related to version control. This
|
|
44
44
|
|
45
45
|
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
46
46
|
|
47
|
-
## Run tests for this plugin
|
48
|
-
|
49
|
-
To run both the tests, and code style validation, run
|
50
|
-
|
51
|
-
```
|
52
|
-
bundle exec rake
|
53
|
-
```
|
54
|
-
|
55
|
-
To automatically fix many of the styling issues, use
|
56
|
-
```
|
57
|
-
bundle exec rubocop -a
|
58
|
-
```
|
59
47
|
|
60
48
|
## Issues and Feedback
|
61
49
|
|
@@ -72,3 +60,33 @@ For more information about how the `fastlane` plugin system works, check out the
|
|
72
60
|
## About _fastlane_
|
73
61
|
|
74
62
|
_fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
|
63
|
+
|
64
|
+
## Development
|
65
|
+
|
66
|
+
After cloning the repo, run:
|
67
|
+
|
68
|
+
```bash
|
69
|
+
bundle install --path vendor/bundle
|
70
|
+
```
|
71
|
+
|
72
|
+
### Run tests for this plugin
|
73
|
+
|
74
|
+
To run both the tests, and code style validation, run
|
75
|
+
|
76
|
+
```bash
|
77
|
+
bundle exec rake
|
78
|
+
```
|
79
|
+
|
80
|
+
To automatically fix many of the styling issues, use
|
81
|
+
```bash
|
82
|
+
bundle exec rubocop -a
|
83
|
+
```
|
84
|
+
|
85
|
+
### Releasing
|
86
|
+
|
87
|
+
1. increment version at [`./lib/fastlane/plugin/android_version_manager/version.rb`](./lib/fastlane/plugin/android_version_manager/version.rb).
|
88
|
+
2. commit changes
|
89
|
+
3. run:
|
90
|
+
```bash
|
91
|
+
bundle exec rake release
|
92
|
+
```
|
@@ -24,17 +24,14 @@ module Fastlane
|
|
24
24
|
UI.verbose("get_key_from_gradle_file - path: #{path}")
|
25
25
|
UI.verbose("get_key_from_gradle_file - absolute_path: #{File.expand_path(path)}")
|
26
26
|
begin
|
27
|
-
File.
|
28
|
-
|
29
|
-
|
30
|
-
next
|
31
|
-
end
|
32
|
-
line_found = line
|
33
|
-
line_found_index = index
|
34
|
-
_key, _equals, _left, value, _right, _comment = line.match(regex).captures
|
35
|
-
break
|
27
|
+
File.foreach(path).with_index do |line, index|
|
28
|
+
unless line.match(regex) && !found
|
29
|
+
next
|
36
30
|
end
|
37
|
-
|
31
|
+
line_found = line
|
32
|
+
line_found_index = index
|
33
|
+
_key, _equals, _left, value, _right, _comment = line.match(regex).captures
|
34
|
+
break
|
38
35
|
end
|
39
36
|
end
|
40
37
|
end
|
@@ -50,7 +47,7 @@ module Fastlane
|
|
50
47
|
Tempfile.open(".#{File.basename(path)}", File.dirname(path)) do |tempfile|
|
51
48
|
UI.verbose("set_key_value_on_gradle_file - path: #{path}")
|
52
49
|
UI.verbose("set_key_value_on_gradle_file - absolute_path: #{File.expand_path(path)}")
|
53
|
-
File.
|
50
|
+
File.foreach(path).with_index do |line, index|
|
54
51
|
tempfile.puts(index == line_found_index ? line.sub(value, new_value.to_s) : line)
|
55
52
|
end
|
56
53
|
tempfile.close
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-android_version_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Cardoso Machado
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semantic
|
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
|
-
rubygems_version: 3.
|
189
|
+
rubygems_version: 3.1.2
|
190
190
|
signing_key:
|
191
191
|
specification_version: 4
|
192
192
|
summary: Android's App Version Managment
|