Skip to content

Commit

Permalink
Add cart api protocol methods
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonoffEvgeniy committed Jun 6, 2018
1 parent d840c75 commit 641bbf4
Show file tree
Hide file tree
Showing 35 changed files with 148 additions and 1,560 deletions.
3 changes: 0 additions & 3 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ target 'ShopApp' do
pod 'TTTAttributedLabel', '~> 2.0'
pod 'DropDown', '~> 2.0'

# Database
pod 'CoreStore', '~> 4.2'

# Architecture
pod 'RxSwift', '~> 4.1'
pod 'RxCocoa', '~> 4.1'
Expand Down
6 changes: 1 addition & 5 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
PODS:
- AvatarImageView (2.1.1)
- CoreStore (4.2.4)
- Crashlytics (3.10.1):
- Fabric (~> 1.7.5)
- DropDown (2.3.1)
Expand Down Expand Up @@ -28,7 +27,6 @@ PODS:

DEPENDENCIES:
- AvatarImageView (~> 2.1)
- CoreStore (~> 4.2)
- Crashlytics (~> 3.9)
- DropDown (~> 2.0)
- Fabric (~> 1.7)
Expand All @@ -52,7 +50,6 @@ DEPENDENCIES:
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- AvatarImageView
- CoreStore
- Crashlytics
- DropDown
- Fabric
Expand All @@ -75,7 +72,6 @@ SPEC REPOS:

SPEC CHECKSUMS:
AvatarImageView: 50618694f9ce37d07fd0250145e733b34197fb5b
CoreStore: 1b8a116d9e3f3e0e0be588b57bc4a7dbb5adf3d5
Crashlytics: aee1a064cbbf99b32efa3f056a5f458d846bc8ff
DropDown: 20499c7b2731b0d21609af924e47c7677a2be50d
Fabric: f8d42c893bb187326a7968b62abe55c36a987a46
Expand All @@ -96,6 +92,6 @@ SPEC CHECKSUMS:
"UIImage+Additions": da531911c34e298b46b567a28df03bb098af1389
UIScrollView-InfiniteScroll: c132d6d5851daff229ab4a1060ccf70a05a051c9

PODFILE CHECKSUM: 90bec9d6bca10399874b51140fee24d1de0f50ed
PODFILE CHECKSUM: a3b644e8c495dc541f23904eb5d990ec93801f5e

COCOAPODS: 1.5.2
213 changes: 12 additions & 201 deletions ShopApp.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ProductDetailsViewModel: BaseViewModel {
return Disposables.create()
}
let productQuantity = strongSelf.quantity.value
guard let cartProduct = CoreDataCartProductAdapter.adapt(product: strongSelf.product.value, productQuantity: productQuantity, variant: strongSelf.selectedProductVariant) else {
guard let cartProduct = CartProductAdapter.adapt(product: strongSelf.product.value, productQuantity: productQuantity, variant: strongSelf.selectedProductVariant) else {
event.onNext(false)
return Disposables.create()
}
Expand Down
7 changes: 0 additions & 7 deletions ShopApp/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import UIKit

import CoreStore
import Fabric
import Crashlytics
import Swinject
Expand All @@ -31,12 +30,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
#if !DEV
Fabric.with([Crashlytics.self])
#endif

do {
try CoreStore.addStorageAndWait()
} catch {
print(error)
}

// Disabled logging due errors with Swift 3
// https://github.com/Swinject/Swinject/issues/218
Expand Down

This file was deleted.

24 changes: 0 additions & 24 deletions ShopApp/Data/DAO/CoreData/Adapters/CoreDataImageAdapter.swift

This file was deleted.

This file was deleted.

This file was deleted.

126 changes: 0 additions & 126 deletions ShopApp/Data/DAO/CoreData/CoreDataDAO.swift

This file was deleted.

19 changes: 0 additions & 19 deletions ShopApp/Data/DAO/CoreData/Extensions/CoreStore+Transaction.swift

This file was deleted.

This file was deleted.

Loading

0 comments on commit 641bbf4

Please sign in to comment.