Skip to content

Instantly share code, notes, and snippets.

@pmairoldi
Last active February 19, 2017 20:45
Show Gist options
  • Save pmairoldi/7ad0312dd1c1dcff780f2f95936200ea to your computer and use it in GitHub Desktop.
Save pmairoldi/7ad0312dd1c1dcff780f2f95936200ea to your computer and use it in GitHub Desktop.
FrameworkSpec for Moya
language = swift("3.0")
platforms = [
macos("10.11"),
ios("8.0"),
tvos("9.0"),
watchos("2.0")
]
moya_tests = new_target do |target|
target.name = "MoyaTests"
target.platforms = platforms
target.language = language
target.info_plist = "Sources/Supporting Files/Info.plist"
target.bundle_id = "com.cocoapods.MoyaTests"
target.include_files = ["Tests/**/*.swift"]
target.exclude_files = []
target.resource_files = ["Tests/**/*.png"]
target.dependencies = [
"Moya",
"ReactiveMoya",
"RxMoya",
"Nimble",
"Quick",
"OHHTTPStubs",
"Result",
"Alamofire",
"ReactiveSwift",
"RxSwift"
]
target.type = :unit_test_bundle
end
moya = new_target do |target|
target.name = "Moya"
target.platforms = platforms
target.language = language
target.info_plist = "Sources/Supporting Files/Info.plist"
target.bundle_id = "com.cocoapods.Moya"
target.header = "Sources/Supporting Files/Moya.h"
target.include_files = ["Sources/Moya/**/*.swift"]
target.exclude_files = []
target.is_safe_for_extensions = false
target.test_target = moya_tests
end
reactive_moya = new_target do |target|
target.name = "ReactiveMoya"
target.platforms = platforms
target.language = language
target.info_plist = "Sources/Supporting Files/Info.plist"
target.bundle_id = "com.cocoapods.ReactiveMoya"
target.header = "Sources/Supporting Files/ReactiveMoya.h"
target.include_files = ["Sources/ReactiveMoya/**/*.swift"]
target.exclude_files = []
target.is_safe_for_extensions = false
target.dependencies = ["Moya"]
target.test_target = moya_tests
end
rx_moya = new_target do |target|
target.name = "RxMoya"
target.platforms = platforms
target.language = language
target.info_plist = "Sources/Supporting Files/Info.plist"
target.bundle_id = "com.cocoapods.RxMoya"
target.header = "Sources/Supporting Files/RxMoya.h"
target.include_files = ["Sources/RxMoya/**/*.swift"]
target.exclude_files = []
target.is_safe_for_extensions = false
target.dependencies = ["Moya"]
target.test_target = moya_tests
end
project.name = "Moya"
project.scripts_directory = "scripts"
project.targets = [
moya,
reactive_moya,
rx_moya,
moya_tests
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment