Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions iOSBooks/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ target 'iOSBooks' do
# Pods for iOSBooks
pod 'PromiseKit'
pod 'IQKeyboardManagerSwift'
pod 'Kingfisher', "~>5.1"

target 'iOSBooksTests' do
inherit! :search_paths
Expand Down
104 changes: 88 additions & 16 deletions iOSBooks/iOSBooks.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

/* Begin PBXBuildFile section */
0E3964D82314BB470093738B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E3964D72314BB470093738B /* AppDelegate.swift */; };
0E3964DA2314BB470093738B /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E3964D92314BB470093738B /* ViewController.swift */; };
0E3964DD2314BB470093738B /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0E3964DB2314BB470093738B /* Main.storyboard */; };
0E3964DF2314BB4A0093738B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0E3964DE2314BB4A0093738B /* Assets.xcassets */; };
0E3964E22314BB4A0093738B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0E3964E02314BB4A0093738B /* LaunchScreen.storyboard */; };
0E3964ED2314BB4A0093738B /* iOSBooksTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E3964EC2314BB4A0093738B /* iOSBooksTests.swift */; };
Expand All @@ -24,6 +22,16 @@
7447D36C2316F12800E01BD3 /* Item.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7447D36B2316F12800E01BD3 /* Item.swift */; };
7447D36E2316F13A00E01BD3 /* ImageLinks.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7447D36D2316F13A00E01BD3 /* ImageLinks.swift */; };
7447D3702316F14D00E01BD3 /* SalesInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7447D36F2316F14D00E01BD3 /* SalesInfo.swift */; };
7447D37A2316F71200E01BD3 /* BooksListViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7447D3792316F71200E01BD3 /* BooksListViewModel.swift */; };
7447D37C2316F71D00E01BD3 /* BooksListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7447D37B2316F71D00E01BD3 /* BooksListViewController.swift */; };
7447D37E2316F72A00E01BD3 /* BooksList.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7447D37D2316F72A00E01BD3 /* BooksList.storyboard */; };
74ADE9B823196A7A006D2644 /* AppCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74ADE9B723196A7A006D2644 /* AppCoordinator.swift */; };
74ADE9BE23196CE3006D2644 /* AppCoordinatorDependencyInjector.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74ADE9BD23196CE3006D2644 /* AppCoordinatorDependencyInjector.swift */; };
74ADE9C023196E44006D2644 /* UIViewController+QuickInstance.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74ADE9BF23196E44006D2644 /* UIViewController+QuickInstance.swift */; };
74ADE9C223196E99006D2644 /* Identifiable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74ADE9C123196E99006D2644 /* Identifiable.swift */; };
74ADE9C52319730F006D2644 /* BooksCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74ADE9C42319730F006D2644 /* BooksCell.swift */; };
74ADE9C7231973B5006D2644 /* BooksListViewController+CollectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74ADE9C6231973B5006D2644 /* BooksListViewController+CollectionView.swift */; };
74ADE9C9231981F5006D2644 /* BooksListViewController+View.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74ADE9C8231981F5006D2644 /* BooksListViewController+View.swift */; };
768F74E39672B1F50C632913 /* Pods_iOSBooks.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D2FDB2EC5907498F6A3C173 /* Pods_iOSBooks.framework */; };
/* End PBXBuildFile section */

