//
//  Date+Bundle.swift
//  DateTools
//
//  Created by Matthew York on 8/26/16.
//  Copyright © 2016 Matthew York. All rights reserved.
//

import Foundation

public extension Bundle {
  
  class func dateToolsBundle() -> Bundle {
    let assetPath = Bundle(for: Constants.self).resourcePath!
    return Bundle(path: (assetPath as NSString).appendingPathComponent("DateTools.bundle"))!
  }
}


//
//  Date+Bundle.swift
//  DateTools
//
//  Created by Matthew York on 8/26/16.
//  Copyright © 2016 Matthew York. All rights reserved.
//

import Foundation

public extension Bundle {
  
  class func dateToolsBundle() -> Bundle {
    let assetPath = Bundle(for: Constants.self).resourcePath!
    return Bundle(path: NSString(string: assetPath).appendingPathComponent("DateTools.bundle"))!
  }
}


Fix for Linux: casting String to NSString fails on Ubuntu, so initialize NSString directly
Fix for Linux: casting String to NSString fails on Ubuntu, so initialize NSString directly
