nixenvironment 0.0.89 → 0.0.90

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: 64d8878070046082acb34849978f441236bfe0bf
4
- data.tar.gz: 8dad2ee3d056479e613dbbdaf8293d8eccb96a33
3
+ metadata.gz: 1ce30654e4cde2352a2cbdb863e78c907a93b445
4
+ data.tar.gz: 2f619dce3a62663ad34132e0a607155a3e5a5ba7
5
5
  SHA512:
6
- metadata.gz: 7e60df871a6aaf89e775da036722cc3b552681fbfbe40f1bf88091afda2c6e60cd391c11524d4a2fbab5a64836abdf5dde6807697d9371af798ed1dd3835a286
7
- data.tar.gz: 5931cf305c020a96069530fcbf4e7ff2962c4c95bfd795ea4a413ff172eb1c34fd90ecf105f3540670371c6369916cedd93b60163cd1362e61b78a527ce3910e
6
+ metadata.gz: a3705f16a43821df1749060f4087a187297a3451e3c025500ee347d42c5f99dc202657551f70553461c3d5c1502923703c7ea059a08806068b5203a4a5d855b3
7
+ data.tar.gz: b7543be710dccc753f26694b5069962ed5414a197b41ea729c8e9b67a4eccc17b76c4707301ee9a761a78487e5a0f650ca07e3c55a6c752c9f6936eb009742fe
@@ -317,6 +317,25 @@ module Nixenvironment
317
317
  dest_widget_product_path, widget_profile_path, new_widget_bundle_id)
318
318
  end
319
319
 
320
+ # codesign frameworks
321
+ frameworks_path = File.join(dest_app_product_path, 'Frameworks')
322
+ if Dir.exist?(frameworks_path)
323
+ puts_header "--> Codesign frameworks:"
324
+ Dir.glob(File.join(frameworks_path, '*.framework')) do |framework|
325
+ if File.exist?(File.join(framework, 'Info.plist'))
326
+ framework_bundle_id = get_bundle_id(framework)
327
+ new_framework_bundle_id = "#{new_bundle_id}.#{framework_bundle_id}"
328
+ puts_header "--> Rename bundle id from '#{framework_bundle_id}' into '#{new_framework_bundle_id} in '#{framework}' Info.plist ..."
329
+ set_plist_values_in_app_path(framework, 'CFBundleIdentifier' => framework_bundle_id)
330
+ end
331
+
332
+ codesign_args = ['/usr/bin/codesign', '--force', '--sign', "'#{identity_name}'", "'#{framework}'"]
333
+
334
+ puts_header "--> Codesign framework with params #{codesign_args} ..."
335
+ system(codesign_args.join(' '))
336
+ end
337
+ end
338
+
320
339
  codesign(identity_name, new_entitlements_path, is_provision_replaced, is_bundle_id_or_name_changed, dest_app_product_path, profile_path, new_bundle_id)
321
340
 
322
341
  if Dir.exist?(new_ipa_path)
@@ -332,7 +351,7 @@ module Nixenvironment
332
351
  end
333
352
 
334
353
  def codesign(identity_name, new_entitlements_path, is_provision_replaced, is_bundle_id_or_name_changed, dest_app_product_path, profile_path, new_bundle_id)
335
- codesign_args = ['/usr/bin/codesign', '--force', '--sign', "'#{identity_name}'"]
354
+ codesign_args = ['/usr/bin/codesign', '--force', '--deep', '--sign', "'#{identity_name}'"]
336
355
 
337
356
  # now let's figure out the entitlements...
338
357
  if new_entitlements_path.present?
@@ -1,3 +1,3 @@
1
1
  module Nixenvironment
2
- VERSION = '0.0.89'
2
+ VERSION = '0.0.90'
3
3
  end
@@ -76,7 +76,7 @@ module Nixenvironment
76
76
  build_args << "-xcconfig '#{code_coverage_config}'" if code_coverage_config.present?
77
77
  build_args << "-destination-timeout '#{timeout}'" if timeout.present?
78
78
  build_args << "-destination '#{destination}'" if destination.present?
79
- build_args << " | ocunit2junit"
79
+ build_args << "| ocunit2junit"
80
80
 
81
81
  execute('test', build_args)
82
82
  end
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.89
4
+ version: 0.0.90
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: 2016-07-21 00:00:00.000000000 Z
12
+ date: 2016-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cocoapods