fastlane-plugin-versioning 0.5.1 → 0.6.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: 3b859783ec3eb0b788723835e3e9cea700b5924d1993a398f1381c319f4393d9
4
- data.tar.gz: 3820aef2545a4054830e859c02497d4a8110a8931020758c123775113d15d96b
3
+ metadata.gz: 60454c71e3a3495d65c1c09bc4d5a702032c542c75458cfb8ffd64fdd60652cd
4
+ data.tar.gz: e98badc1157215b40788f2d334079705b55ba019ce5898908303dbfdeaa9c913
5
5
  SHA512:
6
- metadata.gz: a33054f02eb1fad905b17d001aaddfd82c4fecae4b8f203be72ae5d65129019ecea32445e6d53e1ae375828651019de0ae1833abbb7c6bb49f86743df036d692
7
- data.tar.gz: 07a216fd6beca44bf81e57b8ee5ecef852094ca3589882d1ff983683022b0efa118ccb6be84814a0a4083d21a35363aa6a28b75904a8887ae359ece31b20b38c
6
+ metadata.gz: b533a88078e909fe883b6bb8eeaf267d10c23838cb72373c898d446349ecbb9f7e320905b1c28037de3d11dd624bd1810ea6945c036812ba4d06b9db13845b78
7
+ data.tar.gz: 92c8f3f45fe632e12d0fcfbd67e41f9a95dfcf88d4b127ed9e8b40c16ac34ddc921de3fa549a40b2cfca2ba34dcf5eeed30048ff279d5b30bd7f7efae5d73bd2
@@ -3,6 +3,7 @@ module Fastlane
3
3
  class GetAppStoreVersionNumberAction < Action
4
4
 
5
5
  require 'json'
6
+ require 'securerandom'
6
7
 
7
8
  def self.run(params)
8
9
  if params[:bundle_id]
@@ -16,10 +17,12 @@ module Fastlane
16
17
  bundle_id = GetInfoPlistValueAction.run(path: plist, key: 'CFBundleIdentifier') # TODO: add same kind of flag to support build setting variables
17
18
  end
18
19
 
20
+ random = Helper.test? ? "123" : SecureRandom.uuid
21
+
19
22
  if params[:country]
20
- uri = URI("http://itunes.apple.com/lookup?bundleId=#{bundle_id}&country=#{params[:country]}")
23
+ uri = URI("http://itunes.apple.com/lookup?bundleId=#{bundle_id}&country=#{params[:country]}&rand=#{random}")
21
24
  else
22
- uri = URI("http://itunes.apple.com/lookup?bundleId=#{bundle_id}")
25
+ uri = URI("http://itunes.apple.com/lookup?bundleId=#{bundle_id}&rand=#{random}")
23
26
  end
24
27
  Net::HTTP.get(uri)
25
28
 
@@ -74,12 +77,16 @@ module Fastlane
74
77
  FastlaneCore::ConfigItem.new(key: :country,
75
78
  optional: true,
76
79
  description: "Pass an optional country code, if your app's availability is limited to specific countries",
77
- is_string: true)
80
+ is_string: true),
81
+ FastlaneCore::ConfigItem.new(key: :skip_package_dependencies_resolution,
82
+ description: "Skips resolution of Swift Package Manager dependencies",
83
+ type: Boolean,
84
+ default_value: false)
78
85
  ]
79
86
  end
80
87
 
81
88
  def self.authors
82
- ["SiarheiFedartsou"]
89
+ ["SiarheiFedartsou", "jdouglas-nz", "raymondjacobson"]
83
90
  end
84
91
 
85
92
  def self.is_supported?(platform)
@@ -62,7 +62,11 @@ module Fastlane
62
62
  FastlaneCore::ConfigItem.new(key: :plist_build_setting_support,
63
63
  description: "support automatic resolution of build setting from xcodeproj if not a literal value in the plist",
64
64
  is_string: false,
65
- default_value: false)
65
+ default_value: false),
66
+ FastlaneCore::ConfigItem.new(key: :skip_package_dependencies_resolution,
67
+ description: "Skips resolution of Swift Package Manager dependencies",
68
+ type: Boolean,
69
+ default_value: false)
66
70
  ]
67
71
  end
68
72
 
@@ -68,7 +68,12 @@ module Fastlane
68
68
  end
