diff --git a/.travis.yml b/.travis.yml index e28f6fc..df447b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,6 @@ script: -project ARPlayer.xcodeproj -scheme ARPlayer CODE_SIGNING_REQUIRED=NO - GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES - GCC_GENERATE_TEST_COVERAGE_FILES=YES xcodebuild clean test -sdk iphonesimulator @@ -16,6 +14,8 @@ script: -scheme ARPlayerTestHarness -destination 'platform=iOS Simulator,name=iPhone XS,OS=12.1' CODE_SIGNING_REQUIRED=NO + GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES + GCC_GENERATE_TEST_COVERAGE_FILES=YES after_success: - bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/ARPlayer.xcodeproj/xcshareddata/xcschemes/ARPlayerTestHarness.xcscheme b/ARPlayer.xcodeproj/xcshareddata/xcschemes/ARPlayerTestHarness.xcscheme index c17a6d8..121236a 100644 --- a/ARPlayer.xcodeproj/xcshareddata/xcschemes/ARPlayerTestHarness.xcscheme +++ b/ARPlayer.xcodeproj/xcshareddata/xcschemes/ARPlayerTestHarness.xcscheme @@ -26,6 +26,7 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + codeCoverageEnabled = "YES" shouldUseLaunchSchemeArgsEnv = "YES"> +@import UIKit; @interface AppDelegate : UIResponder diff --git a/ARPlayerTestHarness/AppDelegate.m b/ARPlayerTestHarness/AppDelegate.m index 7d9aab9..af828e4 100644 --- a/ARPlayerTestHarness/AppDelegate.m +++ b/ARPlayerTestHarness/AppDelegate.m @@ -14,38 +14,9 @@ @interface AppDelegate () @implementation AppDelegate - - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - // Override point for customization after application launch. - 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 invalidate graphics rendering callbacks. 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 active 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:. + return YES; } - @end diff --git a/ARPlayerTestHarness/ViewController.h b/ARPlayerTestHarness/ViewController.h index f7b25cc..0a60c38 100644 --- a/ARPlayerTestHarness/ViewController.h +++ b/ARPlayerTestHarness/ViewController.h @@ -6,7 +6,7 @@ // Copyright © 2019 Maxim Makhun. All rights reserved. // -#import +@import UIKit; @interface ViewController : UIViewController diff --git a/ARPlayerTestHarness/ViewController.m b/ARPlayerTestHarness/ViewController.m index 18bbe54..75885f5 100644 --- a/ARPlayerTestHarness/ViewController.m +++ b/ARPlayerTestHarness/ViewController.m @@ -16,8 +16,6 @@ @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; - // Do any additional setup after loading the view, typically from a nib. } - @end