fastlane-plugin-yalantis_ci 0.3.7 → 0.3.8

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: 7e71d3349153fab7a0926badc9f412249eb35729c33723998bd5baf497a41617
4
- data.tar.gz: c951e30ec230b768c904b36d259b644560b33bace96130b5a1c2f565eb564ee7
3
+ metadata.gz: 58cd3b0ec5fef22e15fa882c7ca44203708e8856c0564f576fe7663abfc831b1
4
+ data.tar.gz: c3a33707d3a0bebdfba4226401c9152e46eb8176c9884a588d058554447d0ecf
5
5
  SHA512:
6
- metadata.gz: 72dbadc3a903735a0cb6b0913f84e7af2700af3cc51d1f86bd451c61dee98383687194be17444ac7e8e366c6fa663150b846d78b5d47130d3dccf6824f6f9499
7
- data.tar.gz: c13a7b734b8f48363d0d516357f85fa84b2687e1ee640d1c881d4fae520914e044930c2e64cca6d7be32a2aa2e872ccfa1e432c790a897a188befe46b7f830bf
6
+ metadata.gz: 90b56e0a44ac82f76ec2c06c66b64c11d5f6f7b479c8fbbde46613731ed684337275c9ceaa100df5c7afdac7f4af5a0aada08000cdc1eeb407e6e4dc7c95ed81
7
+ data.tar.gz: 34b52c767b66eb3d92b1616a005b95ee47e56962067e830148248afe06d5a4aaf1e20ecf4e388d5c090547f5b78a484e8a9151c5a1020f71c357b1c2deef0af9
@@ -0,0 +1,45 @@
1
+ require 'pathname'
2
+
3
+ module Fastlane
4
+ module Actions
5
+ class BuildNumberGetFromXcconfigAction < Action
6
+ def self.run(options)
7
+ path = options[:xcconfig_path]
8
+ contents = File.read(path)
9
+
10
+ match = /(?<=\bCURRENT_PROJECT_VERSION\s=\s)(?<value>[\d]+)/.match(contents)
11
+ return match[:value] unless match.nil?
12
+ end
13
+
14
+ def self.description
15
+ "Read Build Number from the passed xcconfig"
16
+ end
17
+
18
+ def self.available_options
19
+ [
20
+ FastlaneCore::ConfigItem.new(
21
+ key: :xcconfig_path,
22
+ env_name: "BUILD_NUMBER_XCCONFIG_PATH",
23
+ description: "Path to the xcconfig file with Build Number",
24
+ type: String,
25
+ verify_block: proc do |value|
26
+ UI.user_error!("Couldn't find .xcconfig file at path '#{value}'") unless File.exist?(File.expand_path(value))
27
+ end
28
+ )
29
+ ]
30
+ end
31
+
32
+ def self.output
33
+ []
34
+ end
35
+
36
+ def self.authors
37
+ ["Dima Vorona", "Yalantis"]
38
+ end
39
+
40
+ def self.is_supported?(platform)
41
+ [:ios, :mac].include?(platform)
42
+ end
43
+ end
44
+ end
45
+ end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module YalantisCi
3
- VERSION = "0.3.7"
3
+ VERSION = "0.3.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-yalantis_ci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dima Vorona
@@ -162,6 +162,7 @@ files:
162
162
  - lib/fastlane/plugin/yalantis_ci/actions/app_store_connect_api_key_add_to_remote.rb
163
163
  - lib/fastlane/plugin/yalantis_ci/actions/app_store_connect_api_key_remove_from_remote.rb
164
164
  - lib/fastlane/plugin/yalantis_ci/actions/app_store_connect_api_key_set_from_remote.rb
165
+ - lib/fastlane/plugin/yalantis_ci/actions/build_number_get_from_xcconfig.rb
165
166
  - lib/fastlane/plugin/yalantis_ci/actions/build_number_set_to_xcconfig.rb
166
167
  - lib/fastlane/plugin/yalantis_ci/actions/build_number_sync.rb
167
168
  - lib/fastlane/plugin/yalantis_ci/actions/ci_setup.rb