fastlane-plugin-xcconfig_actions 1.0.0 → 1.1.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
- SHA1:
3
- metadata.gz: 4ca1c026cc23d89211ae095590c38efdaf2f7a20
4
- data.tar.gz: 65412a70fe01ce3a8e38874f422f918258688996
2
+ SHA256:
3
+ metadata.gz: 1de54217087690915ba20ee2e6cb210e198d0663696dcb59314aab235391142b
4
+ data.tar.gz: 4cce95907529eb88ffff000abadbe3bcbf7a0cc119418fd8ac09996a8809b571
5
5
  SHA512:
6
- metadata.gz: 66d4512ca2e311265a018bbddc8fffd029d03e5d3bbcbf0871fce8432ea0adc927cd88c9611830554dcc5052472ff61a892f43f141f50adf67e59dc8eeff23b1
7
- data.tar.gz: 1d7be32a98c6782cc670b3a5417494d7bb9f44d77f8da868d1baa531f4660286acc4fedac21388fb0e73458eb58dc4e7b8529a6f0563d896442fb909a9782d20
6
+ metadata.gz: 4ca5c56e3317e7407d37f2175ec367bf392ad010377191fe56b65c6c07a28302f87ec1253021182fa88449220c8e6fdd3ba6baaf60e45336d7298e0400e0d5e1
7
+ data.tar.gz: c5e29e943f531cb921c7a1f11ea542293ab4296e757379510cce3d4759f19bd195f6b5c62cca971c9f022e2372767b778780285248197db1511346b38d7e77e5
data/README.md CHANGED
@@ -24,6 +24,7 @@ The `read_xcconfig` action reads contents of xcconfig file the same way Xcode wo
24
24
  - Support for nested variable references like `$(VAR1_$(VAR2))`
25
25
  - Support for `#include "other.xcconfig"` statements
26
26
  - Support for project/target level inheritance mechanism
27
+ - Support for `XCODE_VERSION_MAJOR` build setting
27
28
 
28
29
  See [this xcconfig guide](https://pewpewthespells.com/blog/xcconfig_guide.html) for detailed explanation.
29
30
 
@@ -21,6 +21,13 @@ module Fastlane
21
21
  parent_config["SRCROOT"] = srcroot
22
22
  parent_config["TARGET_NAME"] = target_name if target_name
23
23
 
24
+ if Helper::XcconfigActionsHelper.command_exist?("xcodebuild")
25
+ # Set value of XCODE_VERSION_MAJOR not available when reading xcconfigs directly.
26
+ xcode_version = `xcodebuild -version | head -n1 | cut -d' ' -f2 | xargs`.strip
27
+ xcode_version_majon_padded = xcode_version.split(".").first.rjust(2, "0") + "00"
28
+ parent_config["XCODE_VERSION_MAJOR"] = xcode_version_majon_padded
29
+ end
30
+
24
31
  resolved_parent_config = resolve_config(parent_config)
25
32
  resolved_config = resolve_config(config, parent: resolved_parent_config)
26
33
 
@@ -5,6 +5,11 @@ module Fastlane
5
5
 
6
6
  module Helper
7
7
  class XcconfigActionsHelper
8
+ # Check if shell command exists.
9
+ def self.command_exist?(cmd)
10
+ `which #{cmd} 2>/dev/null`.chomp != ""
11
+ end
12
+
8
13
  # class methods that you define here become available in your action
9
14
  # as `Helper::XcconfigActionsHelper.your_method`
10
15
  #
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module XcconfigActions
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-xcconfig_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maksym Grebenets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-22 00:00:00.000000000 Z
11
+ date: 2019-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -168,8 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  - !ruby/object:Gem::Version
169
169
  version: '0'
170
170
  requirements: []
171
- rubyforge_project:
172
- rubygems_version: 2.6.14
171
+ rubygems_version: 3.0.3
173
172
  signing_key:
174
173
  specification_version: 4
175
174
  summary: Adds actions to fastlane to work with xcconfig files