fastlane-plugin-rome 0.3.8 → 0.4.0

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
  SHA256:
3
- metadata.gz: a5526d53283cf225b265b29e5fa3f00bac9405b8f49d33d9b52524888c47c0f6
4
- data.tar.gz: ac940147ed4012f6998a65bd3fb4e4e2c11f4b8bd21413a4262f0a13cb1bbe7f
3
+ metadata.gz: 12f44fee554b5e1b5e109d53be100c7a8dba584ef1624ce38bae93b4afbb2041
4
+ data.tar.gz: 65d144b8384544e6398bd95afcb23ea20ca10853f0df9a1b9eaf22fb63d7b9d1
5
5
  SHA512:
6
- metadata.gz: 4748ba3e3c6e106c11807207b1f5024d3484055510e24e79c164685814119a379567e8d3609022e2be2a2135ca088a05740a36f6f841847806d4e07e86e9d050
7
- data.tar.gz: ddbf69f057f82a89e3d44302df84c40b26e4c6ee6087ff405475bb7437c20ceb5b7c33caa44f22e3409ae1c71f383c6d350b6f1d54208dbc33c96c6eace5b503
6
+ metadata.gz: f638c1d523bc4122863f7bbcf539b9745441a24f7eb936c1cf97861564b8043418bf969e387dc0d686165732f54c33ab9984fe085ab2a560e3d65674757b11b7
7
+ data.tar.gz: 7ef9112b487ac75520c9967dc33e0f2d80e2931c4017766c94310b2d7695561883551985c41a3bfdef20566605ad34cb12b36f7b56c8ed6d7a1e79169e8b5e63
data/LICENSE CHANGED
@@ -1,6 +1,8 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 François Benaiteau <francois.benaiteau@sharecare.com>
3
+ Copyright (c) 2017, 2018, 2019, 2020, 2021
4
+ François Benaiteau <francois.benaiteau@sharecare.com>
5
+ Tommaso Piazza <196761+tmspzz@users.noreply.github.com>
4
6
 
5
7
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
8
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -23,11 +23,12 @@ rome(
23
23
  frameworks: ["MyFramework1", "MyFramework2"], # Specify which frameworks to upload or download
24
24
  command: "upload", # One of: download, upload, list
25
25
  verbose: false, # Print rome output inline
26
- platform: "all", # Define which platform to build for (one of ‘all’, ‘Mac’, ‘iOS’, ‘watchOS’, ‘tvOS‘, or comma-separated values of the formers except for ‘all’)
26
+ platform: "all", # Define which platform to build for (one of ‘all’, ‘Mac’, ‘iOS’, ‘watchOS’, ‘tvOS‘, or comma-separated values of the formers except for ‘all’). Can't be combined with the 'usexcframeworks' option
27
27
  cacheprefix: "Swift_4_2_1", # A prefix appended to the top level directories inside the caches. Useful to separate artifacts between Swift versions
28
28
  romefile: "~/Code/", # The path to the Romefile to use. Defaults to the \"Romefile\" in the current directory
29
29
  noignore: "true", # Ignore the `ignoreMap` section in the Romefile when performing the operation
30
30
  concurrently: "true", # Maximise concurrency while performing the operation. Might make verbose output hard to follow
31
+ usexcframeworks: "true" # Search for .xcframeworks when performing the upload or download operation. Can't be combined with the 'platform' option
31
32
  )
32
33
  ```
33
34
 
@@ -29,6 +29,7 @@ module Fastlane
29
29
  cmd << "--no-ignore" if params[:noignore] == true
30
30
  cmd << "--no-skip-current" if params[:noskipcurrent] == true
31
31
  cmd << "--concurrently" if params[:concurrently] == true
32
+ cmd << "--use-xcframeworks" if params[:usexcframeworks] == true
32
33
  cmd << "-v " if params[:verbose]
33
34
 
34
35
  return Actions.sh(cmd.join(' '))
@@ -110,7 +111,17 @@ module Fastlane
110
111
  UI.user_error!("'concurrently' option requires Rome version '0.20.0.56' or later") if !meet_minimum_version(binary_path, "0.20.0.56")
111
112
  end
112
113
 
113
- if command_name == "list" && params[:concurrently] != nil
114
+ usexcframeworks = params[:usexcframeworks]
115
+ if usexcframeworks != nil
116
+ UI.user_error!("'usexcframeworks' option requires Rome version '0.24.0.65' or later") if !meet_minimum_version(binary_path, "0.24.0.65")
117
+ end
118
+
119
+ platform = params[:platform]
120
+ if usexcframeworks != nil && platform != nil
121
+ UI.user_error!("'usexcframeworks' option cannot be combined with 'platform' option. Only one of them can be provided.")
122
+ end
123
+
124
+ if command_name == "list" && concurrently != nil
114
125
  UI.user_error!("Concurrently option is only avalable with download or upload. Listing is performed concurrently by default.")
115
126
  end
116
127
  end
@@ -233,12 +244,21 @@ module Fastlane
233
244
  verify_block: proc do |value|
234
245
  UI.user_error!("Please pass a valid value for noskipcurrent. Use one of the following: true, false") unless value.kind_of?(TrueClass) || value.kind_of?(FalseClass)
235
246
  end),
236
-
247
+
237
248
  FastlaneCore::ConfigItem.new(key: :concurrently,
238
249
  env_name: "FL_ROME_CONCURRENTLY",
239
250
  description: "Maximize concurrency while performing the operation. Not needed for listing",
240
251
  is_string: false,
241
252
  optional: true,
253
+ verify_block: proc do |value|
254
+ UI.user_error!("Please pass a valid value for concurrently. Use one of the following: true, false") unless value.kind_of?(TrueClass) || value.kind_of?(FalseClass)
255
+ end),
256
+
257
+ FastlaneCore::ConfigItem.new(key: :usexcframeworks,
258
+ env_name: "FL_ROME_USEXCFRAMEWORKS",
259
+ description: "Search for .xcframeworks when performing the operation. Not needed for listing",
260
+ is_string: false,
261
+ optional: true,
242
262
  verify_block: proc do |value|
243
263
  UI.user_error!("Please pass a valid value for concurrently. Use one of the following: true, false") unless value.kind_of?(TrueClass) || value.kind_of?(FalseClass)
244
264
  end)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Rome
3
- VERSION = "0.3.8"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-rome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - François Benaiteau
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-08-21 00:00:00.000000000 Z
12
+ date: 2021-11-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pry
@@ -128,8 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  requirements: []
131
- rubyforge_project:
132
- rubygems_version: 2.7.7
131
+ rubygems_version: 3.0.3
133
132
  signing_key:
134
133
  specification_version: 4
135
134
  summary: A cache tool for Carthage