Skip to content

Commit 191e0da

Browse files
committed
Initial Commit
0 parents  commit 191e0da

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+3009
-0
lines changed

Ratatouille.xcodeproj/project.pbxproj

+488
Large diffs are not rendered by default.

Ratatouille.xcodeproj/project.xcworkspace/contents.xcworkspacedata

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
uuid = "29CBA0CC-CFE0-46E3-B280-CB87E7BC0522"
4+
type = "1"
5+
version = "2.0">
6+
</Bucket>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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>SchemeUserState</key>
6+
<dict>
7+
<key>Ratatouille.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
</dict>
14+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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>SchemeUserState</key>
6+
<dict>
7+
<key>Ratatouille.xcscheme_^#shared#^_</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
</dict>
14+
</plist>

Ratatouille/AppDelegate.swift

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
//
2+
// AppDelegate.swift
3+
// Ratatouille
4+
//
5+
// Created by Ida Krech on 30/11/2023.
6+
//
7+
8+
import Foundation
9+
import UIKit
10+
11+
class AppDelegate: NSObject, UIApplicationDelegate {
12+
13+
// let dynamicClassificationListVM = DynamicClassificationListVM()
14+
// private var hasLaunchedBefore: Bool = UserDefaults.standard.bool(forKey: "hasLaunchedBefore")
15+
// var queries: [String] = ["area", "category", "ingredient"]
16+
//
17+
// func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
18+
// print(NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).last! as String)
19+
// //UserDefaults.standard.set(false, forKey: "hasLaunchedBefore")
20+
// if hasLaunchedBefore == false {
21+
// Task {
22+
// for query in queries {
23+
// print("WHERE TF IS \(query)")
24+
// await dynamicClassificationListVM.saveDynamicClassificationList(query: query)
25+
// }
26+
// // await dynamicClassificationListVM.saveDynamicClassificationList(query: "area")
27+
// // await dynamicClassificationListVM.saveDynamicClassificationList(query: "category")
28+
// // await dynamicClassificationListVM.saveDynamicClassificationList(query: "ingredient")
29+
// UserDefaults.standard.set(true, forKey: "hasLaunchedBefore")
30+
// }
31+
// }
32+
// return true
33+
// }
34+
35+
36+
}
37+
38+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors" : [
3+
{
4+
"idiom" : "universal"
5+
}
6+
],
7+
"info" : {
8+
"author" : "xcode",
9+
"version" : 1
10+
}
11+
}
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "40.png",
5+
"idiom" : "iphone",
6+
"scale" : "2x",
7+
"size" : "20x20"
8+
},
9+
{
10+
"filename" : "60.png",
11+
"idiom" : "iphone",
12+
"scale" : "3x",
13+
"size" : "20x20"
14+
},
15+
{
16+
"filename" : "29.png",
17+
"idiom" : "iphone",
18+
"scale" : "1x",
19+
"size" : "29x29"
20+
},
21+
{
22+
"filename" : "58.png",
23+
"idiom" : "iphone",
24+
"scale" : "2x",
25+
"size" : "29x29"
26+
},
27+
{
28+
"filename" : "87.png",
29+
"idiom" : "iphone",
30+
"scale" : "3x",
31+
"size" : "29x29"
32+
},
33+
{
34+
"filename" : "80.png",
35+
"idiom" : "iphone",
36+
"scale" : "2x",
37+
"size" : "40x40"
38+
},
39+
{
40+
"filename" : "120.png",
41+
"idiom" : "iphone",
42+
"scale" : "3x",
43+
"size" : "40x40"
44+
},
45+
{
46+
"filename" : "57.png",
47+
"idiom" : "iphone",
48+
"scale" : "1x",
49+
"size" : "57x57"
50+
},
51+
{
52+
"filename" : "114.png",
53+
"idiom" : "iphone",
54+
"scale" : "2x",
55+
"size" : "57x57"
56+
},
57+
{
58+
"filename" : "120.png",
59+
"idiom" : "iphone",
60+
"scale" : "2x",
61+
"size" : "60x60"
62+
},
63+
{
64+
"filename" : "180.png",
65+
"idiom" : "iphone",
66+
"scale" : "3x",
67+
"size" : "60x60"
68+
},
69+
{
70+
"filename" : "1024.png",
71+
"idiom" : "ios-marketing",
72+
"scale" : "1x",
73+
"size" : "1024x1024"
74+
}
75+
],
76+
"info" : {
77+
"author" : "xcode",
78+
"version" : 1
79+
}
80+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "ratatouille_logo.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}
Loading

Ratatouille/CountryAdjectives.swift

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
//
2+
// CountryCode.swift
3+
// Ratatouille
4+
//
5+
//
6+
//
7+
8+
import Foundation
9+
10+
// based on areas available in TheMealDB
11+
enum CountryAdjectives: String {
12+
case american = "American"
13+
case british = "British"
14+
case canadian = "Canadian"
15+
case chinese = "Chinese"
16+
case croatian = "Croatian"
17+
case dutch = "Dutch"
18+
case egyptian = "Egyptian"
19+
case filipino = "Filipino"
20+
case french = "French"
21+
case greek = "Greek"
22+
case indian = "Indian"
23+
case irish = "Irish"
24+
case italian = "Italian"
25+
case jamaican = "Jamaican"
26+
case japanese = "Japanese"
27+
case kenyan = "Kenyan"
28+
case malaysian = "Malaysian"
29+
case mexican = "Mexican"
30+
case moroccan = "Moroccan"
31+
case polish = "Polish"
32+
case portuguese = "Portuguese"
33+
case russian = "Russian"
34+
case spanish = "Spanish"
35+
case thai = "Thai"
36+
case tunisian = "Tunisian"
37+
case turkish = "Turkish"
38+
case unknown = "Unknown"
39+
case vietnamese = "Vietnamese"
40+
41+
var countryCode: String {
42+
switch self {
43+
case .american: return "US"
44+
case .british: return "GB"
45+
case .canadian: return "CA"
46+
case .chinese: return "CN"
47+
case .croatian: return "HR"
48+
case .dutch: return "NL"
49+
case .egyptian: return "EG"
50+
case .filipino: return "PH"
51+
case .french: return "FR"
52+
case .greek: return "GR"
53+
case .indian: return "IN"
54+
case .irish: return "IE"
55+
case .italian: return "IT"
56+
case .jamaican: return "JM"
57+
case .japanese: return "JP"
58+
case .kenyan: return "KE"
59+
case .malaysian: return "MY"
60+
case .mexican: return "MX"
61+
case .moroccan: return "MA"
62+
case .polish: return "PL"
63+
case .portuguese: return "PT"
64+
case .russian: return "RU"
65+
case .spanish: return "ES"
66+
case .thai: return "TH"
67+
case .tunisian: return "TN"
68+
case .turkish: return "TR"
69+
case .unknown: return "XX"
70+
case .vietnamese: return "VN"
71+
}
72+
}
73+
}

Ratatouille/Info.plist

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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>NSAppTransportSecurity</key>
6+
<dict>
7+
<key>NSAllowsArbitraryLoads</key>
8+
<true/>
9+
</dict>
10+
</dict>
11+
</plist>

0 commit comments

Comments
 (0)