fastlane-plugin-aws_device_farm_upload 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: f657710e4cd7930b582a5e21c2e3a703e4fd017573e76fba50a0564bf4b5ed69
|
4
|
+
data.tar.gz: cb4da69d42e5f7eff1abd15cdcacd313dea6a2856d91946a1b2313ea638ad2cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '067589cbc4adef401d9d70b988a1379cd0f46324b678bb232244ac66b7bd2fc62da4cf88a4f043a6e61d76c235e5d24468ac18058e51e95810de81ed68686446'
|
7
|
+
data.tar.gz: 42955c3a538fcebb4bdc8f9ccd10bd844b135c5dbe2e76729de59221abc1f551fae58cbdc272c4aca953417e9b481171e4f26fb67e0264d3ea1aeaa288ce9224
|
data/README.md
CHANGED
@@ -2,17 +2,46 @@
|
|
2
2
|
|
3
3
|
[](https://rubygems.org/gems/fastlane-plugin-aws_device_farm_upload)
|
4
4
|
|
5
|
+
## About aws_device_farm_upload
|
6
|
+
|
7
|
+
Uploads a specified file like IPA, APK to AWS Device Farm project.
|
8
|
+
|
9
|
+
For example, use to manage app in Device Farm remote access sessions.
|
10
|
+
|
5
11
|
## Getting Started
|
6
12
|
|
7
|
-
|
13
|
+
1. Generate IAM user with policy which grants access to below.
|
8
14
|
|
9
|
-
|
10
|
-
|
11
|
-
|
15
|
+
- devicefarm:CreateUpload
|
16
|
+
- devicefarm:DeleteUpload
|
17
|
+
- devicefarm:GetProject
|
18
|
+
- devicefarm:ListUploads
|
12
19
|
|
13
|
-
## About aws_device_farm_upload
|
14
20
|
|
15
|
-
|
21
|
+
If a file with the specified name exists in the project, it will be overwritten.
|
22
|
+
|
23
|
+
Because some upload types like `ANDROID_APP` cannot use `devicefarm:UpdateUpload` to update, it needs to do the create action after the delete action to update. Therefore, it requires `devicefarm:CreateUpload` and `devicefarm:DeleteUpload` permissions instead of `devicefarm:UpdateUpload`.
|
24
|
+
|
25
|
+
2. Add plugin to fastlane
|
26
|
+
|
27
|
+
```shell
|
28
|
+
bundle exec fastlane add_plugin aws_device_farm_upload
|
29
|
+
```
|
30
|
+
|
31
|
+
3. Add `aws_device_farm_upload` action to your lane in `Fastfile`.
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
lane :upload_apk_to_device_farm do
|
35
|
+
aws_device_farm_upload(
|
36
|
+
aws_access_key_id: ENV['AWS_ACCESS_KEY_ID'],
|
37
|
+
aws_secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'],
|
38
|
+
device_farm_project_arn: ENV['DEVICE_FARM_PROJECT_ARN'],
|
39
|
+
file_path: '/home/mataku/app/build/outputs/universal_apk/debug/app-debug-universal.apk',
|
40
|
+
file_name: 'android-app-debug.apk',
|
41
|
+
file_type: 'ANDROID_APP' # See: https://docs.aws.amazon.com/devicefarm/latest/APIReference/API_CreateUpload.html#API_CreateUpload_RequestSyntax
|
42
|
+
)
|
43
|
+
end
|
44
|
+
```
|
16
45
|
|
17
46
|
## Example
|
18
47
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-aws_device_farm_upload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takuma Homma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-devicefarm
|