fastlane-plugin-fir 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 +4 -4
- data/README.md +27 -5
- data/lib/fastlane/plugin/fir/actions/fir_action.rb +8 -7
- data/lib/fastlane/plugin/fir/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c9ed3d51c8cc86c6649f4d863bddb5eaebf88bf
|
4
|
+
data.tar.gz: 3043d98d0ebf3d91f9d3866cad3b33360ef5c0fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edd07a33d35de984e95faca1f6606669b91bbe7315d844099d5acbb0c2c39d60d72c9311ea4746124d17bd2d5c958e03e47ec4206c5223e96320e00591de1060
|
7
|
+
data.tar.gz: 3f2424b3b3e9f699cb4c49b57bfcb67a0bcf68d0a21f797a8e11df39fd282e1f91972ce88eda833aa11d6e05a4572dcd32eb6cb09d86a0fa2748d7bb0ea9f6e9
|
data/README.md
CHANGED
@@ -1,31 +1,53 @@
|
|
1
1
|
# fir plugin
|
2
2
|
|
3
3
|
[](https://rubygems.org/gems/fastlane-plugin-fir)
|
4
|
+
[](https://travis-ci.org/dongorigin/fastlane-plugin-fir)
|
5
|
+
[](https://github.com/dongorigin/fastlane-plugin-fir/blob/master/LICENSE)
|
4
6
|
|
5
7
|
## Getting Started
|
6
8
|
|
7
9
|
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-fir`, add it to your project by running:
|
8
|
-
|
9
10
|
```bash
|
10
11
|
fastlane add_plugin fir
|
11
12
|
```
|
12
13
|
|
13
14
|
## About fir
|
14
15
|
|
15
|
-
Upload a new build to fir.im
|
16
|
+
Upload a new build to [fir](fir.im) for distribute the build to beta testers. Currently based on [fir-cli](https://github.com/FIRHQ/fir-cli) implementation.
|
17
|
+
|
18
|
+
## Features
|
16
19
|
|
17
|
-
|
20
|
+
- [x] support android
|
21
|
+
- [ ] support ios
|
22
|
+
- [ ] remove dependency fir-cli
|
18
23
|
|
19
24
|
## Example
|
20
25
|
|
21
26
|
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`.
|
27
|
+
```ruby
|
28
|
+
fir(
|
29
|
+
api_token: '...',
|
30
|
+
apk_path: './app-release.apk',
|
31
|
+
changelog: 'Changelog'
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
35
|
+
## Parameters
|
22
36
|
|
23
|
-
|
37
|
+
| Key | Description |
|
38
|
+
|-----------|--------------------------------------------------------------|
|
39
|
+
| api_token | API Token for fir.im |
|
40
|
+
| apk_path | Path to your APK file. Optional if you use the gradle action |
|
41
|
+
| changelog | Release changelog, support string or file path |
|
42
|
+
|
43
|
+
To show the full documentation in your terminal, run
|
44
|
+
```bash
|
45
|
+
fastlane action fir
|
46
|
+
```
|
24
47
|
|
25
48
|
## Run tests for this plugin
|
26
49
|
|
27
50
|
To run both the tests, and code style validation, run
|
28
|
-
|
29
51
|
```
|
30
52
|
rake
|
31
53
|
```
|
@@ -6,9 +6,10 @@ module Fastlane
|
|
6
6
|
|
7
7
|
class FirAction < Action
|
8
8
|
def self.run(params)
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
command = ["fir publish #{params[:apk_path]}"]
|
10
|
+
command << "-T #{params[:api_token]}"
|
11
|
+
command << "-c \'#{params[:changelog]}\'" unless params[:changelog].empty?
|
12
|
+
sh command
|
12
13
|
|
13
14
|
# Actions.lane_context[SharedValues::FIR_DOWNLOAD_LINK] = ""
|
14
15
|
end
|
@@ -31,18 +32,18 @@ module Fastlane
|
|
31
32
|
description: "API Token for fir.im",
|
32
33
|
sensitive: true,
|
33
34
|
verify_block: proc do |value|
|
34
|
-
|
35
|
+
UI.user_error!("No API token for FirAction given, pass using `api_token: 'token'`") unless (value and not value.empty?)
|
35
36
|
end),
|
36
37
|
FastlaneCore::ConfigItem.new(key: :apk_path,
|
37
38
|
env_name: "FL_FIR_APK_PATH",
|
38
39
|
description: "Path to your APK file. Optional if you use the gradle action",
|
39
40
|
default_value: lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH],
|
40
41
|
verify_block: proc do |value|
|
41
|
-
|
42
|
+
UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
42
43
|
end),
|
43
44
|
FastlaneCore::ConfigItem.new(key: :changelog,
|
44
45
|
env_name: "FL_FIR_CHANGELOG",
|
45
|
-
description: "Release
|
46
|
+
description: "Release changelog, support string or file path",
|
46
47
|
default_value: "")
|
47
48
|
]
|
48
49
|
end
|
@@ -52,7 +53,7 @@ module Fastlane
|
|
52
53
|
# ['FIR_DOWNLOAD_LINK', 'The newly generated download link for this build']
|
53
54
|
]
|
54
55
|
end
|
55
|
-
|
56
|
+
|
56
57
|
def self.authors
|
57
58
|
["dongorigin"]
|
58
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-fir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dongorigin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fir-cli
|