69
69
 
70
70
  def self.get_build_number_using_scheme(params)
71
- config = { project: params[:xcodeproj], scheme: params[:scheme], configuration: params[:build_configuration_name] }
71
+ config = {
72
+ project: params[:xcodeproj],
73
+ scheme: params[:scheme],
74
+ configuration: params[:build_configuration_name],
75
+ skip_package_dependencies_resolution: params[:skip_package_dependencies_resolution]
76
+ }
72
77
  project = FastlaneCore::Project.new(config)
73
78
  project.select_scheme
74
79
 
@@ -111,7 +116,11 @@ module Fastlane
111
116
  description: "Specify a specific scheme if you have multiple per project, optional"),
112
117
  FastlaneCore::ConfigItem.new(key: :build_configuration_name,
113
118
  optional: true,
114
- description: "Specify a specific build configuration if you have different build settings for each configuration")
119
+ description: "Specify a specific build configuration if you have different build settings for each configuration"),
120
+ FastlaneCore::ConfigItem.new(key: :skip_package_dependencies_resolution,
121
+ description: "Skips resolution of Swift Package Manager dependencies",
122
+ type: Boolean,
123
+ default_value: false)
115
124
  ]
116
125
  end
117
126
 
@@ -53,7 +53,12 @@ module Fastlane
53
53
  end
54
54
 
55
55
  def self.find_path_using_scheme(params)
56
- config = { project: params[:xcodeproj], scheme: params[:scheme], configuration: params[:build_configuration_name] }
56
+ config = {
57
+ project: params[:xcodeproj],
58
+ scheme: params[:scheme],
59
+ configuration: params[:build_configuration_name],
60
+ skip_package_dependencies_resolution: params[:skip_package_dependencies_resolution]
61
+ }
57
62
  project = FastlaneCore::Project.new(config)
58
63
  project.select_scheme
59
64
 
@@ -98,7 +103,11 @@ module Fastlane
98
103
  description: "Specify a specific scheme if you have multiple per project, optional"),
99
104
  FastlaneCore::ConfigItem.new(key: :build_configuration_name,
100
105
  optional: true,
101
- description: "Specify a specific build configuration if you have different Info.plist build settings for each configuration")
106
+ description: "Specify a specific build configuration if you have different Info.plist build settings for each configuration"),
107
+ FastlaneCore::ConfigItem.new(key: :skip_package_dependencies_resolution,
108
+ description: "Skips resolution of Swift Package Manager dependencies",
109
+ type: Boolean,
110
+ default_value: false)
102
111
  ]
103
112
  end
104
113
 
@@ -60,9 +60,13 @@
60
60
  optional: true,
61
61
  description: "Specify a specific build configuration if you have different Info.plist build settings for each configuration"),
62
62
  FastlaneCore::ConfigItem.new(key: :plist_build_setting_support,
63
- description: "support automatic resolution of build setting from xcodeproj if not a literal value in the plist",
64
- is_string: false,
65
- default_value: false)
63
+ description: "support automatic resolution of build setting from xcodeproj if not a literal value in the plist",
64
+ is_string: false,
65
+ default_value: false),
66
+ FastlaneCore::ConfigItem.new(key: :skip_package_dependencies_resolution,
67
+ description: "Skips resolution of Swift Package Manager dependencies",
68
+ type: Boolean,
69
+ default_value: false)
66
70
  ]
67
71
  end
68
72
 
@@ -52,7 +52,12 @@ module Fastlane
52
52
  end
53
53
 
54
54
  def self.get_version_number_using_scheme(params)
55
- config = { project: params[:xcodeproj], scheme: params[:scheme], configuration: params[:build_configuration_name] }
55
+ config = {
56
+ project: params[:xcodeproj],
57
+ scheme: params[:scheme],
58
+ configuration: params[:build_configuration_name],
59
+ skip_package_dependencies_resolution: params[:skip_package_dependencies_resolution]
60
+ }
56
61
  project = FastlaneCore::Project.new(config)
57
62
  project.select_scheme
58
63
 
@@ -95,7 +100,11 @@ module Fastlane
95
100
  description: "Specify a specific scheme if you have multiple per project, optional"),
96
101
  FastlaneCore::ConfigItem.new(key: :build_configuration_name,
97
102
  optional: true,
98
- description: "Specify a specific build configuration if you have different build settings for each configuration")
103
+ description: "Specify a specific build configuration if you have different build settings for each configuration"),
104
+ FastlaneCore::ConfigItem.new(key: :skip_package_dependencies_resolution,
105
+ description: "Skips resolution of Swift Package Manager dependencies",
106
+ type: Boolean,
107
+ default_value: false)
99
108
  ]
100
109
  end
101
110
 
@@ -82,9 +82,13 @@ module Fastlane
82
82
  optional: true,
83
83
  description: "Specify a specific build configuration if you have different Info.plist build settings for each configuration"),
84
84
  FastlaneCore::ConfigItem.new(key: :plist_build_setting_support,
85
- description: "support automatic resolution of build setting from xcodeproj if not a literal value in the plist",
86
- is_string: false,
87
- default_value: false)
85
+ description: "support automatic resolution of build setting from xcodeproj if not a literal value in the plist",
86
+ is_string: false,
87
+ default_value: false),
88
+ FastlaneCore::ConfigItem.new(key: :skip_package_dependencies_resolution,
89
+ description: "Skips resolution of Swift Package Manager dependencies",
90
+ type: Boolean,
91
+ default_value: false)
88
92
  ]
89
93
  end
90
94
 
@@ -117,7 +117,11 @@ module Fastlane
117
117
  description: "Specify a specific scheme if you have multiple per project, optional"),
118
118
  FastlaneCore::ConfigItem.new(key: :build_configuration_name,
119
119
  optional: true,
120
- description: "Specify a specific build configuration if you have different build settings for each configuration")
120
+ description: "Specify a specific build configuration if you have different build settings for each configuration"),
121
+ FastlaneCore::ConfigItem.new(key: :skip_package_dependencies_resolution,
122
+ description: "Skips resolution of Swift Package Manager dependencies",
123
+ type: Boolean,
124
+ default_value: false)
121
125
  ]
122
126
  end
123
127
 
@@ -136,7 +136,11 @@ module Fastlane
136
136
  FastlaneCore::ConfigItem.new(key: :plist_build_setting_support,
137
137
  description: "support automatic resolution of build setting from xcodeproj if not a literal value in the plist",
138
138
  is_string: false,
139
- default_value: false)
139
+ default_value: false),
140
+ FastlaneCore::ConfigItem.new(key: :skip_package_dependencies_resolution,
141
+ description: "Skips resolution of Swift Package Manager dependencies",
142
+ type: Boolean,
143
+ default_value: false)
140
144
  ]
141
145
  end
142
146
 
@@ -173,6 +173,10 @@ module Fastlane
173
173
  FastlaneCore::ConfigItem.new(key: :plist_build_setting_support,
174
174
  description: "support automatic resolution of build setting from xcodeproj if not a literal value in the plist",
175
175
  is_string: false,
176
+ default_value: false),
177
+ FastlaneCore::ConfigItem.new(key: :skip_package_dependencies_resolution,
178
+ description: "Skips resolution of Swift Package Manager dependencies",
179
+ type: Boolean,
176
180
  default_value: false)
177
181
  ]
178
182
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Versioning
3
- VERSION = "0.5.1"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-versioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siarhei Fiedartsou
8
8
  - John Douglas
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-06-25 00:00:00.000000000 Z
12
+ date: 2024-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pry
@@ -67,7 +67,7 @@ dependencies:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: 1.93.1
70
- description:
70
+ description:
71
71
  email:
72
72
  - siarhei.fedartsou@gmail.com
73
73
  - john.douglas.nz@gmail.com
@@ -95,7 +95,7 @@ homepage: https://github.com/SiarheiFedartsou/fastlane-plugin-versioning
95
95
  licenses:
96
96
  - MIT
97
97
  metadata: {}
98
- post_install_message:
98
+ post_install_message:
99
99
  rdoc_options: []
100
100
  require_paths:
101
101
  - lib
@@ -110,8 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  requirements: []
113
- rubygems_version: 3.0.6
114
- signing_key:
113
+ rubygems_version: 3.5.11
114
+ signing_key:
115
115
  specification_version: 4
116
116
  summary: Allows to set/get app version and build number directly to/from Info.plist
117
117
  test_files: []