From c51a8a2b44e6934de9d45d74ddec4b70b00f1abb Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Fri, 29 Mar 2013 20:03:14 -0700 Subject: Build for iOS. --- tests-ios/AppDelegate.h | 15 +++++++++++ tests-ios/AppDelegate.mm | 60 ++++++++++++++++++++++++++++++++++++++++++ tests-ios/main.m | 18 +++++++++++++ tests-ios/tests-ios-Info.plist | 45 +++++++++++++++++++++++++++++++ 4 files changed, 138 insertions(+) create mode 100644 tests-ios/AppDelegate.h create mode 100644 tests-ios/AppDelegate.mm create mode 100644 tests-ios/main.m create mode 100644 tests-ios/tests-ios-Info.plist (limited to 'tests-ios') diff --git a/tests-ios/AppDelegate.h b/tests-ios/AppDelegate.h new file mode 100644 index 00000000..6bf4f082 --- /dev/null +++ b/tests-ios/AppDelegate.h @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// test ios +// +// Created by DINH Viêt Hoà on 3/29/13. +// Copyright (c) 2013 MailCore. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/tests-ios/AppDelegate.mm b/tests-ios/AppDelegate.mm new file mode 100644 index 00000000..5872d3bc --- /dev/null +++ b/tests-ios/AppDelegate.mm @@ -0,0 +1,60 @@ +// +// AppDelegate.m +// test ios +// +// Created by DINH Viêt Hoà on 3/29/13. +// Copyright (c) 2013 MailCore. All rights reserved. +// + +#import "AppDelegate.h" + +#import "test-all.h" + +@implementation AppDelegate + +- (void)dealloc +{ + [_window release]; + [super dealloc]; +} + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; + // Override point for customization after application launch. + self.window.backgroundColor = [UIColor whiteColor]; + [self.window makeKeyAndVisible]; + + testAll(); + + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/tests-ios/main.m b/tests-ios/main.m new file mode 100644 index 00000000..6eadda2f --- /dev/null +++ b/tests-ios/main.m @@ -0,0 +1,18 @@ +// +// main.m +// test ios +// +// Created by DINH Viêt Hoà on 3/29/13. +// Copyright (c) 2013 MailCore. All rights reserved. +// + +#import + +#import "AppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/tests-ios/tests-ios-Info.plist b/tests-ios/tests-ios-Info.plist new file mode 100644 index 00000000..0627bf66 --- /dev/null +++ b/tests-ios/tests-ios-Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + org.mailcore.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + -- cgit v1.2.3