danger-apkstats 0.1.0 → 0.1.1.pre.1

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: 06da284025d85c4baf756df842fef7ed035bbc6a4b51e3869b03df48f851b480
4
- data.tar.gz: ed4436f89c1b65211bd338aa4e48095df59c7f518c69a185836cdde7655d2149
3
+ metadata.gz: bc90d50c7ccbf52ba7b65a54c9f494352b9882bfca62cc27eeff0ccf5305ce18
4
+ data.tar.gz: 12497ab827f964546df7f7471e0024ea01efbb1e3fb015a48f46937ed4414b74
5
5
  SHA512:
6
- metadata.gz: d67745379004649774230e918514f09ac792050190540f23efab90c29308b9b3fe098884288c975f2c74a37e1aab2d9434881224a4e9682a0be1bf58859a17a4
7
- data.tar.gz: 869be5736265bffec15b3468846b346a6a45c3b4796e7a80b4cf1448845009f22d9c6e5fb12bebc4c4d7a6e363bffa62a386cd4be18b39eeeeb9c31de139cd8c
6
+ metadata.gz: 11ae789816324a74458f94adf4d26729c341b30bc136cd9c48a85ad584cad331653e7850df3ca03da1d53450088ae3c54526d5d39514791190934c2eadee5370
7
+ data.tar.gz: 4a8b97229d25ae9574d1ad27b3e1d4205a3ef0203ab63856719a762de5edad1f485e0bbc3fdbf358641738fb0892c92a5511fdd66c83c4824bac3d54fb7a735f
data/README.md CHANGED
@@ -2,22 +2,28 @@
2
2
 
3
3
  # danger-apkstats
4
4
 
5
- A description of danger-apkstats.
5
+ This is a plugin of [Danger](https://github.com/danger/danger) for Android projects.
6
+ This allows you to get attributes of your application file (apk) and report a summary of comparison between two application files.
6
7
 
7
8
  ## Installation
8
9
 
9
- $ gem install danger-apkstats
10
+ `gem install danger-apkstats`
10
11
 
11
- ## Usage
12
+ Also, you need to have ANDROID_HOME which indicates sdk location in your environment variables.
12
13
 
13
- Methods and attributes from this plugin are available in
14
- your `Dangerfile` under the `apkstats` namespace.
14
+ ## Usage
15
15
 
16
- # Sample
16
+ `apkstats` namespace is available under Dangerfile.
17
+
18
+ ### Required preparation
17
19
 
18
20
  ```
19
21
  apkstats.apk_filepath='app-debug.apk' # required.
20
- apkstats.compare_with('app-other.apk', do_report: true)
22
+ ```
23
+
24
+ ### Show attributes
25
+
26
+ ```
21
27
  apkstats.file_size #=> Fixnum
22
28
  apkstats.download_size #=> Fixnum
23
29
  apkstats.required_features #=> Array<String> | Nil
@@ -27,11 +33,13 @@ apkstats.min_sdk #=> String | Nil
27
33
  apkstats.target_sdk #=> String | Nils
28
34
  ```
29
35
 
30
- ## Compare apk files
36
+ ### Get a comparison report
31
37
 
32
- The report will be like below.
38
+ ```
39
+ apkstats.compare_with(String, do_report: Boolean)
40
+ ```
33
41
 
34
- ### Apk comparision results
42
+ For example, the report will be like below.
35
43
 
36
44
  Property | Summary
37
45
  :--- | :---
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Apkstats
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1-1"
5
5
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative "gem_version"
3
4
  require_relative "helper/bytes"
4
5
 
5
6
  require_relative "entity/apk_info"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-apkstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jumpei Matsuda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-31 00:00:00.000000000 Z
11
+ date: 2018-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger-plugin-api
@@ -211,9 +211,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
211
211
  version: '0'
212
212
  required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  requirements:
214
- - - ">="
214
+ - - ">"
215
215
  - !ruby/object:Gem::Version
216
- version: '0'
216
+ version: 1.3.1
217
217
  requirements: []
218
218
  rubyforge_project:
219
219
  rubygems_version: 2.7.6