forked from CocoaPods/CocoaPods
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure dependencies per configuration.
- Loading branch information
Showing
25 changed files
with
612 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
examples/multiple test specs Example/ByConfig/ByConfig.podspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'ByConfig' | ||
s.version = '0.1.0' | ||
s.summary = 'A short description of ByConfig.' | ||
s.ios.deployment_target = '10.0' | ||
s.author = { 'Jeff Overwatch' => '[email protected]' } | ||
s.homepage = "https://github.com/" | ||
s.license = 'MIT' | ||
s.source = { :git => "https://github.com/<GITHUB_USERNAME>/ByConfig.git", :tag => s.version.to_s } | ||
|
||
s.source_files = 'ByConfig/Classes/**/*' | ||
|
||
s.swift_version = '4' | ||
|
||
s.app_spec 'App' do |app_spec| | ||
app_spec.source_files = 'ByConfig/App/**/*' | ||
|
||
app_spec.dependency 'TestLib', configurations: %w[Debug] | ||
app_spec.dependency 'HostedTestLib' | ||
end | ||
end |
37 changes: 37 additions & 0 deletions
37
examples/multiple test specs Example/ByConfig/ByConfig/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# OS X | ||
.DS_Store | ||
|
||
# Xcode | ||
build/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata/ | ||
*.xccheckout | ||
profile | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
|
||
# Bundler | ||
.bundle | ||
|
||
# Add this line if you want to avoid checking in source code from Carthage dependencies. | ||
# Carthage/Checkouts | ||
|
||
Carthage/Build | ||
|
||
# We recommend against adding the Pods directory to your .gitignore. However | ||
# you should judge for yourself, the pros and cons are mentioned at: | ||
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control | ||
# | ||
# Note: if you ignore the Pods directory, make sure to uncomment | ||
# `pod install` in .travis.yml | ||
# | ||
# Pods/ |
31 changes: 31 additions & 0 deletions
31
examples/multiple test specs Example/ByConfig/ByConfig/App/AppDelegate.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import UIKit | ||
import ByConfig | ||
import HostedTestLib | ||
|
||
#if DEBUG | ||
import TestLib | ||
#endif | ||
|
||
class ViewController: UIViewController { | ||
override func viewDidLoad() { | ||
view.backgroundColor = .purple | ||
} | ||
} | ||
|
||
@UIApplicationMain | ||
class AppDelegate: NSObject, UIApplicationDelegate { | ||
var window: UIWindow? | ||
|
||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | ||
#if DEBUG | ||
_ = TestLib() | ||
#endif | ||
_ = ByConfig() | ||
_ = HostedTestLib() | ||
window = UIWindow(frame: UIScreen.main.bounds) | ||
window?.rootViewController = UINavigationController(rootViewController: ViewController()) | ||
window?.makeKeyAndVisible() | ||
|
||
return true | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
examples/multiple test specs Example/ByConfig/ByConfig/Classes/main.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import Foundation | ||
|
||
public class ByConfig { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.