fastlane-plugin-fabulove 0.1.0 → 0.1.1
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 +11 -21
- data/lib/fastlane/plugin/fabulove/actions/fabulove_action.rb +2 -2
- data/lib/fastlane/plugin/fabulove/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 042af464cde4134fa2b284ee3bf6a0701e24620ce14f3109d4ee5352a6f3770d
|
4
|
+
data.tar.gz: 9b4eaddae101fca5f8be4a821d7ad44c77f0e57b3a9f70097926343fdcea6ac3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62f97fb2a45588e491f90ac0f9e046a401dfbd25fe37a450f37176321e98ff80aa3a7d1266470c352cfe2e73488d8e9c81e026513f914f85bbb436c6ad17b144
|
7
|
+
data.tar.gz: 27b99971f671b4d28156ccd4f1d75adf8063b8583d284242b2127ac5e1abd2b175bb62097c2229799c0349da0e4a1621f07dc35d70127279f7c0233992700bc7
|
data/README.md
CHANGED
@@ -12,7 +12,17 @@ fastlane add_plugin fabulove
|
|
12
12
|
|
13
13
|
## About fabulove
|
14
14
|
|
15
|
-
"fabulove" distribution system fastlane plugin
|
15
|
+
"fabulove" distribution system fastlane plugin, upload ipa or apk to fabulove.
|
16
|
+
```bash
|
17
|
+
fabulove(
|
18
|
+
username: "username",
|
19
|
+
password: "password",
|
20
|
+
base_url: "https://fabulove.com", # 域名
|
21
|
+
team_id: "xxxxxxxxxxx",
|
22
|
+
file_path: app_path, # ipa/apk包路径
|
23
|
+
keep_app_versions_num: 10 # 为节省服务器空间,设置保留的版本数量,如果超过则会自动删除最早的一个版本。如设0则不进行处理。
|
24
|
+
)
|
25
|
+
```
|
16
26
|
|
17
27
|
**Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
|
18
28
|
|
@@ -22,26 +32,6 @@ Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plu
|
|
22
32
|
|
23
33
|
**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)
|
24
34
|
|
25
|
-
## Run tests for this plugin
|
26
|
-
|
27
|
-
To run both the tests, and code style validation, run
|
28
|
-
|
29
|
-
```
|
30
|
-
rake
|
31
|
-
```
|
32
|
-
|
33
|
-
To automatically fix many of the styling issues, use
|
34
|
-
```
|
35
|
-
rubocop -a
|
36
|
-
```
|
37
|
-
|
38
|
-
## Issues and Feedback
|
39
|
-
|
40
|
-
For any other issues and feedback about this plugin, please submit it to this repository.
|
41
|
-
|
42
|
-
## Troubleshooting
|
43
|
-
|
44
|
-
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
|
45
35
|
|
46
36
|
## Using _fastlane_ Plugins
|
47
37
|
|
@@ -64,7 +64,7 @@ module Fastlane
|
|
64
64
|
|
65
65
|
def self.delete_old_version (base_url, token, app_id, keep_num, team_id)
|
66
66
|
authorization = "Bearer #{token}"
|
67
|
-
get_response = HTTParty.get("#{base_url}/api/apps/#{team_id}/#{app_id}/versions",{
|
67
|
+
get_response = HTTParty.get("#{base_url}/api/apps/#{team_id}/#{app_id}/versions?page=0&size=#{keep_num*2}",{
|
68
68
|
:headers => {'Content-Type'=>'application/json', 'Authorization'=>authorization}
|
69
69
|
})
|
70
70
|
|
@@ -85,7 +85,7 @@ module Fastlane
|
|
85
85
|
end
|
86
86
|
|
87
87
|
# 进行删除操作
|
88
|
-
app_version_info = versions_body['data'].
|
88
|
+
app_version_info = versions_body['data'].first
|
89
89
|
app_version_id = app_version_info['_id']
|
90
90
|
|
91
91
|
delete_response = HTTParty.delete("#{base_url}/api/apps/#{team_id}/#{app_id}/versions/#{app_version_id}",{
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-fabulove
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- carry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|