Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit ec78c57

Browse files
committed
Added necessary iOS files for clean setup
1 parent d653f47 commit ec78c57

File tree

16 files changed

+641
-0
lines changed

16 files changed

+641
-0
lines changed

ios/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ capacitor-cordova-ios-plugins
1111
# Generated Config files
1212
App/App/capacitor.config.json
1313
App/App/config.xml
14+
15+
# iOS archive files
16+
App/*.xcarchive

ios/App/App.xcodeproj/project.pbxproj

Lines changed: 410 additions & 0 deletions
Large diffs are not rendered by default.

ios/App/App.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

ios/App/App/AppDelegate.swift

Lines changed: 49 additions & 0 deletions
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+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "AppIcon-512@2x.png",
5+
"idiom" : "universal",
6+
"platform" : "ios",
7+
"size" : "1024x1024"
8+
}
9+
],
10+
"info" : {
11+
"author" : "xcode",
12+
"version" : 1
13+
}
14+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"filename" : "splash-2732x2732-2.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"filename" : "splash-2732x2732-1.png",
11+
"scale" : "2x"
12+
},
13+
{
14+
"idiom" : "universal",
15+
"filename" : "splash-2732x2732.png",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"version" : 1,
21+
"author" : "xcode"
22+
}
23+
}
40.3 KB
Loading
40.3 KB
Loading

0 commit comments

Comments
 (0)