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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1de54217087690915ba20ee2e6cb210e198d0663696dcb59314aab235391142b
|
4
|
+
data.tar.gz: 4cce95907529eb88ffff000abadbe3bcbf7a0cc119418fd8ac09996a8809b571
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
#
|
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.
|
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-
|
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
|
-
|
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
|