fastlane-plugin-tpa 2.0.3 → 2.0.4

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
- SHA1:
3
- metadata.gz: 9ed7db5267f2c46d9a05ecbda74ce9e4117fb3da
4
- data.tar.gz: 9735b38e6b5b133430a55858017d93d32e57ed49
2
+ SHA256:
3
+ metadata.gz: e6eaa3902a5ba4c32eb9cecd7294c7f99a849813876afa46642235d776721c1e
4
+ data.tar.gz: 47feca35c2eeb42d7ff527c61cedfd594c298ee49109103516784570bd0a6596
5
5
  SHA512:
6
- metadata.gz: 2181cfbb820867c44f94232cbe86edc0e98a1fb5ef2080ed18888bd675143a1a4543903e22b2b453b6dc01d72c6672e636e6f3b426a4d90467845ce1436247e5
7
- data.tar.gz: 6e55d230c55fd7023a8381af9ba9927003ed98c0e5628c505d13bc7e5f14924f9e3f1c26c3b3dbe8e2125000d4627952e71de7ae7d35b5f1b30dcad8cac73a70
6
+ metadata.gz: 6b0aab54f39c098b7808814999ab79e0413223ba96b219593afad2813906ac159680508c0203be931bdd0f2afb96a77d4af64c0335ff23c838daf0742743ec6e
7
+ data.tar.gz: d2fa68ff8e83f048ed1877ed6dcd4e163248af6e6560b8e79d2120ed710eeedc9470cb5a8e843fbcdb8c43720d8b487e52b759a3187c1d0d0118692a722032d2
@@ -17,7 +17,7 @@ module Fastlane
17
17
  rescue RestClient::ExceptionWithResponse => ex
18
18
  handle_exception_response(ex)
19
19
  rescue => ex
20
- UI.crash!("Something went wrong while uploading your app to TPA: #{ex}")
20
+ UI.user_error!("Something went wrong while uploading your app to TPA: #{ex}")
21
21
  else
22
22
  UI.success("🎉 Your app has successfully been uploaded to TPA 🎉")
23
23
  end
@@ -56,8 +56,27 @@ module Fastlane
56
56
 
57
57
  # Only set mapping key if mapping file exists.
58
58
  # Even setting a nil value will cause Fastlane to send an empty value causing an error.
59
- if !params[:mapping].nil? && File.exist?(params[:mapping])
60
- body[:mapping] = File.new(params[:mapping], 'rb')
59
+ unless params[:mapping].nil?
60
+ case params[:mapping]
61
+ when String
62
+ if File.exist?(params[:mapping])
63
+ body[:mapping] = File.new(params[:mapping], 'rb')
64
+ end
65
+ when Array
66
+ mapping_files = []
67
+ params[:mapping].each do |mapping|
68
+ if File.exist?(mapping)
69
+ mapping_files.push(File.new(mapping, 'rb'))
70
+ else
71
+ UI.message "Unable to find mapping file at #{mapping}"
72
+ end
73
+ end
74
+ unless mapping_files.empty?
75
+ body[:mapping] = mapping_files
76
+ end
77
+ else
78
+ UI.user_error!("Specified mapping files do not exists.")
79
+ end
61
80
  end
62
81
 
63
82
  body
@@ -67,12 +86,12 @@ module Fastlane
67
86
  if Fastlane::Helper::TpaHelper.valid_json?(ex.response)
68
87
  res = JSON.parse(ex.response)
69
88
  if res.key?("detail")
70
- UI.crash!("Something went wrong while uploading your app to TPA: #{res['detail']}")
89
+ UI.abort_with_message!("Something went wrong while uploading your app to TPA: #{res['detail']}")
71
90
  else
72
- UI.crash!("Something went wrong while uploading your app to TPA: #{res}")
91
+ UI.abort_with_message!("Something went wrong while uploading your app to TPA: #{res}")
73
92
  end
74
93
  else
75
- UI.crash!("Something went wrong while uploading your app to TPA: #{ex.response}")
94
+ UI.abort_with_message!("Something went wrong while uploading your app to TPA: #{ex.response}")
76
95
  end
77
96
  end
78
97
 
@@ -121,9 +140,10 @@ module Fastlane
121
140
  end),
122
141
  FastlaneCore::ConfigItem.new(key: :mapping,
123
142
  env_name: "FL_TPA_MAPPING",
124
- description: "Path to your symbols file. For iOS provide path to app.dSYM.zip. For Android provide path to mappings.txt file",
143
+ description: "Path to your symbols files. For iOS provide path to app.dSYM.zip. For Android provide path to mappings.txt file. For React-Native also provide paths to your source-maps",
125
144
  default_value: Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH],
126
145
  optional: true,
146
+ is_string: false,
127
147
  verify_block: proc do |value|
128
148
  # validation is done in the action
129
149
  end),
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Tpa
3
- VERSION = "2.0.3"
3
+ VERSION = "2.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-tpa
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Perfect App
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-19 00:00:00.000000000 Z
11
+ date: 2019-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -198,8 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  - !ruby/object:Gem::Version
199
199
  version: '0'
200
200
  requirements: []
201
- rubyforge_project:
202
- rubygems_version: 2.5.2.3
201
+ rubygems_version: 3.0.1
203
202
  signing_key:
204
203
  specification_version: 4
205
204
  summary: TPA gives you advanced user behaviour analytics, app distribution, crash