├── OSRSUI
├── OSRSUI
│ ├── Assets.xcassets
│ │ ├── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── Preview Content
│ │ └── Preview Assets.xcassets
│ │ │ └── Contents.json
│ ├── viewModels
│ │ ├── PrayersViewModel.swift
│ │ ├── MonstersViewModel.swift
│ │ ├── ItemsViewModel.swift
│ │ └── BaseViewModel.swift
│ ├── models
│ │ ├── Prayer.swift
│ │ ├── HTTP.swift
│ │ ├── Monster.swift
│ │ ├── Icon.swift
│ │ └── Item.swift
│ ├── views
│ │ ├── prayers
│ │ │ ├── PrayerRow.swift
│ │ │ └── PrayersView.swift
│ │ ├── items
│ │ │ ├── ItemRow.swift
│ │ │ ├── ItemDetailView.swift
│ │ │ └── ItemsView.swift
│ │ ├── shared
│ │ │ └── SearchField.swift
│ │ ├── monsters
│ │ │ └── MonstersView.swift
│ │ └── home
│ │ │ └── HomeView.swift
│ ├── launch
│ │ ├── SceneDelegate.swift
│ │ └── AppDelegate.swift
│ ├── Base.lproj
│ │ └── LaunchScreen.storyboard
│ ├── services
│ │ └── APIService.swift
│ └── Info.plist
└── OSRSUI.xcodeproj
│ ├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
│ └── project.pbxproj
├── .gitignore
└── LICENSE
/OSRSUI/OSRSUI/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/Preview Content/Preview Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "author" : "xcode",
4 | "version" : 1
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/viewModels/PrayersViewModel.swift:
--------------------------------------------------------------------------------
1 | //
2 | // PrayersViewModel.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 08/04/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 | import Combine
11 |
12 | class PrayersViewModel: BaseViewModel {
13 | init() {
14 | super.init(endpoint: .prayers)
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/models/Prayer.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Prayer.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 08/04/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import SwiftUI
11 |
12 | struct Prayer: Codable, Identifiable {
13 | let id: String
14 | let name: String
15 | let icon: Icon
16 | let description: String
17 | }
18 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/viewModels/MonstersViewModel.swift:
--------------------------------------------------------------------------------
1 | //
2 | // MonstersViewModel.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 06/04/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 | import Combine
11 |
12 | class MonstersViewModel: BaseViewModel {
13 | init() {
14 | super.init(endpoint: .monsters)
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/models/HTTP.swift:
--------------------------------------------------------------------------------
1 | //
2 | // HTTP.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 06/04/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import Foundation
10 |
11 | struct ArrayResponse: Codable {
12 | struct Meta: Codable {
13 | let page: Int
14 | let max_results: Int
15 | let total: Int
16 | }
17 |
18 | let _items: [T]
19 | let _meta: Meta
20 | }
21 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/models/Monster.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Monster.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 06/04/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import SwiftUI
11 |
12 | struct Monster: Codable, Identifiable {
13 | let id: String
14 | let name: String
15 | let combat_level: Int
16 | let hitpoints: Int
17 | let size: Int
18 | let attack_speed: Int
19 | let max_hit: Int
20 | let examine: String
21 | }
22 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/models/Icon.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Icon.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 08/04/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import UIKit
11 |
12 |
13 | typealias Icon = String
14 |
15 | extension Icon {
16 | var asImage: UIImage {
17 | guard let data = Data(base64Encoded: self),
18 | let image = UIImage(data: data) else {
19 | return UIImage()
20 | }
21 | return image
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/views/prayers/PrayerRow.swift:
--------------------------------------------------------------------------------
1 | //
2 | // PrayerRow.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 08/04/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 |
11 | struct PrayerRow: View {
12 | let prayer: Prayer
13 |
14 | var body: some View {
15 | HStack {
16 | Image(uiImage: prayer.icon.asImage)
17 | VStack(alignment: .leading, spacing: 4) {
18 | Text(prayer.name).font(.headline)
19 | Text(prayer.description).font(.subheadline)
20 | }
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/views/items/ItemRow.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ItemRow.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 01/03/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 |
11 | struct ItemRow: View {
12 | let item: Item
13 |
14 | var body: some View {
15 | HStack {
16 | Image(uiImage: item.icon.asImage)
17 | VStack(alignment: .leading, spacing: 4) {
18 | Text(item.name).font(.headline)
19 | Text(item.examine).font(.subheadline)
20 | }
21 | }
22 | }
23 | }
24 |
25 | struct ItemRow_Previews: PreviewProvider {
26 | static var previews: some View {
27 | ItemRow(item: PREVIEW_ITEM)
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/views/shared/SearchField.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SearchField.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 06/04/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import SwiftUI
11 |
12 | struct SearchField: View {
13 | @Binding var searchText: String
14 |
15 | var body: some View {
16 | HStack {
17 | TextField("Search an item", text: $searchText)
18 | if !searchText.isEmpty {
19 | Button(action: {
20 | self.searchText = ""
21 | }) {
22 | Image(systemName: "xmark.circle")
23 | .font(.subheadline).foregroundColor(.red)
24 | }.buttonStyle(BorderlessButtonStyle())
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/launch/SceneDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SceneDelegate.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 20/02/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import UIKit
10 | import SwiftUI
11 |
12 | class SceneDelegate: UIResponder, UIWindowSceneDelegate {
13 | var window: UIWindow?
14 |
15 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
16 | let contentView = HomeView()
17 | if let windowScene = scene as? UIWindowScene {
18 | let window = UIWindow(windowScene: windowScene)
19 | window.rootViewController = UIHostingController(rootView: contentView)
20 | self.window = window
21 | window.makeKeyAndVisible()
22 | }
23 | }
24 |
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/views/items/ItemDetailView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ItemDetailView.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 01/03/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 |
11 | struct ItemDetailView: View {
12 | let item: Item
13 |
14 | var body: some View {
15 | ScrollView {
16 | VStack {
17 | Image(uiImage: item.icon.asImage)
18 | .resizable()
19 | .frame(width: 50, height: 50)
20 | Text(item.examine)
21 | }
22 | }
23 | .navigationBarTitle(item.name)
24 | }
25 | }
26 |
27 | struct ItemDetailView_Previews: PreviewProvider {
28 | static var previews: some View {
29 | NavigationView {
30 | ItemDetailView(item: PREVIEW_ITEM)
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/launch/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 20/02/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | @UIApplicationMain
12 | class AppDelegate: UIResponder, UIApplicationDelegate {
13 |
14 |
15 |
16 | func application(_ application: UIApplication,
17 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18 | return true
19 | }
20 |
21 | // MARK: UISceneSession Lifecycle
22 |
23 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession,
24 | options: UIScene.ConnectionOptions) -> UISceneConfiguration {
25 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
26 | }
27 | }
28 |
29 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/viewModels/ItemsViewModel.swift:
--------------------------------------------------------------------------------
1 | //
2 | // HomeViewModel.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 28/02/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import Combine
10 | import SwiftUI
11 |
12 | class ItemsViewModel: BaseViewModel- {
13 | enum Filter: String, CaseIterable {
14 | case all = "All items"
15 | case equipment = "Equipment"
16 | case weapons = "Weapons"
17 |
18 | func endpoint() -> APIService.Endpoint {
19 | switch self {
20 | case .all: return .items
21 | case .equipment: return .equipment
22 | case .weapons: return .weapons
23 | }
24 | }
25 | }
26 |
27 | var filter = Filter.all {
28 | didSet {
29 | endpoint = filter.endpoint()
30 | }
31 | }
32 |
33 | init() {
34 | super.init(endpoint: filter.endpoint())
35 | }
36 | }
37 |
38 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/views/prayers/PrayersView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // PrayersView.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 08/04/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 |
11 | struct PrayersView: View {
12 | @ObservedObject private var viewModel = PrayersViewModel()
13 |
14 | var body: some View {
15 | NavigationView {
16 | List {
17 | SearchField(searchText: $viewModel.searchText)
18 | ForEach(viewModel.objects) { prayer in
19 | PrayerRow(prayer: prayer)
20 | }
21 | if !viewModel.objects.isEmpty && viewModel.searchText.isEmpty && viewModel.canLoadMorePages {
22 | Text("Loading next page...")
23 | .onAppear {
24 | self.viewModel.fetchNextPage()
25 | }
26 | }
27 | }
28 | .navigationBarTitle(Text("Prayers"))
29 | }
30 | .onAppear {
31 | self.viewModel.fetch()
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/views/monsters/MonstersView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // MonstersView.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 06/04/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import SwiftUI
11 |
12 | struct MonstersView: View {
13 | @ObservedObject private var viewModel = MonstersViewModel()
14 |
15 | var body: some View {
16 | NavigationView {
17 | List {
18 | SearchField(searchText: $viewModel.searchText)
19 | ForEach(viewModel.objects) { monster in
20 | Text(monster.name)
21 | }
22 | if !viewModel.objects.isEmpty && viewModel.searchText.isEmpty && viewModel.canLoadMorePages {
23 | Text("Loading next page...")
24 | .onAppear {
25 | self.viewModel.fetchNextPage()
26 | }
27 | }
28 | }
29 | .navigationBarTitle(Text("Monsters"))
30 | }
31 | .onAppear {
32 | self.viewModel.fetch()
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/models/Item.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Item.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 28/02/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import SwiftUI
11 |
12 | struct Item: Codable, Identifiable {
13 | let id: String
14 | let name: String
15 | let icon: Icon
16 | let examine: String
17 |
18 | let tradeable: Bool
19 | let stackable: Bool
20 | let cost: Int
21 |
22 | let wiki_url: URL
23 | }
24 |
25 | let PREVIEW_ITEM = Item(id: "0",
26 | name: "preview item",
27 | icon: "iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAABvUlEQVR4Xu2Xv26DMBDG4QEyZECKIkVCKIoyVR26dOrQpUOHDn3/V3F7nL7689kGAo6z9JNuiH1wP+6PIU3zr2Jq3bRVkQ/Y7feBvfcn93o8upfDwT11XQKwOGQMwfYx9O7rcnaf52GEezuFgNdfn4JQ7RjAQojZLAAMcPJbAOH73PcloBTIQiEAG8MB7Pt6MQ+wSW1QAs6Kh1A/NgtnHyKMcZMUCP3AIBw0XcqmgU9qb4W0JwTIwuRAYHETF4FSIMkORjn1xCnjayy8lN/vLVY7TglfvBRGTJpZrpXM+my1f6DhPRdJs8M3nAPibGDseY9hVgHxzbh3chC22dkPQ8EnufddpBgI69Lk3B8hnPrwOsPEw7FYqUzoOsqBUtps8XUASh0bYbxZxUCcJZzCNnjOBGgDDBRD8d4tQAVgRAqEs2jusLOGEhaCgTQTgApLp/s5A0RBGMg3shx2YZb0fZUz9issD4VpsR4PkJ+uYbczJQr94rW7KT3yDJcegLtqeuRlAFa+0bdoeuTxPV2538Ixt1D86Vutr8IR16CSndzfoSpQLIDh09dmscL5lJICMUClw3JKD8tGXiVgfgACr1tEhnw7UAAAAABJRU5ErkJggg==",
28 | examine: "A sample item",
29 | tradeable: true,
30 | stackable: true,
31 | cost: 1000,
32 | wiki_url: URL(string: "https://oldschool.runescape.wiki/w/Abyssal_whip")!)
33 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/views/home/HomeView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // HomeView.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 28/02/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 |
11 | struct HomeView: View {
12 | enum Tabs: Int, CaseIterable {
13 | case items, prayers, monsters, map, quests
14 |
15 | func title() -> String {
16 | switch self {
17 | case .items: return "Items"
18 | case .prayers: return "Prayers"
19 | case .monsters: return "Monsters"
20 | case .map: return "Map"
21 | case .quests: return "Quests"
22 | }
23 | }
24 |
25 | func view() -> AnyView {
26 | switch self {
27 | case .items:
28 | return AnyView(ItemsView())
29 | case .monsters:
30 | return AnyView(MonstersView())
31 | case .prayers:
32 | return AnyView(PrayersView())
33 | default:
34 | return AnyView(Text("Work in progress"))
35 | }
36 | }
37 | }
38 |
39 | @State private var selectedTab = Tabs.items
40 |
41 | var body: some View {
42 | TabView(selection: $selectedTab) {
43 | ForEach(Tabs.allCases, id: \.self) { tab in
44 | tab.view()
45 | .tabItem{ Text(tab.title()) }
46 | .tag(tab)
47 | }
48 | }
49 | }
50 | }
51 |
52 | struct HomeView_Previews: PreviewProvider {
53 | static var previews: some View {
54 | HomeView()
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/services/APIService.swift:
--------------------------------------------------------------------------------
1 | //
2 | // APIService.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 28/02/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import Foundation
10 | import Combine
11 |
12 | struct APIService {
13 | static let BASE_URL = URL(string: "https://api.osrsbox.com")!
14 |
15 | private static let decoder = JSONDecoder()
16 |
17 | enum Endpoint: String {
18 | case items, equipment, weapons, monsters, prayers
19 | }
20 |
21 | enum APIError: Error {
22 | case unknown
23 | case message(reason: String), parseError(reason: String), networkError(reason: String)
24 | }
25 |
26 | static func fetch(endpoint: Endpoint,
27 | params: [String: String]? = nil) -> AnyPublisher {
28 | var component = URLComponents(url: BASE_URL.appendingPathComponent(endpoint.rawValue),
29 | resolvingAgainstBaseURL: false)!
30 | if let params = params {
31 | var queryItems: [URLQueryItem] = []
32 | for (_, value) in params.enumerated() {
33 | queryItems.append(URLQueryItem(name: value.key, value: value.value))
34 | }
35 | component.queryItems = queryItems
36 | }
37 | let request = URLRequest(url: component.url!)
38 | return URLSession.shared.dataTaskPublisher(for: request)
39 | .tryMap{ data, response in
40 | guard let httpResponse = response as? HTTPURLResponse else {
41 | throw APIError.unknown
42 | }
43 | if (httpResponse.statusCode == 404) {
44 | throw APIError.message(reason: "Resource not found");
45 | }
46 | return data
47 | }
48 | .decode(type: T.self, decoder: APIService.decoder)
49 | .mapError{ APIError.parseError(reason: $0.localizedDescription) }
50 | .eraseToAnyPublisher()
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "scale" : "2x",
6 | "size" : "20x20"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "scale" : "3x",
11 | "size" : "20x20"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "scale" : "2x",
16 | "size" : "29x29"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "scale" : "3x",
21 | "size" : "29x29"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "scale" : "2x",
26 | "size" : "40x40"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "scale" : "3x",
31 | "size" : "40x40"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "scale" : "2x",
36 | "size" : "60x60"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "scale" : "3x",
41 | "size" : "60x60"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "scale" : "1x",
46 | "size" : "20x20"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "scale" : "2x",
51 | "size" : "20x20"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "scale" : "1x",
56 | "size" : "29x29"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "scale" : "2x",
61 | "size" : "29x29"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "scale" : "1x",
66 | "size" : "40x40"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "scale" : "2x",
71 | "size" : "40x40"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "scale" : "1x",
76 | "size" : "76x76"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "scale" : "2x",
81 | "size" : "76x76"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "scale" : "2x",
86 | "size" : "83.5x83.5"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "scale" : "1x",
91 | "size" : "1024x1024"
92 | }
93 | ],
94 | "info" : {
95 | "author" : "xcode",
96 | "version" : 1
97 | }
98 | }
99 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE)
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UIApplicationSceneManifest
24 |
25 | UIApplicationSupportsMultipleScenes
26 |
27 | UISceneConfigurations
28 |
29 | UIWindowSceneSessionRoleApplication
30 |
31 |
32 | UISceneConfigurationName
33 | Default Configuration
34 | UISceneDelegateClassName
35 | $(PRODUCT_MODULE_NAME).SceneDelegate
36 |
37 |
38 |
39 |
40 | UILaunchStoryboardName
41 | LaunchScreen
42 | UIRequiredDeviceCapabilities
43 |
44 | armv7
45 |
46 | UISupportedInterfaceOrientations
47 |
48 | UIInterfaceOrientationPortrait
49 | UIInterfaceOrientationLandscapeLeft
50 | UIInterfaceOrientationLandscapeRight
51 |
52 | UISupportedInterfaceOrientations~ipad
53 |
54 | UIInterfaceOrientationPortrait
55 | UIInterfaceOrientationPortraitUpsideDown
56 | UIInterfaceOrientationLandscapeLeft
57 | UIInterfaceOrientationLandscapeRight
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/views/items/ItemsView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // HomeView.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 28/02/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 |
11 | struct ItemsView: View {
12 |
13 | @ObservedObject private var viewModel = ItemsViewModel()
14 | @State private var showFilterSheet = false
15 |
16 | private var filterButton: some View {
17 | Button(action: {
18 | self.showFilterSheet.toggle()
19 | }) {
20 | Image(systemName: "line.horizontal.3.decrease.circle")
21 | .font(.title)
22 | }
23 | }
24 |
25 | private var filterSheet: ActionSheet {
26 | var buttons: [ActionSheet.Button] = []
27 | for filter in ItemsViewModel.Filter.allCases {
28 | buttons.append(.default(Text(filter.rawValue),
29 | action: {
30 | self.viewModel.filter = filter
31 | }))
32 | }
33 | buttons.append(.cancel())
34 | return ActionSheet(title: Text("Filter items"), buttons: buttons)
35 | }
36 |
37 | var body: some View {
38 | NavigationView {
39 | List {
40 | SearchField(searchText: $viewModel.searchText)
41 | ForEach(viewModel.objects) { item in
42 | NavigationLink(destination: ItemDetailView(item: item)) {
43 | ItemRow(item: item)
44 | }
45 | }
46 | if !viewModel.objects.isEmpty && viewModel.searchText.isEmpty && viewModel.canLoadMorePages {
47 | Text("Loading next page...")
48 | .onAppear {
49 | self.viewModel.fetchNextPage()
50 | }
51 | }
52 | }
53 | .navigationBarItems(trailing: filterButton
54 | .actionSheet(isPresented: $showFilterSheet, content: { filterSheet }))
55 | .navigationBarTitle(viewModel.filter.rawValue)
56 | }
57 | .onAppear {
58 | self.viewModel.fetch()
59 | }
60 | }
61 | }
62 |
63 | struct ItemsView_Previews: PreviewProvider {
64 | static var previews: some View {
65 | ItemsView()
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | #
3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4 |
5 | ## User settings
6 | xcuserdata/
7 |
8 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
9 | *.xcscmblueprint
10 | *.xccheckout
11 |
12 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
13 | build/
14 | DerivedData/
15 | *.moved-aside
16 | *.pbxuser
17 | !default.pbxuser
18 | *.mode1v3
19 | !default.mode1v3
20 | *.mode2v3
21 | !default.mode2v3
22 | *.perspectivev3
23 | !default.perspectivev3
24 |
25 | ## Obj-C/Swift specific
26 | *.hmap
27 |
28 | ## App packaging
29 | *.ipa
30 | *.dSYM.zip
31 | *.dSYM
32 |
33 | ## Playgrounds
34 | timeline.xctimeline
35 | playground.xcworkspace
36 |
37 | # Swift Package Manager
38 | #
39 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
40 | # Packages/
41 | # Package.pins
42 | # Package.resolved
43 | # *.xcodeproj
44 | #
45 | # Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
46 | # hence it is not needed unless you have added a package configuration file to your project
47 | # .swiftpm
48 |
49 | .build/
50 |
51 | # CocoaPods
52 | #
53 | # We recommend against adding the Pods directory to your .gitignore. However
54 | # you should judge for yourself, the pros and cons are mentioned at:
55 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
56 | #
57 | # Pods/
58 | #
59 | # Add this line if you want to avoid checking in source code from the Xcode workspace
60 | # *.xcworkspace
61 |
62 | # Carthage
63 | #
64 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
65 | # Carthage/Checkouts
66 |
67 | Carthage/Build/
68 |
69 | # Accio dependency management
70 | Dependencies/
71 | .accio/
72 |
73 | # fastlane
74 | #
75 | # It is recommended to not store the screenshots in the git repo.
76 | # Instead, use fastlane to re-generate the screenshots whenever they are needed.
77 | # For more information about the recommended setup visit:
78 | # https://docs.fastlane.tools/best-practices/source-control/#source-control
79 |
80 | fastlane/report.xml
81 | fastlane/Preview.html
82 | fastlane/screenshots/**/*.png
83 | fastlane/test_output
84 |
85 | # Code Injection
86 | #
87 | # After new code Injection tools there's a generated folder /iOSInjectionProject
88 | # https://github.com/johnno1962/injectionforxcode
89 |
90 | iOSInjectionProject/
91 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI/viewModels/BaseViewModel.swift:
--------------------------------------------------------------------------------
1 | //
2 | // BaseViewModel.swift
3 | // OSRSUI
4 | //
5 | // Created by Thomas Ricouard on 06/04/2020.
6 | // Copyright © 2020 Thomas Ricouard. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 | import Combine
11 |
12 | class BaseViewModel: ObservableObject {
13 | @Published var objects: [T] = []
14 | @Published var searchText = ""
15 |
16 | var endpoint: APIService.Endpoint {
17 | didSet {
18 | page = 1
19 | objects = []
20 | fetch()
21 | }
22 | }
23 |
24 | var page = 1
25 |
26 | var canLoadMorePages: Bool {
27 | return objects.count < totalResults
28 | }
29 |
30 | private var currentMeta = ArrayResponse.Meta(page: 0, max_results: 0, total: 0) {
31 | didSet {
32 | page = currentMeta.page
33 | totalResults = currentMeta.total
34 | }
35 | }
36 |
37 | private var currentObjects: [T] = [] {
38 | didSet {
39 | if page == 1 {
40 | objects = currentObjects
41 | } else {
42 | objects.append(contentsOf: currentObjects)
43 | }
44 | }
45 | }
46 |
47 | private var searchParam: [String: String]? {
48 | didSet {
49 | page = 1
50 | objects = []
51 | fetch()
52 | }
53 | }
54 |
55 | private var apiPublisher: AnyPublisher, Never>?
56 | private var searchCancellable: AnyCancellable?
57 | private var apiCancellable: AnyCancellable? {
58 | willSet {
59 | apiCancellable?.cancel()
60 | }
61 | }
62 |
63 | private var totalResults = 26
64 |
65 | init(endpoint: APIService.Endpoint) {
66 | self.endpoint = endpoint
67 |
68 | searchCancellable = _searchText
69 | .projectedValue
70 | .debounce(for: .milliseconds(500), scheduler: DispatchQueue.main)
71 | .removeDuplicates()
72 | .sink { [weak self] string in
73 | if string.isEmpty {
74 | self?.searchParam = nil
75 | } else {
76 | self?.searchParam = ["where": "{\"name\":\"\(string)\"}"]
77 | }
78 | }
79 | }
80 |
81 | func fetchNextPage() {
82 | guard canLoadMorePages else {
83 | return
84 | }
85 | page += 1
86 | fetch()
87 | }
88 |
89 | func fetch() {
90 | var params: [String: String] = ["page": String(page)]
91 | if let searchParam = searchParam {
92 | params = params.merging(searchParam) { (current, _) in current }
93 | }
94 | apiPublisher = APIService.fetch(endpoint: endpoint,
95 | params: params)
96 | .replaceError(with: ArrayResponse(_items: [], _meta: ArrayResponse.Meta(page: 0,
97 | max_results: 0,
98 | total: 0)))
99 | .eraseToAnyPublisher()
100 | apiCancellable = apiPublisher?
101 | .receive(on: DispatchQueue.main)
102 | .sink(receiveValue: { [weak self] response in
103 | self?.currentObjects = response._items
104 | self?.currentMeta = response._meta
105 | })
106 | }
107 | }
108 |
109 |
110 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/OSRSUI/OSRSUI.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 695EF66C23FE86D600E106F0 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 695EF66B23FE86D600E106F0 /* AppDelegate.swift */; };
11 | 695EF66E23FE86D600E106F0 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 695EF66D23FE86D600E106F0 /* SceneDelegate.swift */; };
12 | 695EF67223FE86D800E106F0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 695EF67123FE86D800E106F0 /* Assets.xcassets */; };
13 | 695EF67523FE86D800E106F0 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 695EF67423FE86D800E106F0 /* Preview Assets.xcassets */; };
14 | 695EF67823FE86D800E106F0 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 695EF67623FE86D800E106F0 /* LaunchScreen.storyboard */; };
15 | 69676C27240951A9008639EC /* ItemsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69676C26240951A9008639EC /* ItemsView.swift */; };
16 | 69676C29240951E5008639EC /* ItemsViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69676C28240951E5008639EC /* ItemsViewModel.swift */; };
17 | 69676C2B24095239008639EC /* Item.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69676C2A24095239008639EC /* Item.swift */; };
18 | 69676C2E2409692A008639EC /* HomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69676C2D2409692A008639EC /* HomeView.swift */; };
19 | 69676C30240BBDD1008639EC /* ItemDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69676C2F240BBDD1008639EC /* ItemDetailView.swift */; };
20 | 69676C33240BBF81008639EC /* ItemRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69676C32240BBF81008639EC /* ItemRow.swift */; };
21 | 69A571FB243B1E5D00895C25 /* Monster.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69A571FA243B1E5D00895C25 /* Monster.swift */; };
22 | 69A571FD243B1F3200895C25 /* MonstersView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69A571FC243B1F3200895C25 /* MonstersView.swift */; };
23 | 69A571FF243B1F3F00895C25 /* MonstersViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69A571FE243B1F3F00895C25 /* MonstersViewModel.swift */; };
24 | 69A57201243B1FC200895C25 /* HTTP.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69A57200243B1FC200895C25 /* HTTP.swift */; };
25 | 69A57208243B222600895C25 /* SearchField.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69A57207243B222600895C25 /* SearchField.swift */; };
26 | 69A5720B243B23DA00895C25 /* BaseViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69A5720A243B23DA00895C25 /* BaseViewModel.swift */; };
27 | 69AF8C3A243DBAC2001DD9CB /* Prayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69AF8C39243DBAC2001DD9CB /* Prayer.swift */; };
28 | 69AF8C3C243DBB11001DD9CB /* Icon.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69AF8C3B243DBB11001DD9CB /* Icon.swift */; };
29 | 69AF8C3F243DBBCB001DD9CB /* PrayersView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69AF8C3E243DBBCB001DD9CB /* PrayersView.swift */; };
30 | 69AF8C41243DBBDD001DD9CB /* PrayersViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69AF8C40243DBBDD001DD9CB /* PrayersViewModel.swift */; };
31 | 69AF8C43243DBC59001DD9CB /* PrayerRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69AF8C42243DBC59001DD9CB /* PrayerRow.swift */; };
32 | 69DA403B24094D4B00A3D357 /* APIService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 69DA403A24094D4B00A3D357 /* APIService.swift */; };
33 | /* End PBXBuildFile section */
34 |
35 | /* Begin PBXFileReference section */
36 | 695EF66823FE86D600E106F0 /* OSRSUI.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OSRSUI.app; sourceTree = BUILT_PRODUCTS_DIR; };
37 | 695EF66B23FE86D600E106F0 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
38 | 695EF66D23FE86D600E106F0 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; };
39 | 695EF67123FE86D800E106F0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
40 | 695EF67423FE86D800E106F0 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; };
41 | 695EF67723FE86D800E106F0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
42 | 695EF67923FE86D800E106F0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
43 | 69676C26240951A9008639EC /* ItemsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ItemsView.swift; sourceTree = ""; };
44 | 69676C28240951E5008639EC /* ItemsViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ItemsViewModel.swift; sourceTree = ""; };
45 | 69676C2A24095239008639EC /* Item.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Item.swift; sourceTree = ""; };
46 | 69676C2D2409692A008639EC /* HomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeView.swift; sourceTree = ""; };
47 | 69676C2F240BBDD1008639EC /* ItemDetailView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ItemDetailView.swift; sourceTree = ""; };
48 | 69676C32240BBF81008639EC /* ItemRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ItemRow.swift; sourceTree = ""; };
49 | 69A571FA243B1E5D00895C25 /* Monster.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Monster.swift; sourceTree = ""; };
50 | 69A571FC243B1F3200895C25 /* MonstersView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MonstersView.swift; sourceTree = ""; };
51 | 69A571FE243B1F3F00895C25 /* MonstersViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MonstersViewModel.swift; sourceTree = ""; };
52 | 69A57200243B1FC200895C25 /* HTTP.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HTTP.swift; sourceTree = ""; };
53 | 69A57207243B222600895C25 /* SearchField.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchField.swift; sourceTree = ""; };
54 | 69A5720A243B23DA00895C25 /* BaseViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseViewModel.swift; sourceTree = ""; };
55 | 69AF8C39243DBAC2001DD9CB /* Prayer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Prayer.swift; sourceTree = ""; };
56 | 69AF8C3B243DBB11001DD9CB /* Icon.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Icon.swift; sourceTree = ""; };
57 | 69AF8C3E243DBBCB001DD9CB /* PrayersView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrayersView.swift; sourceTree = ""; };
58 | 69AF8C40243DBBDD001DD9CB /* PrayersViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrayersViewModel.swift; sourceTree = ""; };
59 | 69AF8C42243DBC59001DD9CB /* PrayerRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrayerRow.swift; sourceTree = ""; };
60 | 69DA403A24094D4B00A3D357 /* APIService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = APIService.swift; sourceTree = ""; };
61 | /* End PBXFileReference section */
62 |
63 | /* Begin PBXFrameworksBuildPhase section */
64 | 695EF66523FE86D600E106F0 /* Frameworks */ = {
65 | isa = PBXFrameworksBuildPhase;
66 | buildActionMask = 2147483647;
67 | files = (
68 | );
69 | runOnlyForDeploymentPostprocessing = 0;
70 | };
71 | /* End PBXFrameworksBuildPhase section */
72 |
73 | /* Begin PBXGroup section */
74 | 695EF65F23FE86D600E106F0 = {
75 | isa = PBXGroup;
76 | children = (
77 | 695EF66A23FE86D600E106F0 /* OSRSUI */,
78 | 695EF66923FE86D600E106F0 /* Products */,
79 | );
80 | sourceTree = "";
81 | };
82 | 695EF66923FE86D600E106F0 /* Products */ = {
83 | isa = PBXGroup;
84 | children = (
85 | 695EF66823FE86D600E106F0 /* OSRSUI.app */,
86 | );
87 | name = Products;
88 | sourceTree = "";
89 | };
90 | 695EF66A23FE86D600E106F0 /* OSRSUI */ = {
91 | isa = PBXGroup;
92 | children = (
93 | 69DA403724094CBE00A3D357 /* launch */,
94 | 69DA403824094CC500A3D357 /* views */,
95 | 69DA403924094D3C00A3D357 /* services */,
96 | 69A57209243B23C600895C25 /* viewModels */,
97 | 69676C2424094E05008639EC /* models */,
98 | 695EF67123FE86D800E106F0 /* Assets.xcassets */,
99 | 695EF67623FE86D800E106F0 /* LaunchScreen.storyboard */,
100 | 695EF67923FE86D800E106F0 /* Info.plist */,
101 | 695EF67323FE86D800E106F0 /* Preview Content */,
102 | );
103 | path = OSRSUI;
104 | sourceTree = "";
105 | };
106 | 695EF67323FE86D800E106F0 /* Preview Content */ = {
107 | isa = PBXGroup;
108 | children = (
109 | 695EF67423FE86D800E106F0 /* Preview Assets.xcassets */,
110 | );
111 | path = "Preview Content";
112 | sourceTree = "";
113 | };
114 | 69676C2424094E05008639EC /* models */ = {
115 | isa = PBXGroup;
116 | children = (
117 | 69676C2A24095239008639EC /* Item.swift */,
118 | 69A571FA243B1E5D00895C25 /* Monster.swift */,
119 | 69AF8C39243DBAC2001DD9CB /* Prayer.swift */,
120 | 69AF8C3B243DBB11001DD9CB /* Icon.swift */,
121 | 69A57200243B1FC200895C25 /* HTTP.swift */,
122 | );
123 | path = models;
124 | sourceTree = "";
125 | };
126 | 69676C2524095155008639EC /* home */ = {
127 | isa = PBXGroup;
128 | children = (
129 | 69676C2D2409692A008639EC /* HomeView.swift */,
130 | );
131 | path = home;
132 | sourceTree = "";
133 | };
134 | 69676C2C2409640B008639EC /* items */ = {
135 | isa = PBXGroup;
136 | children = (
137 | 69676C26240951A9008639EC /* ItemsView.swift */,
138 | 69676C32240BBF81008639EC /* ItemRow.swift */,
139 | 69676C2F240BBDD1008639EC /* ItemDetailView.swift */,
140 | );
141 | path = items;
142 | sourceTree = "";
143 | };
144 | 69A571F9243B1E4F00895C25 /* monsters */ = {
145 | isa = PBXGroup;
146 | children = (
147 | 69A571FC243B1F3200895C25 /* MonstersView.swift */,
148 | );
149 | path = monsters;
150 | sourceTree = "";
151 | };
152 | 69A57206243B221900895C25 /* shared */ = {
153 | isa = PBXGroup;
154 | children = (
155 | 69A57207243B222600895C25 /* SearchField.swift */,
156 | );
157 | path = shared;
158 | sourceTree = "";
159 | };
160 | 69A57209243B23C600895C25 /* viewModels */ = {
161 | isa = PBXGroup;
162 | children = (
163 | 69A5720A243B23DA00895C25 /* BaseViewModel.swift */,
164 | 69A571FE243B1F3F00895C25 /* MonstersViewModel.swift */,
165 | 69676C28240951E5008639EC /* ItemsViewModel.swift */,
166 | 69AF8C40243DBBDD001DD9CB /* PrayersViewModel.swift */,
167 | );
168 | path = viewModels;
169 | sourceTree = "";
170 | };
171 | 69AF8C3D243DBBB3001DD9CB /* prayers */ = {
172 | isa = PBXGroup;
173 | children = (
174 | 69AF8C3E243DBBCB001DD9CB /* PrayersView.swift */,
175 | 69AF8C42243DBC59001DD9CB /* PrayerRow.swift */,
176 | );
177 | path = prayers;
178 | sourceTree = "";
179 | };
180 | 69DA403724094CBE00A3D357 /* launch */ = {
181 | isa = PBXGroup;
182 | children = (
183 | 695EF66B23FE86D600E106F0 /* AppDelegate.swift */,
184 | 695EF66D23FE86D600E106F0 /* SceneDelegate.swift */,
185 | );
186 | path = launch;
187 | sourceTree = "";
188 | };
189 | 69DA403824094CC500A3D357 /* views */ = {
190 | isa = PBXGroup;
191 | children = (
192 | 69A57206243B221900895C25 /* shared */,
193 | 69A571F9243B1E4F00895C25 /* monsters */,
194 | 69676C2C2409640B008639EC /* items */,
195 | 69AF8C3D243DBBB3001DD9CB /* prayers */,
196 | 69676C2524095155008639EC /* home */,
197 | );
198 | path = views;
199 | sourceTree = "";
200 | };
201 | 69DA403924094D3C00A3D357 /* services */ = {
202 | isa = PBXGroup;
203 | children = (
204 | 69DA403A24094D4B00A3D357 /* APIService.swift */,
205 | );
206 | path = services;
207 | sourceTree = "";
208 | };
209 | /* End PBXGroup section */
210 |
211 | /* Begin PBXNativeTarget section */
212 | 695EF66723FE86D600E106F0 /* OSRSUI */ = {
213 | isa = PBXNativeTarget;
214 | buildConfigurationList = 695EF67C23FE86D800E106F0 /* Build configuration list for PBXNativeTarget "OSRSUI" */;
215 | buildPhases = (
216 | 695EF66423FE86D600E106F0 /* Sources */,
217 | 695EF66523FE86D600E106F0 /* Frameworks */,
218 | 695EF66623FE86D600E106F0 /* Resources */,
219 | );
220 | buildRules = (
221 | );
222 | dependencies = (
223 | );
224 | name = OSRSUI;
225 | productName = OSRSUI;
226 | productReference = 695EF66823FE86D600E106F0 /* OSRSUI.app */;
227 | productType = "com.apple.product-type.application";
228 | };
229 | /* End PBXNativeTarget section */
230 |
231 | /* Begin PBXProject section */
232 | 695EF66023FE86D600E106F0 /* Project object */ = {
233 | isa = PBXProject;
234 | attributes = {
235 | LastSwiftUpdateCheck = 1140;
236 | LastUpgradeCheck = 1140;
237 | ORGANIZATIONNAME = "Thomas Ricouard";
238 | TargetAttributes = {
239 | 695EF66723FE86D600E106F0 = {
240 | CreatedOnToolsVersion = 11.4;
241 | };
242 | };
243 | };
244 | buildConfigurationList = 695EF66323FE86D600E106F0 /* Build configuration list for PBXProject "OSRSUI" */;
245 | compatibilityVersion = "Xcode 9.3";
246 | developmentRegion = en;
247 | hasScannedForEncodings = 0;
248 | knownRegions = (
249 | en,
250 | Base,
251 | );
252 | mainGroup = 695EF65F23FE86D600E106F0;
253 | productRefGroup = 695EF66923FE86D600E106F0 /* Products */;
254 | projectDirPath = "";
255 | projectRoot = "";
256 | targets = (
257 | 695EF66723FE86D600E106F0 /* OSRSUI */,
258 | );
259 | };
260 | /* End PBXProject section */
261 |
262 | /* Begin PBXResourcesBuildPhase section */
263 | 695EF66623FE86D600E106F0 /* Resources */ = {
264 | isa = PBXResourcesBuildPhase;
265 | buildActionMask = 2147483647;
266 | files = (
267 | 695EF67823FE86D800E106F0 /* LaunchScreen.storyboard in Resources */,
268 | 695EF67523FE86D800E106F0 /* Preview Assets.xcassets in Resources */,
269 | 695EF67223FE86D800E106F0 /* Assets.xcassets in Resources */,
270 | );
271 | runOnlyForDeploymentPostprocessing = 0;
272 | };
273 | /* End PBXResourcesBuildPhase section */
274 |
275 | /* Begin PBXSourcesBuildPhase section */
276 | 695EF66423FE86D600E106F0 /* Sources */ = {
277 | isa = PBXSourcesBuildPhase;
278 | buildActionMask = 2147483647;
279 | files = (
280 | 69A571FB243B1E5D00895C25 /* Monster.swift in Sources */,
281 | 69AF8C3C243DBB11001DD9CB /* Icon.swift in Sources */,
282 | 69A571FF243B1F3F00895C25 /* MonstersViewModel.swift in Sources */,
283 | 69676C33240BBF81008639EC /* ItemRow.swift in Sources */,
284 | 695EF66C23FE86D600E106F0 /* AppDelegate.swift in Sources */,
285 | 69A57208243B222600895C25 /* SearchField.swift in Sources */,
286 | 69676C2E2409692A008639EC /* HomeView.swift in Sources */,
287 | 69A571FD243B1F3200895C25 /* MonstersView.swift in Sources */,
288 | 69676C27240951A9008639EC /* ItemsView.swift in Sources */,
289 | 69AF8C43243DBC59001DD9CB /* PrayerRow.swift in Sources */,
290 | 69A57201243B1FC200895C25 /* HTTP.swift in Sources */,
291 | 695EF66E23FE86D600E106F0 /* SceneDelegate.swift in Sources */,
292 | 69AF8C3A243DBAC2001DD9CB /* Prayer.swift in Sources */,
293 | 69676C30240BBDD1008639EC /* ItemDetailView.swift in Sources */,
294 | 69A5720B243B23DA00895C25 /* BaseViewModel.swift in Sources */,
295 | 69676C29240951E5008639EC /* ItemsViewModel.swift in Sources */,
296 | 69AF8C41243DBBDD001DD9CB /* PrayersViewModel.swift in Sources */,
297 | 69676C2B24095239008639EC /* Item.swift in Sources */,
298 | 69DA403B24094D4B00A3D357 /* APIService.swift in Sources */,
299 | 69AF8C3F243DBBCB001DD9CB /* PrayersView.swift in Sources */,
300 | );
301 | runOnlyForDeploymentPostprocessing = 0;
302 | };
303 | /* End PBXSourcesBuildPhase section */
304 |
305 | /* Begin PBXVariantGroup section */
306 | 695EF67623FE86D800E106F0 /* LaunchScreen.storyboard */ = {
307 | isa = PBXVariantGroup;
308 | children = (
309 | 695EF67723FE86D800E106F0 /* Base */,
310 | );
311 | name = LaunchScreen.storyboard;
312 | sourceTree = "";
313 | };
314 | /* End PBXVariantGroup section */
315 |
316 | /* Begin XCBuildConfiguration section */
317 | 695EF67A23FE86D800E106F0 /* Debug */ = {
318 | isa = XCBuildConfiguration;
319 | buildSettings = {
320 | ALWAYS_SEARCH_USER_PATHS = NO;
321 | CLANG_ANALYZER_NONNULL = YES;
322 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
323 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
324 | CLANG_CXX_LIBRARY = "libc++";
325 | CLANG_ENABLE_MODULES = YES;
326 | CLANG_ENABLE_OBJC_ARC = YES;
327 | CLANG_ENABLE_OBJC_WEAK = YES;
328 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
329 | CLANG_WARN_BOOL_CONVERSION = YES;
330 | CLANG_WARN_COMMA = YES;
331 | CLANG_WARN_CONSTANT_CONVERSION = YES;
332 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
333 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
334 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
335 | CLANG_WARN_EMPTY_BODY = YES;
336 | CLANG_WARN_ENUM_CONVERSION = YES;
337 | CLANG_WARN_INFINITE_RECURSION = YES;
338 | CLANG_WARN_INT_CONVERSION = YES;
339 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
340 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
341 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
342 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
343 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
344 | CLANG_WARN_STRICT_PROTOTYPES = YES;
345 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
346 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
347 | CLANG_WARN_UNREACHABLE_CODE = YES;
348 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
349 | COPY_PHASE_STRIP = NO;
350 | DEBUG_INFORMATION_FORMAT = dwarf;
351 | ENABLE_STRICT_OBJC_MSGSEND = YES;
352 | ENABLE_TESTABILITY = YES;
353 | GCC_C_LANGUAGE_STANDARD = gnu11;
354 | GCC_DYNAMIC_NO_PIC = NO;
355 | GCC_NO_COMMON_BLOCKS = YES;
356 | GCC_OPTIMIZATION_LEVEL = 0;
357 | GCC_PREPROCESSOR_DEFINITIONS = (
358 | "DEBUG=1",
359 | "$(inherited)",
360 | );
361 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
362 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
363 | GCC_WARN_UNDECLARED_SELECTOR = YES;
364 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
365 | GCC_WARN_UNUSED_FUNCTION = YES;
366 | GCC_WARN_UNUSED_VARIABLE = YES;
367 | IPHONEOS_DEPLOYMENT_TARGET = 13.4;
368 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
369 | MTL_FAST_MATH = YES;
370 | ONLY_ACTIVE_ARCH = YES;
371 | SDKROOT = iphoneos;
372 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
373 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
374 | };
375 | name = Debug;
376 | };
377 | 695EF67B23FE86D800E106F0 /* Release */ = {
378 | isa = XCBuildConfiguration;
379 | buildSettings = {
380 | ALWAYS_SEARCH_USER_PATHS = NO;
381 | CLANG_ANALYZER_NONNULL = YES;
382 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
383 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
384 | CLANG_CXX_LIBRARY = "libc++";
385 | CLANG_ENABLE_MODULES = YES;
386 | CLANG_ENABLE_OBJC_ARC = YES;
387 | CLANG_ENABLE_OBJC_WEAK = YES;
388 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
389 | CLANG_WARN_BOOL_CONVERSION = YES;
390 | CLANG_WARN_COMMA = YES;
391 | CLANG_WARN_CONSTANT_CONVERSION = YES;
392 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
393 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
394 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
395 | CLANG_WARN_EMPTY_BODY = YES;
396 | CLANG_WARN_ENUM_CONVERSION = YES;
397 | CLANG_WARN_INFINITE_RECURSION = YES;
398 | CLANG_WARN_INT_CONVERSION = YES;
399 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
400 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
401 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
402 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
403 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
404 | CLANG_WARN_STRICT_PROTOTYPES = YES;
405 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
406 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
407 | CLANG_WARN_UNREACHABLE_CODE = YES;
408 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
409 | COPY_PHASE_STRIP = NO;
410 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
411 | ENABLE_NS_ASSERTIONS = NO;
412 | ENABLE_STRICT_OBJC_MSGSEND = YES;
413 | GCC_C_LANGUAGE_STANDARD = gnu11;
414 | GCC_NO_COMMON_BLOCKS = YES;
415 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
416 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
417 | GCC_WARN_UNDECLARED_SELECTOR = YES;
418 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
419 | GCC_WARN_UNUSED_FUNCTION = YES;
420 | GCC_WARN_UNUSED_VARIABLE = YES;
421 | IPHONEOS_DEPLOYMENT_TARGET = 13.4;
422 | MTL_ENABLE_DEBUG_INFO = NO;
423 | MTL_FAST_MATH = YES;
424 | SDKROOT = iphoneos;
425 | SWIFT_COMPILATION_MODE = wholemodule;
426 | SWIFT_OPTIMIZATION_LEVEL = "-O";
427 | VALIDATE_PRODUCT = YES;
428 | };
429 | name = Release;
430 | };
431 | 695EF67D23FE86D800E106F0 /* Debug */ = {
432 | isa = XCBuildConfiguration;
433 | buildSettings = {
434 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
435 | CODE_SIGN_STYLE = Automatic;
436 | DEVELOPMENT_ASSET_PATHS = "\"OSRSUI/Preview Content\"";
437 | DEVELOPMENT_TEAM = Z6P74P6T99;
438 | ENABLE_PREVIEWS = YES;
439 | INFOPLIST_FILE = OSRSUI/Info.plist;
440 | LD_RUNPATH_SEARCH_PATHS = (
441 | "$(inherited)",
442 | "@executable_path/Frameworks",
443 | );
444 | PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.OSRSUI;
445 | PRODUCT_NAME = "$(TARGET_NAME)";
446 | SWIFT_VERSION = 5.0;
447 | TARGETED_DEVICE_FAMILY = "1,2";
448 | };
449 | name = Debug;
450 | };
451 | 695EF67E23FE86D800E106F0 /* Release */ = {
452 | isa = XCBuildConfiguration;
453 | buildSettings = {
454 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
455 | CODE_SIGN_STYLE = Automatic;
456 | DEVELOPMENT_ASSET_PATHS = "\"OSRSUI/Preview Content\"";
457 | DEVELOPMENT_TEAM = Z6P74P6T99;
458 | ENABLE_PREVIEWS = YES;
459 | INFOPLIST_FILE = OSRSUI/Info.plist;
460 | LD_RUNPATH_SEARCH_PATHS = (
461 | "$(inherited)",
462 | "@executable_path/Frameworks",
463 | );
464 | PRODUCT_BUNDLE_IDENTIFIER = com.thomasricouard.OSRSUI;
465 | PRODUCT_NAME = "$(TARGET_NAME)";
466 | SWIFT_VERSION = 5.0;
467 | TARGETED_DEVICE_FAMILY = "1,2";
468 | };
469 | name = Release;
470 | };
471 | /* End XCBuildConfiguration section */
472 |
473 | /* Begin XCConfigurationList section */
474 | 695EF66323FE86D600E106F0 /* Build configuration list for PBXProject "OSRSUI" */ = {
475 | isa = XCConfigurationList;
476 | buildConfigurations = (
477 | 695EF67A23FE86D800E106F0 /* Debug */,
478 | 695EF67B23FE86D800E106F0 /* Release */,
479 | );
480 | defaultConfigurationIsVisible = 0;
481 | defaultConfigurationName = Release;
482 | };
483 | 695EF67C23FE86D800E106F0 /* Build configuration list for PBXNativeTarget "OSRSUI" */ = {
484 | isa = XCConfigurationList;
485 | buildConfigurations = (
486 | 695EF67D23FE86D800E106F0 /* Debug */,
487 | 695EF67E23FE86D800E106F0 /* Release */,
488 | );
489 | defaultConfigurationIsVisible = 0;
490 | defaultConfigurationName = Release;
491 | };
492 | /* End XCConfigurationList section */
493 | };
494 | rootObject = 695EF66023FE86D600E106F0 /* Project object */;
495 | }
496 |
--------------------------------------------------------------------------------