Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shop configs #179

Merged
merged 13 commits into from
Jun 8, 2018
Merged

Add shop configs #179

merged 13 commits into from
Jun 8, 2018

Conversation

radyslavkrechet
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Jun 7, 2018

Codecov Report

Merging #179 into feature/magento will decrease coverage by 0.07%.
The diff coverage is 87.38%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##           feature/magento     #179      +/-   ##
===================================================
- Coverage             85.2%   85.12%   -0.08%     
===================================================
  Files                  265      266       +1     
  Lines                 7083     7155      +72     
===================================================
+ Hits                  6035     6091      +56     
- Misses                1048     1064      +16
Impacted Files Coverage Δ
...ountLoggedHeaderView/AccountLoggedHeaderView.swift 80.95% <ø> (-5.72%) ⬇️
...es/Account/Controllers/AccountViewController.swift 66.19% <0%> (-1.92%) ⬇️
ShopApp_Gateway/Models/Config.swift 0% <0%> (ø)
ShopApp/Data/API/Alamofire/MagentoAPI.swift 80.94% <0%> (-0.3%) ⬇️
...ata/API/Alamofire/Routers/MagentoStoreRouter.swift 87.09% <100%> (-12.91%) ⬇️
...ivalsTableViewCell/LastArrivalsTableViewCell.swift 100% <100%> (ø) ⬆️
...sTableViewCell/LastArrivalsTableCellProvider.swift 100% <100%> (ø) ⬆️
...App/Modules/Main/Providers/HomeTableProvider.swift 100% <100%> (ø) ⬆️
.../Modules/Main/Controllers/HomeViewController.swift 54.41% <100%> (ø) ⬆️
...ew/AccountTableViewCell/AccountTableViewCell.swift 100% <100%> (ø) ⬆️
... and 5 more

@IBOutlet private weak var tableView: UITableView!

private var selectedPolicy: Policy?

var tableProvider: AccountTableProvider!
var isOrdersEnabled: Bool!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You inject this value to view controller and then pass it to the provider, but you can inject it directly to a provider

@@ -19,6 +19,8 @@ class HomeViewController: BaseTableViewController<HomeViewModel>, HomeTableProvi
private var selectedArticle: Article?

var tableProvider: HomeTableProvider!
var isPopularEnabled: Bool!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same here, just inject config values to providers

func provider(_ provider: AccountTableProvider, didSelect policy: Policy)
}

class AccountTableProvider: NSObject, UITableViewDataSource, UITableViewDelegate {
private let kSpaceBetweenSections: CGFloat = 10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

private let properties inside class should not have prefix 'k'

@radyslavkrechet radyslavkrechet merged commit c1d486c into feature/magento Jun 8, 2018
@radyslavkrechet radyslavkrechet deleted the add-shop-configs branch June 8, 2018 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants