fastlane 2.169.0 → 2.170.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +78 -78
  3. data/deliver/lib/deliver/upload_metadata.rb +3 -3
  4. data/fastlane/lib/fastlane/actions/docs/sync_code_signing.md +1 -1
  5. data/fastlane/lib/fastlane/actions/docs/upload_to_app_store.md.erb +4 -0
  6. data/fastlane/lib/fastlane/actions/onesignal.rb +13 -3
  7. data/fastlane/lib/fastlane/actions/upload_app_privacy_details_to_app_store.rb +289 -0
  8. data/fastlane/lib/fastlane/plugins/template/.rubocop.yml +1 -1
  9. data/fastlane/lib/fastlane/swift_fastlane_api_generator.rb +3 -0
  10. data/fastlane/lib/fastlane/version.rb +1 -1
  11. data/fastlane/swift/Deliverfile.swift +1 -1
  12. data/fastlane/swift/DeliverfileProtocol.swift +1 -1
  13. data/fastlane/swift/Fastlane.swift +44 -3
  14. data/fastlane/swift/Gymfile.swift +1 -1
  15. data/fastlane/swift/GymfileProtocol.swift +1 -1
  16. data/fastlane/swift/Matchfile.swift +1 -1
  17. data/fastlane/swift/MatchfileProtocol.swift +1 -1
  18. data/fastlane/swift/Precheckfile.swift +1 -1
  19. data/fastlane/swift/PrecheckfileProtocol.swift +1 -1
  20. data/fastlane/swift/Scanfile.swift +1 -1
  21. data/fastlane/swift/ScanfileProtocol.swift +1 -1
  22. data/fastlane/swift/Screengrabfile.swift +1 -1
  23. data/fastlane/swift/ScreengrabfileProtocol.swift +1 -1
  24. data/fastlane/swift/Snapshotfile.swift +1 -1
  25. data/fastlane/swift/SnapshotfileProtocol.swift +1 -1
  26. data/match/lib/match/runner.rb +1 -1
  27. data/spaceship/lib/spaceship/connect_api.rb +6 -0
  28. data/{sigh/lib/sigh/.options.rb.swp → spaceship/lib/spaceship/connect_api/models/.app_data_usage_data_protection.rb.swp} +0 -0
  29. data/spaceship/lib/spaceship/connect_api/models/app_data_usage.rb +59 -0
  30. data/spaceship/lib/spaceship/connect_api/models/app_data_usage_category.rb +65 -0
  31. data/spaceship/lib/spaceship/connect_api/models/app_data_usage_data_protection.rb +27 -0
  32. data/spaceship/lib/spaceship/connect_api/models/app_data_usage_grouping.rb +18 -0
  33. data/spaceship/lib/spaceship/connect_api/models/app_data_usage_purposes.rb +37 -0
  34. data/spaceship/lib/spaceship/connect_api/models/app_data_usages_publish_state.rb +36 -0
  35. data/spaceship/lib/spaceship/connect_api/models/device.rb +4 -0
  36. data/spaceship/lib/spaceship/connect_api/tunes/tunes.rb +103 -0
  37. metadata +26 -22
  38. data/cert/lib/cert/.options.rb.swp +0 -0
  39. data/cert/lib/cert/.runner.rb.swp +0 -0
  40. data/match/lib/match/.options.rb.swp +0 -0
@@ -0,0 +1,36 @@
1
+ require_relative '../model'
2
+ module Spaceship
3
+ class ConnectAPI
4
+ class AppDataUsagesPublishState
5
+ include Spaceship::ConnectAPI::Model
6
+
7
+ attr_accessor :published
8
+ attr_accessor :last_published
9
+ attr_accessor :last_published_by
10
+
11
+ attr_mapping({
12
+ "published" => "published",
13
+ "lastPublished" => "last_published",
14
+ "lastPublishedBy" => "last_published_by"
15
+ })
16
+
17
+ def self.type
18
+ return "appDataUsagesPublishState"
19
+ end
20
+
21
+ #
22
+ # API
23
+ #
24
+
25
+ def self.get(app_id: nil)
26
+ resp = Spaceship::ConnectAPI.get_app_data_usages_publish_state(app_id: app_id)
27
+ return resp.to_models.first
28
+ end
29
+
30
+ def publish!
31
+ resp = Spaceship::ConnectAPI.patch_app_data_usages_publish_state(app_data_usages_publish_state_id: id, published: true)
32
+ return resp.to_models.first
33
+ end
34
+ end
35
+ end
36
+ end
@@ -40,6 +40,10 @@ module Spaceship
40
40
  return "devices"
41
41
  end
42
42
 
43
+ def enabled?
44
+ return status == Status::ENABLED
45
+ end
46
+
43
47
  #
44
48
  # API
45
49
  #
@@ -200,6 +200,109 @@ module Spaceship
200
200
  tunes_request_client.patch("apps/#{app_id}", body)
201
201
  end
202
202
 
203
+ #
204
+ # appDataUsage
205
+ #
206
+
207
+ def get_app_data_usages(app_id: nil, filter: {}, includes: nil, limit: nil, sort: nil)
208
+ params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
209
+ tunes_request_client.get("apps/#{app_id}/dataUsages", params)
210
+ end
211
+
212
+ def post_app_data_usage(app_id:, app_data_usage_category_id: nil, app_data_usage_protection_id: nil, app_data_usage_purpose_id: nil)
213
+ raise "app_id is required " if app_id.nil?
214
+
215
+ relationships = {
216
+ app: {
217
+ data: {
218
+ type: "apps",
219
+ id: app_id
220
+ }
221
+ }
222
+ }
223
+
224
+ if app_data_usage_category_id
225
+ relationships[:category] = {
226
+ data: {
227
+ type: "appDataUsageCategories",
228
+ id: app_data_usage_category_id
229
+ }
230
+ }
231
+ end
232
+
233
+ if app_data_usage_protection_id
234
+ relationships[:dataProtection] = {
235
+ data: {
236
+ type: "appDataUsageDataProtections",
237
+ id: app_data_usage_protection_id
238
+ }
239
+ }
240
+ end
241
+
242
+ if app_data_usage_purpose_id
243
+ relationships[:purpose] = {
244
+ data: {
245
+ type: "appDataUsagePurposes",
246
+ id: app_data_usage_purpose_id
247
+ }
248
+ }
249
+ end
250
+
251
+ body = {
252
+ data: {
253
+ type: "appDataUsages",
254
+ relationships: relationships
255
+ }
256
+ }
257
+
258
+ tunes_request_client.post("appDataUsages", body)
259
+ end
260
+
261
+ def delete_app_data_usage(app_data_usage_id: nil)
262
+ tunes_request_client.delete("appDataUsages/#{app_data_usage_id}")
263
+ end
264
+
265
+ #
266
+ # appDataUsageCategory
267
+ #
268
+
269
+ def get_app_data_usage_categories(filter: {}, includes: nil, limit: nil, sort: nil)
270
+ params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
271
+ tunes_request_client.get("appDataUsageCategories", params)
272
+ end
273
+
274
+ #
275
+ # appDataUsagePurpose
276
+ #
277
+
278
+ def get_app_data_usage_purposes(filter: {}, includes: nil, limit: nil, sort: nil)
279
+ params = tunes_request_client.build_params(filter: filter, includes: includes, limit: limit, sort: sort)
280
+ tunes_request_client.get("appDataUsagePurposes", params)
281
+ end
282
+
283
+ #
284
+ # appDataUsagesPublishState
285
+ #
286
+
287
+ def get_app_data_usages_publish_state(app_id: nil)
288
+ params = tunes_request_client.build_params(filter: nil, includes: nil, limit: nil, sort: nil)
289
+ tunes_request_client.get("apps/#{app_id}/dataUsagePublishState", params)
290
+ end
291
+
292
+ def patch_app_data_usages_publish_state(app_data_usages_publish_state_id: nil, published: nil)
293
+ body = {
294
+ data: {
295
+ type: "appDataUsagesPublishState",
296
+ id: app_data_usages_publish_state_id,
297
+ attributes: {
298
+ published: published
299
+ }
300
+ }
301
+ }
302
+
303
+ tunes_request_client.patch("appDataUsagesPublishState/#{app_data_usages_publish_state_id}", body)
304
+ end
305
+
203
306
  #
204
307
  # appPreview
205
308
  #
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.169.0
4
+ version: 2.170.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Dee
8
+ - Aaron Brager
9
+ - Jorge Revuelta H
10
+ - Josh Holtz
11
+ - Jan Piotrowski
8
12
  - Stefan Natchev
9
- - Joshua Liebowitz
10
- - Kohki Miki
11
- - Danielle Tomlinson
12
- - Fumiya Nakamura
13
- - Daniel Jankowski
14
- - Manu Wallner
15
- - Olivier Halligon
13
+ - Iulian Onofrei
14
+ - Jérôme Lacoste
15
+ - Helmut Januschka
16
+ - Luka Mirosevic
17
+ - Matthew Ellis
16
18
  - Maksym Grebenets
