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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 192f0c2eaeeee701c96a6880fdaeb9f7bd4c3249
4
- data.tar.gz: dd7a3cda83ca244bda7084c611ee0b1e6b7cc5f0
3
+ metadata.gz: 3c9ed3d51c8cc86c6649f4d863bddb5eaebf88bf
4
+ data.tar.gz: 3043d98d0ebf3d91f9d3866cad3b33360ef5c0fd
5
5
  SHA512:
6
- metadata.gz: '098bf0de0d0c90ef2cd2123f3374393f6040c7ddb707c4f4b2ff4500b8bc5066d34f840078e25a72ce21cf9c925736c31953655a43afe5f468334d5cb38761d6'
7
- data.tar.gz: 7109d5434fefcf7c9ba165108214e6c9afe0c3784390a3af027c870a68df65db08c7be31411657befd6745d91100f0b4b2df0bde7370e68f0c250718a39cab85
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
  [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-fir)
4
+ [![Build Status](https://travis-ci.org/dongorigin/fastlane-plugin-fir.svg?branch=master)](https://travis-ci.org/dongorigin/fastlane-plugin-fir)
5
+ [![License](https://img.shields.io/badge/license-MIT-blue.svg)](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
- **Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
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
- **Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
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
- script = "fir publish #{params[:apk_path]} -T #{params[:api_token]}"
10
- script += " -c #{params[:changelog]}" unless params[:changelog].empty?
11
- sh script
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
- UI.user_error!("No API token for FirAction given, pass using `api_token: 'token'`") unless (value and not value.empty?)
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
- UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
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 ChangeLog, support string or file path",
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Fir
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  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.1.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-04 00:00:00.000000000 Z
11
+ date: 2017-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fir-cli