diff --git a/Cartfile b/Cartfile new file mode 100644 index 0000000..ba68cee --- /dev/null +++ b/Cartfile @@ -0,0 +1 @@ +github "Alamofire/Alamofire" ~> 4.7 diff --git a/Cartfile.resolved b/Cartfile.resolved new file mode 100644 index 0000000..d8e0066 --- /dev/null +++ b/Cartfile.resolved @@ -0,0 +1 @@ +github "Alamofire/Alamofire" "4.8.0" diff --git a/Project/Targets/XcodeGen.yml b/Project/Targets/XcodeGen.yml index 99154e0..0fb9310 100644 --- a/Project/Targets/XcodeGen.yml +++ b/Project/Targets/XcodeGen.yml @@ -3,4 +3,6 @@ targets: platform: iOS type: application sources: - - XcodeGen \ No newline at end of file + - XcodeGen + dependencies: + - carthage: Alamofire \ No newline at end of file diff --git a/README.md b/README.md index 933e492..8106565 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ # XcodeGen -### Step 8 -We have now added a new Notification Service Extension tarted to the app by simply adding 9 short lines across two `.yml` files. +### Step 9 +This step we want to add Alamofire via Carthage as a dependency on the main target. -It is now a lot easier to code review the settings and what the change will bring. +With a **5 line change**, that includes adding the Cartfile, Cartfile.resolved, the change to the `.yml` & adding `import Alamofire` into the `AppDelegate.swift,` we have added a new dependency and it has been linked up correctly and the correct settings and run build phase added. --- ### Next -Please now checkout `step-9` +Please now checkout `step-10` -`git checkout tags/step-9` +`git checkout tags/step-10` --- diff --git a/XcodeGen/AppDelegate.swift b/XcodeGen/AppDelegate.swift index 7698437..1b20aaa 100644 --- a/XcodeGen/AppDelegate.swift +++ b/XcodeGen/AppDelegate.swift @@ -1,4 +1,5 @@ import UIKit +import Alamofire @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow?