Skip to content

Commit fce55b4

Browse files
committed
[NO TICKETS] Update .gitignore file to not ignore swift files
1 parent 3882c55 commit fce55b4

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ node_modules
1717
*.ntvs*
1818
*.njsproj
1919
*.sln
20-
*.sw*
2120

2221
# Use either yarn.lock or package-lock.json
2322
# Uncomment one of them to maintain a single lockfile
+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import UIKit
2+
import Capacitor
3+
4+
@UIApplicationMain
5+
class AppDelegate: UIResponder, UIApplicationDelegate {
6+
7+
var window: UIWindow?
8+
9+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
10+
// Override point for customization after application launch.
11+
return true
12+
}
13+
14+
func applicationWillResignActive(_ application: UIApplication) {
15+
// 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.
16+
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
17+
}
18+
19+
func applicationDidEnterBackground(_ application: UIApplication) {
20+
// 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.
21+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
22+
}
23+
24+
func applicationWillEnterForeground(_ application: UIApplication) {
25+
// 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.
26+
}
27+
28+
func applicationDidBecomeActive(_ application: UIApplication) {
29+
// 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.
30+
}
31+
32+
func applicationWillTerminate(_ application: UIApplication) {
33+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
34+
}
35+
36+
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
37+
// Called when the app was launched with a url. Feel free to add additional processing here,
38+
// but if you want the App API to support tracking app url opens, make sure to keep this call
39+
return ApplicationDelegateProxy.shared.application(app, open: url, options: options)
40+
}
41+
42+
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
43+
// Called when the app was launched with an activity, including Universal Links.
44+
// Feel free to add additional processing here, but if you want the App API to support
45+
// tracking app url opens, make sure to keep this call
46+
return ApplicationDelegateProxy.shared.application(application, continue: userActivity, restorationHandler: restorationHandler)
47+
}
48+
49+
}

0 commit comments

Comments
 (0)