nixenvironment 0.0.127 → 0.0.129
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/Config +3 -7
- data/bin/nixenvironment +80 -35
- data/lib/nixenvironment/archiver.rb +2 -2
- data/lib/nixenvironment/config.rb +3 -8
- data/lib/nixenvironment/version.rb +1 -1
- data/lib/nixenvironment/xcodebuild.rb +24 -33
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 723841607a535415566ae0a2cb6d65ec4bd2b8b3
|
4
|
+
data.tar.gz: ecc605d3637afb50fa95824b68225686026f5254
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4281a4ddc308cd9d8664797de1218ccf52d28398fc0202c65e440aae9d40ffd6bf5d4d39846ea6be998d3a85194f4c0bcf814a0bc8f247c1dcbb77bbdcea57a3
|
7
|
+
data.tar.gz: 69109ee9082bd7ca762eca8c3e8185c85b4dc63af0969ae8566ab48e5d01a7cc2c755b68ea1b762fb747f6f7033a15941de81f814a7f8b90e9f3d943954376bd
|
data/bin/Config
CHANGED
@@ -1,17 +1,13 @@
|
|
1
1
|
---
|
2
2
|
# set these vars if you have multiple projects in the root directory:
|
3
|
-
|
4
|
-
PROJECT_TARGET_TO_BUILD:
|
5
|
-
PROJECT_TARGET_TO_TEST:
|
3
|
+
PROJECT: NIXProject.xcodeproj
|
6
4
|
|
7
5
|
# OR set these vars if you want to build the workspace instead of the project:
|
8
|
-
|
9
|
-
|
10
|
-
WORKSPACE_SCHEME_TO_TEST: Application
|
6
|
+
WORKSPACE: NIXProject.xcworkspace
|
7
|
+
SCHEME: Application
|
11
8
|
|
12
9
|
# for osx projects sdk should be macosx (or more specific, f. e.: macosx10.10)
|
13
10
|
SDK: iphoneos
|
14
|
-
SDK_FOR_TESTS: iphonesimulator
|
15
11
|
|
16
12
|
EXCLUDE_PATTERN_FOR_CODE_DUPLICATION: "**/Vendor|**/Scripts|**/Pods"
|
17
13
|
|
data/bin/nixenvironment
CHANGED
@@ -22,14 +22,6 @@ program :description, 'NIX projects build and deploy utility'
|
|
22
22
|
|
23
23
|
default_command :help
|
24
24
|
|
25
|
-
global_option ('--project_to_build VALUE') { |value| $project_to_build = value }
|
26
|
-
global_option ('--project_target_to_build VALUE') { |value| $project_target_to_build = value }
|
27
|
-
global_option ('--project_target_to_test VALUE') { |value| $project_target_to_test = value }
|
28
|
-
global_option ('--workspace_to_build VALUE') { |value| $workspace_to_build = value }
|
29
|
-
global_option ('--workspace_scheme_to_build VALUE') { |value| $workspace_scheme_to_build = value }
|
30
|
-
global_option ('--workspace_scheme_to_test VALUE') { |value| $workspace_scheme_to_test = value }
|
31
|
-
global_option ('--sdk VALUE') { |value| $sdk = value }
|
32
|
-
global_option ('--sdk_for_tests VALUE') { |value| $sdk_for_tests = value }
|
33
25
|
global_option ('--exclude_pattern_for_code_duplication VALUE') { |value| $exclude_pattern_for_code_duplication = value }
|
34
26
|
global_option ('--deploy_host VALUE') { |value| $deploy_host = value }
|
35
27
|
global_option ('--deploy_path VALUE') { |value| $deploy_path = value }
|
@@ -63,6 +55,12 @@ end
|
|
63
55
|
command :build do |c|
|
64
56
|
c.syntax = 'nixenvironment build [options]'
|
65
57
|
c.description = 'Build project for selected configuration and make signed/resigned ipa'
|
58
|
+
|
59
|
+
c.option '--project VALUE', String, 'Project name'
|
60
|
+
c.option '--workspace VALUE', String, 'Workspace name'
|
61
|
+
c.option '--scheme VALUE', String, 'Scheme name'
|
62
|
+
c.option '--sdk VALUE', String, 'SDK name'
|
63
|
+
|
66
64
|
c.option '--config NAME', String, 'Select configuration'
|
67
65
|
c.option '--xcconfig PATH', String, 'Specify the path to .xcconfig file'
|
68
66
|
c.option '--ipa TYPES', String, 'Select sign (device, resigned_device, resigned_adhoc, resigned_appstore)'
|
@@ -75,7 +73,6 @@ command :build do |c|
|
|
75
73
|
c.option '--key_alias_password PASSWORD', String, 'Specify the password for accessing an alias name'
|
76
74
|
c.option '--unity_platform TARGET PLATFORM', String, 'Select target platform for unity build (ios | macos | android | winphone | webgl)'
|
77
75
|
c.option '--ndsym', 'Disable .dsym generation for ios project'
|
78
|
-
c.option '--ci_build', 'Deprecated' # TODO: remove
|
79
76
|
c.option '--icon_tagger MODE', String, 'Set XcodeIconTagger mode (full, short, off)'
|
80
77
|
c.option '--app_version VERSION', String, 'Specify the version of the app (not implemented for unity-android)' # TODO: implement for unity-android
|
81
78
|
c.option '--build_number BUILD_NUMBER', String, 'Specify the build number of the app (not implemented for unity-android)' # TODO: implement for unity-android
|
@@ -84,6 +81,11 @@ command :build do |c|
|
|
84
81
|
c.option '--share_schemes', 'Share schemes for xcode project'
|
85
82
|
c.option '--xc_args ARGS', String, 'Pass arguments to xcodebuild'
|
86
83
|
c.action do |_args, options|
|
84
|
+
$workspace = options.workspace
|
85
|
+
$project = options.project
|
86
|
+
$scheme = options.scheme
|
87
|
+
$sdk = options.sdk
|
88
|
+
|
87
89
|
options.default :config => 'Debug', :ipa => 'device', :icon_tagger => 'full', :unity_path => 'UNITY'
|
88
90
|
unity_platform = options.unity_platform
|
89
91
|
is_unity_platform = unity_platform.present?
|
@@ -141,24 +143,23 @@ command :build do |c|
|
|
141
143
|
@config_settings[CONFIGURATION_KEY] = options.config
|
142
144
|
|
143
145
|
if is_unity_platform
|
144
|
-
@config_settings[
|
145
|
-
@config_settings[
|
146
|
-
@config_settings[
|
147
|
-
@config_settings[
|
148
|
-
@config_settings[ICONS_PATH_KEY] = UNITY_BUILDS_ICONS_PATH
|
146
|
+
@config_settings[WORKSPACE_KEY] = nil
|
147
|
+
@config_settings[PROJECT_KEY] = UNITY_BUILDS_IOS_PROJECT
|
148
|
+
@config_settings[SCHEME_KEY] = UNITY_BUILDS_IOS_SCHEME
|
149
|
+
@config_settings[ICONS_PATH_KEY] = UNITY_BUILDS_ICONS_PATH
|
149
150
|
end
|
150
151
|
|
151
152
|
begin
|
152
153
|
# Phonegap hotfix (http://mgrebenets.github.io/xcode/2014/05/29/share-xcode-schemes)
|
153
154
|
# TODO: rework this!
|
154
155
|
if options.share_schemes
|
155
|
-
xcproj = Xcodeproj::Project.open(@config_settings[
|
156
|
+
xcproj = Xcodeproj::Project.open(@config_settings[PROJECT_KEY])
|
156
157
|
xcproj.recreate_user_schemes
|
157
158
|
xcproj.save
|
158
159
|
end
|
159
160
|
|
160
|
-
Xcodebuild.read_config_settings(@config_settings[
|
161
|
-
@config_settings[
|
161
|
+
Xcodebuild.read_config_settings(@config_settings[WORKSPACE_KEY], @config_settings[PROJECT_KEY],
|
162
|
+
@config_settings[SCHEME_KEY],
|
162
163
|
@config_settings[SDK_KEY], @config_settings[CONFIGURATION_KEY], options.xcconfig)
|
163
164
|
|
164
165
|
raise 'Failed read_config_settings!' unless Xcodebuild.last_cmd_success?
|
@@ -233,7 +234,21 @@ end
|
|
233
234
|
command :test do |c|
|
234
235
|
c.syntax = 'nixenvironment test'
|
235
236
|
c.description = 'Build xctest unit tests and run them in simulator'
|
236
|
-
|
237
|
+
|
238
|
+
c.option '--project VALUE', String, 'Project name'
|
239
|
+
c.option '--workspace VALUE', String, 'Workspace name'
|
240
|
+
c.option '--scheme VALUE', String, 'Scheme name'
|
241
|
+
c.option '--sdk VALUE', String, 'SDK name'
|
242
|
+
|
243
|
+
c.action do |_args, options|
|
244
|
+
$workspace = options.workspace
|
245
|
+
$project = options.project
|
246
|
+
$scheme = options.scheme
|
247
|
+
|
248
|
+
#own default value
|
249
|
+
$sdk = 'iphonesimulator'
|
250
|
+
$sdk = options.sdk if options.sdk.present?
|
251
|
+
|
237
252
|
read_config_settings
|
238
253
|
test
|
239
254
|
end
|
@@ -242,7 +257,16 @@ end
|
|
242
257
|
command :code_coverage do |c|
|
243
258
|
c.syntax = 'nixenvironment code_coverage'
|
244
259
|
c.description = 'Generate xctest unit tests code coverage report'
|
245
|
-
|
260
|
+
|
261
|
+
c.option '--project VALUE', String, 'Project name'
|
262
|
+
c.option '--workspace VALUE', String, 'Workspace name'
|
263
|
+
c.option '--scheme VALUE', String, 'Scheme name'
|
264
|
+
|
265
|
+
c.action do |_args, options|
|
266
|
+
$workspace = options.workspace
|
267
|
+
$project = options.project
|
268
|
+
$scheme = options.scheme
|
269
|
+
|
246
270
|
read_config_settings
|
247
271
|
code_coverage
|
248
272
|
end
|
@@ -430,14 +454,10 @@ def read_config_settings
|
|
430
454
|
{:value => 'Specification', :alignment => :center},
|
431
455
|
{:value => 'Value', :alignment => :center}]
|
432
456
|
|
433
|
-
|
434
|
-
|
435
|
-
update_config_settings(
|
436
|
-
update_config_settings(WORKSPACE_TO_BUILD_KEY, $workspace_to_build, table, true)
|
437
|
-
update_config_settings(WORKSPACE_SCHEME_TO_BUILD_KEY, $workspace_scheme_to_build, table, true)
|
438
|
-
update_config_settings(WORKSPACE_SCHEME_TO_TEST_KEY, $workspace_scheme_to_test, table, true)
|
457
|
+
update_project_and_workspace(table)
|
458
|
+
|
459
|
+
update_config_settings(SCHEME_KEY, $scheme, table, true)
|
439
460
|
update_config_settings(SDK_KEY, $sdk, table, true)
|
440
|
-
update_config_settings(SDK_FOR_TESTS_KEY, $sdk_for_tests, table, true)
|
441
461
|
update_config_settings(EXCLUDE_PATTERN_FOR_CODE_DUPLICATION_KEY, $exclude_pattern_for_code_duplication, table, true)
|
442
462
|
update_config_settings(DEPLOY_HOST_KEY, $deploy_host, table, true)
|
443
463
|
update_config_settings(DEPLOY_PATH_KEY, $deploy_path, table, true)
|
@@ -465,6 +485,31 @@ def read_config_settings
|
|
465
485
|
puts table
|
466
486
|
end
|
467
487
|
|
488
|
+
def update_project_and_workspace(table)
|
489
|
+
# try to find automatically if not set (will work only in case of single project/workspace in dir)
|
490
|
+
if !$project.present? && !$workspace.present?
|
491
|
+
projects_in_dir = Dir.glob("*.xcodeproj")
|
492
|
+
workspaces_in_dir = Dir.glob("*.xcworkspace")
|
493
|
+
|
494
|
+
if workspaces_in_dir.count == 1
|
495
|
+
$workspace = workspaces_in_dir.first
|
496
|
+
elsif workspaces_in_dir.count == 0 && projects_in_dir.count == 1
|
497
|
+
$project = projects_in_dir.first
|
498
|
+
|
499
|
+
#reset defaults
|
500
|
+
@config_settings[WORKSPACE_KEY] = nil
|
501
|
+
end
|
502
|
+
end
|
503
|
+
|
504
|
+
if $project.present? && !$workspace.present?
|
505
|
+
#reset defaults
|
506
|
+
@config_settings[WORKSPACE_KEY] = nil
|
507
|
+
end
|
508
|
+
|
509
|
+
update_config_settings(PROJECT_KEY, $project, table, true)
|
510
|
+
update_config_settings(WORKSPACE_KEY, $workspace, table, true)
|
511
|
+
end
|
512
|
+
|
468
513
|
def update_config_settings(key, value, table, need_separator)
|
469
514
|
if value
|
470
515
|
@config_settings[key] = value
|
@@ -502,10 +547,9 @@ def prebuild(config, app_version, requires_fullscreen, skip_working_copy_check)
|
|
502
547
|
end
|
503
548
|
|
504
549
|
def build(config, xcconfig, ipa, ndsym, icon_tagger, xc_args)
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
workspace_scheme_to_build = @config_settings[WORKSPACE_SCHEME_TO_BUILD_KEY]
|
550
|
+
project = @config_settings[PROJECT_KEY]
|
551
|
+
workspace = @config_settings[WORKSPACE_KEY]
|
552
|
+
scheme = @config_settings[SCHEME_KEY]
|
509
553
|
sdk = @config_settings[SDK_KEY]
|
510
554
|
configuration_build_dir = @config_settings[CONFIGURATION_BUILD_DIR_KEY]
|
511
555
|
dwarf_dsym_folder_path = @config_settings[DWARF_DSYM_FOLDER_PATH_KEY]
|
@@ -528,7 +572,7 @@ def build(config, xcconfig, ipa, ndsym, icon_tagger, xc_args)
|
|
528
572
|
xc_args = other_args_str
|
529
573
|
end
|
530
574
|
|
531
|
-
Xcodebuild.build(sdk, config, xcconfig,
|
575
|
+
Xcodebuild.build(sdk, config, xcconfig, project, workspace, scheme, env_var_prefix, xc_args)
|
532
576
|
|
533
577
|
error('Build error!') unless Xcodebuild.last_cmd_success?
|
534
578
|
|
@@ -752,8 +796,9 @@ end
|
|
752
796
|
def test
|
753
797
|
code_coverage_config = File.join(@config_settings[CONFIGURATION_FILES_PATH_KEY], @config_settings[CODE_COVERAGE_CONFIGURATION_KEY])
|
754
798
|
|
755
|
-
Xcodebuild.test(@config_settings[
|
756
|
-
@config_settings[
|
799
|
+
Xcodebuild.test(@config_settings[SDK_KEY], 'Debug', @config_settings[WORKSPACE_KEY],
|
800
|
+
@config_settings[PROJECT_KEY], @config_settings[SCHEME_KEY],
|
801
|
+
code_coverage_config,
|
757
802
|
TESTS_AND_COVERAGE_TIMEOUT, @config_settings[XCTEST_DESTINATION_DEVICE_KEY])
|
758
803
|
|
759
804
|
error('Run test error!') unless Xcodebuild.last_cmd_success?
|
@@ -763,8 +808,8 @@ def code_coverage
|
|
763
808
|
code_coverage_ignore_file = File.join(@config_settings[CONFIGURATION_FILES_PATH_KEY], @config_settings[CODE_COVERAGE_IGNORE_FILE_KEY])
|
764
809
|
code_coverage_ignore_lines = File.readlines(code_coverage_ignore_file)
|
765
810
|
|
766
|
-
Slather.coverage(@config_settings[
|
767
|
-
@config_settings[CODE_COVERAGE_OUTPUT_DIRECTORY_KEY], code_coverage_ignore_lines, @config_settings[
|
811
|
+
Slather.coverage(@config_settings[WORKSPACE_KEY], @config_settings[SCHEME_KEY], "Debug",
|
812
|
+
@config_settings[CODE_COVERAGE_OUTPUT_DIRECTORY_KEY], code_coverage_ignore_lines, @config_settings[PROJECT_KEY])
|
768
813
|
|
769
814
|
error('Code coverage error!') unless Slather.last_cmd_success?
|
770
815
|
end
|
@@ -140,9 +140,9 @@ module Nixenvironment
|
|
140
140
|
ipa_bundle_id = (is_resigned && resigned_bundle_id.present?) ? resigned_bundle_id : get_bundle_id(app_product)
|
141
141
|
|
142
142
|
if is_appstore
|
143
|
-
name_for_deployment =
|
143
|
+
name_for_deployment = "Appstore (#{configuration})"
|
144
144
|
elsif is_adhoc
|
145
|
-
name_for_deployment =
|
145
|
+
name_for_deployment = "AdHoc (#{configuration})"
|
146
146
|
else
|
147
147
|
name_for_deployment = configuration
|
148
148
|
end
|
@@ -90,16 +90,12 @@ module Nixenvironment
|
|
90
90
|
TESTS_AND_COVERAGE_TIMEOUT = 10
|
91
91
|
|
92
92
|
# config keys
|
93
|
-
|
94
|
-
PROJECT_TARGET_TO_BUILD_KEY = 'PROJECT_TARGET_TO_BUILD'
|
95
|
-
PROJECT_TARGET_TO_TEST_KEY = 'PROJECT_TARGET_TO_TEST'
|
93
|
+
PROJECT_KEY = 'PROJECT'
|
96
94
|
|
97
|
-
|
98
|
-
|
99
|
-
WORKSPACE_SCHEME_TO_TEST_KEY = 'WORKSPACE_SCHEME_TO_TEST'
|
95
|
+
WORKSPACE_KEY = 'WORKSPACE'
|
96
|
+
SCHEME_KEY = 'SCHEME'
|
100
97
|
|
101
98
|
SDK_KEY = 'SDK'
|
102
|
-
SDK_FOR_TESTS_KEY = 'SDK_FOR_TESTS'
|
103
99
|
|
104
100
|
EXCLUDE_PATTERN_FOR_CODE_DUPLICATION_KEY = 'EXCLUDE_PATTERN_FOR_CODE_DUPLICATION'
|
105
101
|
|
@@ -136,7 +132,6 @@ module Nixenvironment
|
|
136
132
|
DWARF_DSYM_FOLDER_PATH_KEY = 'DWARF_DSYM_FOLDER_PATH'
|
137
133
|
BUILT_PRODUCTS_DIR_KEY = 'BUILT_PRODUCTS_DIR'
|
138
134
|
EXECUTABLE_NAME_KEY = 'EXECUTABLE_NAME'
|
139
|
-
PROJECT_KEY = 'PROJECT'
|
140
135
|
OBJECT_FILE_DIR_NORMAL_KEY = 'OBJECT_FILE_DIR_normal'
|
141
136
|
EMBEDDED_PROFILE_NAME_KEY = 'EMBEDDED_PROFILE_NAME'
|
142
137
|
TARGET_NAME_KEY = 'TARGET_NAME'
|
@@ -26,24 +26,13 @@ module Nixenvironment
|
|
26
26
|
end
|
27
27
|
|
28
28
|
# other => other args to be passed to xcodebuild
|
29
|
-
def self.build(sdk = nil, config = nil, xcconfig = nil, project = nil,
|
29
|
+
def self.build(sdk = nil, config = nil, xcconfig = nil, project = nil, workspace = nil, scheme = nil, env_var_prefix = nil, xc_args = nil)
|
30
30
|
build_args = []
|
31
31
|
build_args << "-sdk '#{sdk}'" if sdk.present?
|
32
32
|
build_args << "-configuration '#{config}'" if config.present?
|
33
33
|
build_args << "-xcconfig '#{xcconfig}'" if xcconfig.present?
|
34
34
|
|
35
|
-
|
36
|
-
build_args << "-workspace '#{workspace}'"
|
37
|
-
elsif project.present?
|
38
|
-
build_args << "-project '#{project}'"
|
39
|
-
end
|
40
|
-
# TODO: if not workspace or project present, search automatically. Probably not in this class
|
41
|
-
|
42
|
-
if scheme.present?
|
43
|
-
build_args << "-scheme '#{scheme}'"
|
44
|
-
elsif target.present?
|
45
|
-
build_args << "-target '#{target}'"
|
46
|
-
end
|
35
|
+
define_workspace_or_project(build_args, workspace, project, scheme)
|
47
36
|
|
48
37
|
if env_var_prefix.present?
|
49
38
|
vars_to_define = ''
|
@@ -64,12 +53,13 @@ module Nixenvironment
|
|
64
53
|
execute(nil, build_args)
|
65
54
|
end
|
66
55
|
|
67
|
-
def self.test(sdk = nil, config = nil, workspace = nil, scheme = nil, code_coverage_config = nil, timeout = nil, destination = nil)
|
56
|
+
def self.test(sdk = nil, config = nil, workspace = nil, project = nil, scheme = nil, code_coverage_config = nil, timeout = nil, destination = nil)
|
68
57
|
build_args = []
|
69
58
|
build_args << "-sdk '#{sdk}'" if sdk.present?
|
70
59
|
build_args << "-configuration '#{config}'" if config.present?
|
71
|
-
|
72
|
-
build_args
|
60
|
+
|
61
|
+
define_workspace_or_project(build_args, workspace, project, scheme)
|
62
|
+
|
73
63
|
build_args << "-xcconfig '#{code_coverage_config}'" if code_coverage_config.present?
|
74
64
|
build_args << "-destination-timeout '#{timeout}'" if timeout.present?
|
75
65
|
build_args << "-destination '#{destination}'" if destination.present?
|
@@ -78,31 +68,20 @@ module Nixenvironment
|
|
78
68
|
execute('test', build_args)
|
79
69
|
end
|
80
70
|
|
81
|
-
def self.read_config_settings(workspace = nil, project = nil, scheme = nil,
|
71
|
+
def self.read_config_settings(workspace = nil, project = nil, scheme = nil, sdk = nil, config = nil, xcconfig = nil)
|
82
72
|
@config_settings = {}
|
83
|
-
read_info
|
73
|
+
read_info(workspace, project)
|
84
74
|
|
85
|
-
raise "Scheme #{scheme} doesn't exist!" if
|
75
|
+
raise "Scheme #{scheme} doesn't exist!" if scheme.present? && !contains_scheme?(scheme)
|
86
76
|
raise "Configuration #{config} doesn't exist!" if config.present? && !contains_config?(config)
|
87
|
-
raise "Either #{
|
77
|
+
raise "Either #{PROJECT_KEY} or #{WORKSPACE_KEY} must be specified!" if project.blank? && workspace.blank?
|
88
78
|
|
89
79
|
build_args = []
|
90
80
|
build_args << "-sdk '#{sdk}'" if sdk.present?
|
91
81
|
build_args << "-configuration '#{config}'" if config.present?
|
92
82
|
build_args << "-xcconfig '#{xcconfig}'" if xcconfig.present?
|
93
83
|
|
94
|
-
|
95
|
-
build_args << "-workspace '#{workspace}'"
|
96
|
-
elsif project.present?
|
97
|
-
build_args << "-project '#{project}'"
|
98
|
-
end
|
99
|
-
# TODO: if not workspace or project present, search automatically. Probably not in this class
|
100
|
-
|
101
|
-
if scheme.present?
|
102
|
-
build_args << "-scheme '#{scheme}'"
|
103
|
-
elsif target.present?
|
104
|
-
build_args << "-target '#{target}'"
|
105
|
-
end
|
84
|
+
define_workspace_or_project(build_args, workspace, project, scheme)
|
106
85
|
|
107
86
|
build_args << 'clean'
|
108
87
|
build_args << '-showBuildSettings'
|
@@ -136,6 +115,18 @@ module Nixenvironment
|
|
136
115
|
@config_settings[RESIGNED_BUNDLE_NAME_KEY] ||= info_plist['CFBundleDisplayName']
|
137
116
|
end
|
138
117
|
|
118
|
+
def self.define_workspace_or_project(build_args, workspace = nil, project = nil, scheme = nil, target = nil)
|
119
|
+
if workspace.present?
|
120
|
+
build_args << "-workspace '#{workspace}'"
|
121
|
+
elsif project.present?
|
122
|
+
build_args << "-project '#{project}'"
|
123
|
+
end
|
124
|
+
|
125
|
+
if scheme.present?
|
126
|
+
build_args << "-scheme '#{scheme}'"
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
139
130
|
def self.product_settings_path(workspace, scheme, scheme_suffix)
|
140
131
|
scheme += scheme_suffix
|
141
132
|
if contains_scheme?(scheme)
|
@@ -169,7 +160,7 @@ module Nixenvironment
|
|
169
160
|
nil
|
170
161
|
end
|
171
162
|
|
172
|
-
def self.read_info
|
163
|
+
def self.read_info(workspace = nil, project = nil)
|
173
164
|
@info = {}
|
174
165
|
|
175
166
|
puts
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nixenvironment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.129
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cocoapods
|
@@ -339,7 +339,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
339
339
|
version: '0'
|
340
340
|
requirements: []
|
341
341
|
rubyforge_project:
|
342
|
-
rubygems_version: 2.
|
342
|
+
rubygems_version: 2.5.1
|
343
343
|
signing_key:
|
344
344
|
specification_version: 4
|
345
345
|
summary: NIX projects build and deploy utility
|