Expand All @@ -40,8 +48,6 @@
/* Begin PBXFileReference section */
0E3964D42314BB470093738B /* iOSBooks.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iOSBooks.app; sourceTree = BUILT_PRODUCTS_DIR; };
0E3964D72314BB470093738B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
0E3964D92314BB470093738B /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
0E3964DC2314BB470093738B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
0E3964DE2314BB4A0093738B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
0E3964E12314BB4A0093738B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
0E3964E32314BB4A0093738B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand All @@ -63,6 +69,16 @@
7447D36B2316F12800E01BD3 /* Item.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Item.swift; sourceTree = "<group>"; };
7447D36D2316F13A00E01BD3 /* ImageLinks.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ImageLinks.swift; sourceTree = "<group>"; };
7447D36F2316F14D00E01BD3 /* SalesInfo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SalesInfo.swift; sourceTree = "<group>"; };
7447D3792316F71200E01BD3 /* BooksListViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BooksListViewModel.swift; sourceTree = "<group>"; };
7447D37B2316F71D00E01BD3 /* BooksListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BooksListViewController.swift; sourceTree = "<group>"; };
7447D37D2316F72A00E01BD3 /* BooksList.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = BooksList.storyboard; sourceTree = "<group>"; };
74ADE9B723196A7A006D2644 /* AppCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppCoordinator.swift; sourceTree = "<group>"; };
74ADE9BD23196CE3006D2644 /* AppCoordinatorDependencyInjector.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppCoordinatorDependencyInjector.swift; sourceTree = "<group>"; };
74ADE9BF23196E44006D2644 /* UIViewController+QuickInstance.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIViewController+QuickInstance.swift"; sourceTree = "<group>"; };
74ADE9C123196E99006D2644 /* Identifiable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Identifiable.swift; sourceTree = "<group>"; };
74ADE9C42319730F006D2644 /* BooksCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BooksCell.swift; sourceTree = "<group>"; };
74ADE9C6231973B5006D2644 /* BooksListViewController+CollectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "BooksListViewController+CollectionView.swift"; sourceTree = "<group>"; };
74ADE9C8231981F5006D2644 /* BooksListViewController+View.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "BooksListViewController+View.swift"; sourceTree = "<group>"; };
E6741F045EBC12BB315EE1CB /* Pods-iOSBooks.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOSBooks.debug.xcconfig"; path = "Target Support Files/Pods-iOSBooks/Pods-iOSBooks.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -109,13 +125,15 @@
0E3964D62314BB470093738B /* iOSBooks */ = {
isa = PBXGroup;
children = (
74ADE9B5231969F0006D2644 /* Coordinators */,
7447D3762316F6C700E01BD3 /* BooksList */,
7447D3712316F16E00E01BD3 /* Data */,
0E3964D72314BB470093738B /* AppDelegate.swift */,
0E3964D92314BB470093738B /* ViewController.swift */,
0E3964DB2314BB470093738B /* Main.storyboard */,
0E3964DE2314BB4A0093738B /* Assets.xcassets */,
0E3964E02314BB4A0093738B /* LaunchScreen.storyboard */,
0E3964E32314BB4A0093738B /* Info.plist */,
74ADE9BF23196E44006D2644 /* UIViewController+QuickInstance.swift */,
74ADE9C123196E99006D2644 /* Identifiable.swift */,
);
path = iOSBooks;
sourceTree = "<group>";
Expand Down Expand Up @@ -187,6 +205,60 @@
path = Clients;
sourceTree = "<group>";
};
7447D3762316F6C700E01BD3 /* BooksList */ = {
isa = PBXGroup;
children = (
7447D3782316F6D700E01BD3 /* View */,
7447D3772316F6CF00E01BD3 /* ViewModel */,
);
path = BooksList;
sourceTree = "<group>";
};
7447D3772316F6CF00E01BD3 /* ViewModel */ = {
isa = PBXGroup;
children = (
7447D3792316F71200E01BD3 /* BooksListViewModel.swift */,
);
path = ViewModel;
sourceTree = "<group>";
};
7447D3782316F6D700E01BD3 /* View */ = {
isa = PBXGroup;
children = (
7447D37D2316F72A00E01BD3 /* BooksList.storyboard */,
7447D37B2316F71D00E01BD3 /* BooksListViewController.swift */,
74ADE9C6231973B5006D2644 /* BooksListViewController+CollectionView.swift */,
74ADE9C8231981F5006D2644 /* BooksListViewController+View.swift */,
74ADE9C3231972ED006D2644 /* Subviews */,
);
path = View;
sourceTree = "<group>";
};
74ADE9B5231969F0006D2644 /* Coordinators */ = {
isa = PBXGroup;
children = (
74ADE9B6231969F7006D2644 /* AppCoordinator */,
);
path = Coordinators;
sourceTree = "<group>";
};
74ADE9B6231969F7006D2644 /* AppCoordinator */ = {
isa = PBXGroup;
children = (
74ADE9B723196A7A006D2644 /* AppCoordinator.swift */,
74ADE9BD23196CE3006D2644 /* AppCoordinatorDependencyInjector.swift */,
);
path = AppCoordinator;
sourceTree = "<group>";
};
74ADE9C3231972ED006D2644 /* Subviews */ = {
isa = PBXGroup;
children = (
74ADE9C42319730F006D2644 /* BooksCell.swift */,
);
path = Subviews;
sourceTree = "<group>";
};
E4186846F20EA500EF61D605 /* Pods */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -284,8 +356,8 @@
buildActionMask = 2147483647;
files = (
0E3964E22314BB4A0093738B /* LaunchScreen.storyboard in Resources */,
7447D37E2316F72A00E01BD3 /* BooksList.storyboard in Resources */,
0E3964DF2314BB4A0093738B /* Assets.xcassets in Resources */,
0E3964DD2314BB470093738B /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -384,12 +456,20 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
74ADE9C9231981F5006D2644 /* BooksListViewController+View.swift in Sources */,
74ADE9C223196E99006D2644 /* Identifiable.swift in Sources */,
7447D36C2316F12800E01BD3 /* Item.swift in Sources */,
7447D3682316E57500E01BD3 /* Book.swift in Sources */,
74ADE9BE23196CE3006D2644 /* AppCoordinatorDependencyInjector.swift in Sources */,
7447D3702316F14D00E01BD3 /* SalesInfo.swift in Sources */,
7447D37A2316F71200E01BD3 /* BooksListViewModel.swift in Sources */,
7447D36E2316F13A00E01BD3 /* ImageLinks.swift in Sources */,
0E3964DA2314BB470093738B /* ViewController.swift in Sources */,
7447D37C2316F71D00E01BD3 /* BooksListViewController.swift in Sources */,
74ADE9C7231973B5006D2644 /* BooksListViewController+CollectionView.swift in Sources */,
74ADE9C52319730F006D2644 /* BooksCell.swift in Sources */,
74ADE9B823196A7A006D2644 /* AppCoordinator.swift in Sources */,
0E3964D82314BB470093738B /* AppDelegate.swift in Sources */,
74ADE9C023196E44006D2644 /* UIViewController+QuickInstance.swift in Sources */,
7447D3602316CB1200E01BD3 /* Reachability.swift in Sources */,
7447D35E2316C91700E01BD3 /* APIClient.swift in Sources */,
7447D3642316E02500E01BD3 /* Endpoint.swift in Sources */,
Expand Down Expand Up @@ -418,14 +498,6 @@
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
0E3964DB2314BB470093738B /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
0E3964DC2314BB470093738B /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
0E3964E02314BB4A0093738B /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
Expand Down
19 changes: 15 additions & 4 deletions iOSBooks/iOSBooks/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,27 @@
// Copyright © 2019 Guilherme Antunes. All rights reserved.
//

import IQKeyboardManagerSwift
import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


var coordinator: AppCoordinator?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.

window = UIWindow(frame: UIScreen.main.bounds)
guard let window = window else {
print("window is unexpectedly nil")
return false
}
IQKeyboardManager.shared.enable = true
IQKeyboardManager.shared.shouldShowToolbarPlaceholder = false
coordinator = AppCoordinator(window: window)
coordinator?.start()

return true
}

Expand All @@ -38,7 +49,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}

func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
window = nil
}


Expand Down
24 changes: 0 additions & 24 deletions iOSBooks/iOSBooks/Base.lproj/Main.storyboard

This file was deleted.

Loading