//
//  NSBundle+Applivery.swift
//  AppliverySDK
//
//  Created by Alejandro Jiménez on 18/1/16.
//  Copyright © 2016 Applivery S.L. All rights reserved.
//

import Foundation

extension Bundle {

	class func applivery() -> Bundle {
		return Bundle(for: Applivery.self)
	}

}

//
//  NSBundle+Applivery.swift
//  AppliverySDK
//
//  Created by Alejandro Jiménez on 18/1/16.
//  Copyright © 2016 Applivery S.L. All rights reserved.
//

import Foundation

extension Bundle {
	
	class func applivery() -> Bundle {
		Bundle(for: Applivery.self)
			.url(forResource: "Applivery", withExtension: "bundle")
			.flatMap(Bundle.init(url:))
			?? Bundle(for: Applivery.self)
	}
	
}

Load bundle for static framework, if fails, load for Dynamic framework
Fix: Load bundle for static framework, if fails, load for  Dynamic framework
