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: 5b56ace190d846b8147bd75c85902ebcfa5d75a8a75d3819882ae9065baac7e2
4
- data.tar.gz: e99ab29f6feb336d455e96d52ca4b24f6e8413c5e459eb0a9a4ab985c885255e
3
+ metadata.gz: f657710e4cd7930b582a5e21c2e3a703e4fd017573e76fba50a0564bf4b5ed69
4
+ data.tar.gz: cb4da69d42e5f7eff1abd15cdcacd313dea6a2856d91946a1b2313ea638ad2cf
5
5
  SHA512:
6
- metadata.gz: fd3a0ca239f4984447f32bb3d3f6bb9ecaa1bed2ec78b73461f68cd4e1573a7975837194e15d9dee0f93a0e05c9223eac3bec6f83b5e8ff085d446b626b8d42a
7
- data.tar.gz: 68e450ab9d969854b43f97943da47c5bb801d666ed61f2638b109473481b5da1e24647da9782529ebea5fcfebb743c0fe7b07b3d3bc13508da256c1eb8d42011
6
+ metadata.gz: '067589cbc4adef401d9d70b988a1379cd0f46324b678bb232244ac66b7bd2fc62da4cf88a4f043a6e61d76c235e5d24468ac18058e51e95810de81ed68686446'
7
+ data.tar.gz: 42955c3a538fcebb4bdc8f9ccd10bd844b135c5dbe2e76729de59221abc1f551fae58cbdc272c4aca953417e9b481171e4f26fb67e0264d3ea1aeaa288ce9224
data/README.md CHANGED
@@ -2,17 +2,46 @@
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-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
- This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-aws_device_farm_upload`, add it to your project by running:
13
+ 1. Generate IAM user with policy which grants access to below.
8
14
 
9
- ```bash
10
- fastlane add_plugin aws_device_farm_upload
11
- ```
15
+ - devicefarm:CreateUpload
16
+ - devicefarm:DeleteUpload
17
+ - devicefarm:GetProject
18
+ - devicefarm:ListUploads
12
19
 
13
- ## About aws_device_farm_upload
14
20
 
15
- Uploads specified file to AWS Device Farm project.
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
 
@@ -43,7 +43,7 @@ module Fastlane
43
43
  end
44
44
 
45
45
  unless uploaded_file.nil?
46
- devicefarm_client.delete_upload({
46
+ device_farm_client.delete_upload({
47
47
  arn: uploaded_file.arn
48
48
  })
49
49
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AwsDeviceFarmUpload
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-aws_device_farm_upload
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
  - Takuma Homma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-09 00:00:00.000000000 Z
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