nixenvironment 0.0.64 → 0.0.65
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: 75c1eef3f33d03ebe3e67692aee6967fb28701fc
|
4
|
+
data.tar.gz: 0200541c06f63d158ab537150c4abf6386e1480c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b24e313955f68c4985aca1b1774a0cfca3cfc0b270f3c6278b82e78c77deabd2b3bd255711adb9463c84dbf99a5820cdcb7183d3237bb329ab3a0de3583e547b
|
7
|
+
data.tar.gz: e2c2527f139ff86921fa711f9d6294106570cfbddaa91c81b119514131610133e72d4ba80f2f6fabbcbcef6275e7078589a03ab7d3c102bfe5b738ae0d5869bb
|
data/bin/nixenvironment
CHANGED
@@ -107,7 +107,7 @@ command :build do |c|
|
|
107
107
|
error('Build error!', e)
|
108
108
|
end
|
109
109
|
|
110
|
-
@config_settings.merge!(Xcodebuild.config_settings)
|
110
|
+
@config_settings.merge!(Xcodebuild.config_settings) { |_key, v1, v2| v1 || v2 }
|
111
111
|
|
112
112
|
begin
|
113
113
|
prebuild(options.config)
|
@@ -709,5 +709,5 @@ def error(msg, e = nil)
|
|
709
709
|
end
|
710
710
|
|
711
711
|
def success(msg)
|
712
|
-
puts msg.green.
|
712
|
+
puts msg.green.bold
|
713
713
|
end
|
@@ -76,7 +76,7 @@ function GenerateCoverage()
|
|
76
76
|
mkdir -p $outputPath
|
77
77
|
|
78
78
|
printf " Generating coverage for '$productName'... "
|
79
|
-
"${currentScriptDir}/
|
79
|
+
"${currentScriptDir}/../utils/gcovr" -r "$(PWD)" --object-directory="${objectsDir}" "${exclude}" --xml > "$outputPath${productName}.xml"
|
80
80
|
|
81
81
|
if [ $? -ne 0 ]; then
|
82
82
|
exit 1
|
@@ -21,4 +21,4 @@ done
|
|
21
21
|
currentScriptDir="$(dirname "$0")"
|
22
22
|
source "${currentScriptDir}/LoadBuildEnvVars.sh"
|
23
23
|
|
24
|
-
java -jar "${currentScriptDir}/
|
24
|
+
java -jar "${currentScriptDir}/../utils/simian-2.3.33.jar" "**/*.m" "**/*.h" ${excludes} -threshold=5 -failOnDuplication- -formatter=xml:${output}
|
@@ -109,15 +109,14 @@ NAME_FOR_DEPLOYMENT='#{configuration}'
|
|
109
109
|
watchkit_extension_relative_product = build_env_vars['WATCHKIT_EXTENSION_RELATIVE_PRODUCT'].presence
|
110
110
|
widget_relative_product = build_env_vars['WIDGET_RELATIVE_PRODUCT'].presence
|
111
111
|
|
112
|
-
resigned_bundle_id
|
113
|
-
resigned_watchkit_app_bundle_id
|
114
|
-
resigned_watchkit_extension_bundle_id
|
115
|
-
resigned_widget_bundle_id
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
resigned_widget_entitlements_path = build_env_vars[RESIGNED_WIDGET_ENTITLEMENTS_PATH_KEY].presence
|
112
|
+
resigned_bundle_id = is_resigned ? build_env_vars[RESIGNED_BUNDLE_ID_KEY].presence : nil
|
113
|
+
resigned_watchkit_app_bundle_id = is_resigned ? build_env_vars[RESIGNED_WATCHKIT_APP_BUNDLE_ID_KEY].presence : nil
|
114
|
+
resigned_watchkit_extension_bundle_id = is_resigned ? build_env_vars[RESIGNED_WATCHKIT_EXTENSION_BUNDLE_ID_KEY].presence : nil
|
115
|
+
resigned_widget_bundle_id = is_resigned ? build_env_vars[RESIGNED_WIDGET_BUNDLE_ID_KEY].presence : nil
|
116
|
+
resigned_bundle_name = is_resigned ? build_env_vars[RESIGNED_BUNDLE_NAME_KEY].presence : nil
|
117
|
+
resigned_entitlements_path = is_resigned ? build_env_vars[RESIGNED_ENTITLEMENTS_PATH_KEY].presence : nil
|
118
|
+
resigned_watchkit_extension_entitlements_path = is_resigned ? build_env_vars[RESIGNED_WATCHKIT_EXTENSION_ENTITLEMENTS_PATH_KEY].presence : nil
|
119
|
+
resigned_widget_entitlements_path = is_resigned ? build_env_vars[RESIGNED_WIDGET_ENTITLEMENTS_PATH_KEY].presence : nil
|
121
120
|
|
122
121
|
ipa_product = "#{built_products_dir}/#{executable_name}-#{target_name}-#{configuration}#{ipa_product_suffix}.ipa"
|
123
122
|
puts "#{ipa_product_key} = #{ipa_product}"
|
@@ -339,7 +338,7 @@ NAME_FOR_DEPLOYMENT='#{configuration}'
|
|
339
338
|
|
340
339
|
# leave only plist data in file
|
341
340
|
plist = get_plist_from_file(selected_entitlements_path)
|
342
|
-
plist.save
|
341
|
+
plist.save(selected_entitlements_path)
|
343
342
|
|
344
343
|
puts_header '--> Using existing entitlements'
|
345
344
|
else
|
@@ -666,7 +665,7 @@ NAME_FOR_DEPLOYMENT='#{configuration}'
|
|
666
665
|
keychain_name = 'XCodeKeys'
|
667
666
|
keychain_path = %x[ security list | grep '#{keychain_name}' | sed 's/\"//g' | xargs ].strip
|
668
667
|
security_report = %x[ '#{IDENTITIESLIST_UTILITY_PATH}' -k '#{keychain_path}' ]
|
669
|
-
entries = security_report.lines.
|
668
|
+
entries = security_report.lines.map(&:strip).reject(&:empty?)
|
670
669
|
entries.to_set
|
671
670
|
end
|
672
671
|
|
@@ -683,7 +682,7 @@ NAME_FOR_DEPLOYMENT='#{configuration}'
|
|
683
682
|
end
|
684
683
|
|
685
684
|
def puts_warning(msg)
|
686
|
-
puts_bold msg.yellow
|
685
|
+
puts_bold msg.yellow
|
687
686
|
end
|
688
687
|
end
|
689
688
|
end
|
@@ -73,9 +73,10 @@ module Nixenvironment
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def self.read_config_settings(workspace = nil, project = nil, scheme = nil, target = nil, sdk = nil, config = nil)
|
76
|
+
@config_settings = {}
|
76
77
|
read_info
|
77
78
|
|
78
|
-
raise "Scheme #{scheme} doesn't exist!" if scheme.present? && !contains_scheme?(scheme)
|
79
|
+
raise "Scheme #{scheme} doesn't exist!" if target.blank? && scheme.present? && !contains_scheme?(scheme)
|
79
80
|
raise "Configuration #{config} doesn't exist!" if config.present? && !contains_config?(config)
|
80
81
|
raise "Either #{PROJECT_TO_BUILD_KEY} or #{WORKSPACE_TO_BUILD_KEY} must be specified!" if project.blank? && workspace.blank?
|
81
82
|
|
@@ -148,6 +149,7 @@ module Nixenvironment
|
|
148
149
|
end
|
149
150
|
|
150
151
|
def self.read_info
|
152
|
+
@info = {}
|
151
153
|
cmd_output = execute(nil, %w(-list 2>&1))
|
152
154
|
raise "Getting xcode_project_info error! #{cmd_output}" if cmd_output.include?('error')
|
153
155
|
|
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.65
|
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: 2015-09-
|
12
|
+
date: 2015-09-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cocoapods
|