From 2a2a0509d7f2dbf736244e8d518cefb9fcbaeb15 Mon Sep 17 00:00:00 2001 From: TheSooth Date: Thu, 4 Dec 2014 20:47:41 +0200 Subject: [PATCH 1/4] Adding project language option --- lib/liftoff/option_fetcher.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/liftoff/option_fetcher.rb b/lib/liftoff/option_fetcher.rb index e6ecd6e..b459f64 100644 --- a/lib/liftoff/option_fetcher.rb +++ b/lib/liftoff/option_fetcher.rb @@ -10,6 +10,7 @@ def fetch_options fetch_option_for(:company_identifier, 'Company identifier') fetch_option_for(:prefix, 'Prefix') fetch_option_for(:test_target_name, 'Test target name') + fetch_option_for(:project_template, 'Project language') end private From cb22635fbf8b8be963c4cc57389572da245565c1 Mon Sep 17 00:00:00 2001 From: TheSooth Date: Thu, 4 Dec 2014 20:48:44 +0200 Subject: [PATCH 2/4] updating swift AppDelegate header --- templates/AppDelegate.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/AppDelegate.swift b/templates/AppDelegate.swift index 49cc4db..9eac48f 100644 --- a/templates/AppDelegate.swift +++ b/templates/AppDelegate.swift @@ -1,6 +1,16 @@ +// +// AppDelegate.swift +// <%= project_name %> +// +// Created by <%= author %> on <%= Time.now.strftime("%-m/%-d/%y") %> +// Copyright (c) <%= Time.now.strftime('%Y') %> <%= company %>. All rights reserved. +// + + import UIKit @UIApplicationMain + class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? } From 527fd7ec2c6d18f329758fc610c62e53cdd621a8 Mon Sep 17 00:00:00 2001 From: TheSooth Date: Thu, 4 Dec 2014 21:07:19 +0200 Subject: [PATCH 3/4] fixing wrong new line --- templates/AppDelegate.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/templates/AppDelegate.swift b/templates/AppDelegate.swift index 9eac48f..1e04ff3 100644 --- a/templates/AppDelegate.swift +++ b/templates/AppDelegate.swift @@ -10,7 +10,6 @@ import UIKit @UIApplicationMain - class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? } From 1d9d83f28262b8ddd4641058ccea17adfe5aa8b7 Mon Sep 17 00:00:00 2001 From: TheSooth Date: Thu, 4 Dec 2014 21:37:32 +0200 Subject: [PATCH 4/4] removing author information from swift app delegate --- templates/AppDelegate.swift | 9 --------- 1 file changed, 9 deletions(-) diff --git a/templates/AppDelegate.swift b/templates/AppDelegate.swift index 1e04ff3..49cc4db 100644 --- a/templates/AppDelegate.swift +++ b/templates/AppDelegate.swift @@ -1,12 +1,3 @@ -// -// AppDelegate.swift -// <%= project_name %> -// -// Created by <%= author %> on <%= Time.now.strftime("%-m/%-d/%y") %> -// Copyright (c) <%= Time.now.strftime('%Y') %> <%= company %>. All rights reserved. -// - - import UIKit @UIApplicationMain