fastlane-plugin-flurry 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 6726264c683f78322aabc7ba6bf043f992991424
4
- data.tar.gz: dbde003704f3d7a085bf1e96c773fed7eea20ee2
3
+ metadata.gz: 753e4ccd06c6fe38d9e1eb09f80dfad7bce0bfa1
4
+ data.tar.gz: 3fe5540295a6b607f53e321356fa9c3567b27aa1
5
5
  SHA512:
6
- metadata.gz: cd823b9d4062b281ec3768131c0558ec9ab0636da5a09fc7ee1f01391bf7c2e37931f766f6c33c8aed12726106e34d639f6c1537d494b09e97ae01d0cc4dbd89
7
- data.tar.gz: 017cb8cbc9f5cf6b136c37a78f68a1af87f4174dd7d1577d09ed5e7defedd1fcc144e52bf551521e369cacd3d8c80e49167f1c3f36d98d2ca7f6bc66cecf1c04
6
+ metadata.gz: 3ef3b19020f4e0edbfb38f569130ce089b3d011765c186d883fef4c8af2cd6c332d9feb77667b2214cac90014f8bafb30927e20d175e9d2c2a43ab17708a16b5
7
+ data.tar.gz: 814808409c3ccc68ca474e5cbfe7f92e7ff131aac1e70f8ec1c833e8337d1cb742f397c814310074e702e42843edec182243bb87d237af7e78b170846ea52f71
@@ -18,19 +18,28 @@ module Fastlane
18
18
  api_key = params[:api_key]
19
19
  auth_token = params[:auth_token]
20
20
  timeout_in_s = params[:timeout_in_s]
21
- # Params - dSYM
22
- dsym_path = params[:dsym_path]
23
21
  project_id = find_project(api_key, auth_token)
24
22
 
25
- if dsym_path.end_with?('.zip')
26
- UI.message("Extracting '#{dsym_path}'...")
27
- dsym_path = unzip_file(dsym_path)
23
+ # Params - dSYM
24
+ dsym_path = params[:dsym_paths] || []
25
+ dsym_path += [params[:dsym_path]]
26
+
27
+ if dsym_path.size == 0
28
+ UI.user_error! "Couldn't find any DSYMs. Please pass them using the dsym_path option)"
29
+ end
30
+
31
+ dsym_path.compact.map do | single_dsym_path |
32
+ if single_dsym_path.end_with?('.zip')
33
+ UI.message("Extracting '#{single_dsym_path}'...")
34
+ single_dsym_path = unzip_file(single_dsym_path)
35
+ end
36
+
37
+ tar_zip_file = tar_zip_file(single_dsym_path)
38
+ upload_id = create_upload(tar_zip_file.size, project_id, auth_token)
39
+ send_to_upload_service(tar_zip_file.path, project_id, upload_id, auth_token)
40
+ check_upload_status(project_id, upload_id, auth_token, timeout_in_s)
28
41
  end
29
42
 
30
- tar_zip_file = tar_zip_file(dsym_path)
31
- upload_id = create_upload(tar_zip_file.size, project_id, auth_token)
32
- send_to_upload_service(tar_zip_file.path, project_id, upload_id, auth_token)
33
- check_upload_status(project_id, upload_id, auth_token, timeout_in_s)
34
43
  UI.message "Successfully Uploaded the provided dSYMs to Flurry."
35
44
  end
36
45
 
@@ -182,6 +191,12 @@ module Fastlane
182
191
  UI.user_error!("Couldn't find file at path '#{File.expand_path(value)}'") unless File.exist?(value)
183
192
  UI.user_error!('Symbolication file needs to be dSYM or zip') unless value.end_with?('.dSYM', '.zip')
184
193
  end),
194
+ FastlaneCore::ConfigItem.new(key: :dsym_paths,
195
+ env_name: 'FLURRY_DSYM_PATHS',
196
+ description: 'Path to an array of your symbols file. For iOS and Mac provide path to app.dSYM.zip',
197
+ default_value: Actions.lane_context[SharedValues::DSYM_PATHS],
198
+ is_string: false,
199
+ optional: true),
185
200
  FastlaneCore::ConfigItem.new(key: :timeout_in_s,
186
201
  env_name: 'TIMEOUT_IN_S',
187
202
  description: 'Upload Timeout in Seconds',
@@ -4,6 +4,6 @@
4
4
 
5
5
  module Fastlane
6
6
  module Flurry
7
- VERSION = "0.1.0"
7
+ VERSION = "0.1.1"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-flurry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akash Duseja
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-16 00:00:00.000000000 Z
11
+ date: 2016-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rest-client
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 2.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 2.0.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: pry
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -131,4 +145,3 @@ signing_key:
131
145
  specification_version: 4
132
146
  summary: Upload dSYM symbolication files to Flurry
133
147
  test_files: []
134
- has_rdoc: