nixenvironment 0.0.90 → 0.0.91

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: 1ce30654e4cde2352a2cbdb863e78c907a93b445
4
- data.tar.gz: 2f619dce3a62663ad34132e0a607155a3e5a5ba7
3
+ metadata.gz: b933ced25619aafbc3e120a074af20bb97388be2
4
+ data.tar.gz: 56fa4bea69fa8558498678f977bb5974994e3d8c
5
5
  SHA512:
6
- metadata.gz: a3705f16a43821df1749060f4087a187297a3451e3c025500ee347d42c5f99dc202657551f70553461c3d5c1502923703c7ea059a08806068b5203a4a5d855b3
7
- data.tar.gz: b7543be710dccc753f26694b5069962ed5414a197b41ea729c8e9b67a4eccc17b76c4707301ee9a761a78487e5a0f650ca07e3c55a6c752c9f6936eb009742fe
6
+ metadata.gz: 49e62f0a9130d2e1cde4ad97339b48add91a3d6fddd013e885ff5e67e565fb776949dafb1d8b5d7b3df4115b3a06f8575915874677b83b8bc1726b08c3c9e135
7
+ data.tar.gz: ca221cabac30e35739a46c3d0f34a4f751d3a9595bdf8ed2acdfc342b31d110e09c3e29b620558deb5145361bcca79bff56a14287f42b7735b7346efb638a4e5
@@ -258,14 +258,31 @@ module Nixenvironment
258
258
  widget_profile_path, widget_identity_name, is_appstore)
259
259
  Dir.mktmpdir do |tmp_dir|
260
260
  dest_app_dir = File.join(tmp_dir, "Payload")
261
+ swift_support_dir = File.join(tmp_dir, "SwiftSupport")
261
262
  dest_app_product_path = File.join(dest_app_dir, File.basename(app_product_path))
263
+ frameworks_path = File.join(dest_app_product_path, 'Frameworks')
262
264
 
263
265
  puts "--> Create '#{dest_app_dir}' ..."
264
266
  Dir.mkdir(dest_app_dir)
265
267
 
268
+ puts "--> Create '#{swift_support_dir}' ..."
269
+ Dir.mkdir(swift_support_dir)
270
+
266
271
  puts "--> Copy '#{app_product_path}' into '#{dest_app_product_path}' ..."
267
272
  FileUtils.cp_r(app_product_path, dest_app_product_path)
268
273
 
274
+ # Copy Swift Support files if needed
275
+ Dir.entries(frameworks_path).reject{ |e| File.directory?(e) || File.extname(e) == '.framework' }.each do |fw|
276
+ swift_lib = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/#{fw}"
277
+
278
+ if File.exist?(swift_lib)
279
+ puts "--> Copy '#{swift_lib}' into '#{swift_support_dir}' ..."
280
+ FileUtils.cp(swift_lib, swift_support_dir)
281
+ else
282
+ puts_warning "There's no #{swift_lib} !!!"
283
+ end
284
+ end
285
+
269
286
  set_plist_values_in_app_path(app_product_path, 'Configuration' => 'Appstore') if is_appstore
270
287
 
271
288
  # replace provision, rename bundle_id and bundle_name
@@ -318,7 +335,6 @@ module Nixenvironment
318
335
  end
319
336
 
320
337
  # codesign frameworks
321
- frameworks_path = File.join(dest_app_product_path, 'Frameworks')
322
338
  if Dir.exist?(frameworks_path)
323
339
  puts_header "--> Codesign frameworks:"
324
340
  Dir.glob(File.join(frameworks_path, '*.framework')) do |framework|
@@ -655,7 +671,7 @@ module Nixenvironment
655
671
  profile_name = plist['Name']
656
672
  app_id = plist[ENTITLEMENTS_KEY][APPLICATION_IDENTIFIER_KEY]
657
673
  certs = plist['DeveloperCertificates']
658
- expiration_date = plist["ExpirationDate"]
674
+ expiration_date = plist['ExpirationDate']
659
675
  devices = plist['ProvisionedDevices']
660
676
  device_count = devices.present? ? devices.size : 0
661
677
 
@@ -1,3 +1,3 @@
1
1
  module Nixenvironment
2
- VERSION = '0.0.90'
2
+ VERSION = '0.0.91'
3
3
  end
@@ -170,7 +170,7 @@ module Nixenvironment
170
170
  end
171
171
 
172
172
  def self.read_info
173
- @info = {}
173
+ @info = {}
174
174
 
175
175
  puts
176
176
  cmd_output = execute(nil, %w(-list 2>&1))
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.90
4
+ version: 0.0.91
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-26 00:00:00.000000000 Z
12
+ date: 2016-08-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cocoapods