17
19
  - Andrew McBurney
18
- - Luka Mirosevic
20
+ - Manu Wallner
21
+ - Joshua Liebowitz
19
22
  - Felix Krause
20
- - Iulian Onofrei
21
- - Matthew Ellis
22
- - Aaron Brager
23
+ - Kohki Miki
24
+ - Olivier Halligon
25
+ - Daniel Jankowski
23
26
  - Max Ott
24
- - Helmut Januschka
25
- - Jan Piotrowski
26
- - Jérôme Lacoste
27
- - Jorge Revuelta H
28
- - Josh Holtz
27
+ - Danielle Tomlinson
28
+ - Fumiya Nakamura
29
29
  autorequire:
30
30
  bindir: bin
31
31
  cert_chain: []
32
- date: 2020-12-01 00:00:00.000000000 Z
32
+ date: 2020-12-04 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: slack-notifier
@@ -928,8 +928,6 @@ files:
928
928
  - bin/fastlane
929
929
  - cert/README.md
930
930
  - cert/lib/cert.rb
931
- - cert/lib/cert/.options.rb.swp
932
- - cert/lib/cert/.runner.rb.swp
933
931
  - cert/lib/cert/commands_generator.rb
934
932
  - cert/lib/cert/module.rb
935
933
  - cert/lib/cert/options.rb
@@ -1209,6 +1207,7 @@ files:
1209
1207
  - fastlane/lib/fastlane/actions/update_project_team.rb
1210
1208
  - fastlane/lib/fastlane/actions/update_urban_airship_configuration.rb
1211
1209
  - fastlane/lib/fastlane/actions/update_url_schemes.rb
1210
+ - fastlane/lib/fastlane/actions/upload_app_privacy_details_to_app_store.rb
1212
1211
  - fastlane/lib/fastlane/actions/upload_symbols_to_crashlytics.rb
1213
1212
  - fastlane/lib/fastlane/actions/upload_symbols_to_sentry.rb
1214
1213
  - fastlane/lib/fastlane/actions/upload_to_app_store.rb
@@ -1456,7 +1455,6 @@ files:
1456
1455
  - match/lib/assets/MatchfileTemplate.swift
1457
1456
  - match/lib/assets/READMETemplate.md
1458
1457
  - match/lib/match.rb
1459
- - match/lib/match/.options.rb.swp
1460
1458
  - match/lib/match/change_password.rb
1461
1459
  - match/lib/match/commands_generator.rb
1462
1460
  - match/lib/match/encryption.rb
@@ -1566,7 +1564,6 @@ files:
1566
1564
  - sigh/README.md
1567
1565
  - sigh/lib/assets/resign.sh
1568
1566
  - sigh/lib/sigh.rb
1569
- - sigh/lib/sigh/.options.rb.swp
1570
1567
  - sigh/lib/sigh/commands_generator.rb
1571
1568
  - sigh/lib/sigh/download_all.rb
1572
1569
  - sigh/lib/sigh/local_manage.rb
@@ -1623,10 +1620,17 @@ files:
1623
1620
  - spaceship/lib/spaceship/connect_api/client.rb
1624
1621
  - spaceship/lib/spaceship/connect_api/file_uploader.rb
1625
1622
  - spaceship/lib/spaceship/connect_api/model.rb
1623
+ - spaceship/lib/spaceship/connect_api/models/.app_data_usage_data_protection.rb.swp
1626
1624
  - spaceship/lib/spaceship/connect_api/models/.app_store_version_submission.rb.swp
1627
1625
  - spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb
1628
1626
  - spaceship/lib/spaceship/connect_api/models/app.rb
1629
1627
  - spaceship/lib/spaceship/connect_api/models/app_category.rb
1628
+ - spaceship/lib/spaceship/connect_api/models/app_data_usage.rb
1629
+ - spaceship/lib/spaceship/connect_api/models/app_data_usage_category.rb
1630
+ - spaceship/lib/spaceship/connect_api/models/app_data_usage_data_protection.rb
1631
+ - spaceship/lib/spaceship/connect_api/models/app_data_usage_grouping.rb
1632
+ - spaceship/lib/spaceship/connect_api/models/app_data_usage_purposes.rb
1633
+ - spaceship/lib/spaceship/connect_api/models/app_data_usages_publish_state.rb
1630
1634
  - spaceship/lib/spaceship/connect_api/models/app_info.rb
1631
1635
  - spaceship/lib/spaceship/connect_api/models/app_info_localization.rb
1632
1636
  - spaceship/lib/spaceship/connect_api/models/app_preview.rb
Binary file