fastlane-actions-xcode_get_product_name 0.2.0 → 0.2.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af0270a40bd207104e4b8db51d17e23f6d75b53e
|
4
|
+
data.tar.gz: 8ab53e3b1c8e8241dbbf1f7a4f77962e67234cd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfef4c7a826313bf4e14a5bad57beff3ed1a4a219dc7a3ea381c8e9eec59e61fdf81281ed4f8f67a7946a87ead6809865b7fd593f3c64e2f17c0dcb46d49997d
|
7
|
+
data.tar.gz: d42cd48efe8ba54e3e960736a4e3d4c5e64b9b5d39d3a214888d008e3e12e6abf6000272a75442332cf12743144e89036b95c076f7aaa102022843d37dd259fe
|
@@ -2,6 +2,21 @@ require "fastlane/actions/xcode_get_product_name/version"
|
|
2
2
|
require "gym"
|
3
3
|
require "fastlane_core"
|
4
4
|
|
5
|
+
module FastlaneCore
|
6
|
+
# Represents an Xcode project
|
7
|
+
class Project
|
8
|
+
def xcodebuild_parameters
|
9
|
+
proj = []
|
10
|
+
proj << "-workspace '#{options[:workspace]}'" if options[:workspace]
|
11
|
+
proj << "-scheme '#{options[:scheme]}'" if options[:scheme]
|
12
|
+
proj << "-project '#{options[:project]}'" if options[:project]
|
13
|
+
proj << "-configuration '#{options[:configuration]}'" if options[:configuration]
|
14
|
+
|
15
|
+
return proj
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
5
20
|
module Fastlane
|
6
21
|
module Actions
|
7
22
|
module SharedValues
|
@@ -30,7 +45,8 @@ module Fastlane
|
|
30
45
|
config = FastlaneCore::Configuration.create(o, params.values)
|
31
46
|
FastlaneCore::Project.detect_projects(config)
|
32
47
|
project = FastlaneCore::Project.new(config)
|
33
|
-
|
48
|
+
project.select_scheme
|
49
|
+
result = project.app_name.to_s
|
34
50
|
|
35
51
|
if result.length > 0
|
36
52
|
Helper.log.info "PRODUCT_NAME #{result} found!".green
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-actions-xcode_get_product_name
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masahiro Kashima
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|