-
Notifications
You must be signed in to change notification settings - Fork 35
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
Swift 4 migration #210
Swift 4 migration #210
Conversation
Не будем вмердживать, пока не будет поддерживаться iPhone X и не настроится TeamCity. |
@Ostrenkiy ок. А это уже закончено, могу смотреть? |
да, посмотри, не пропустил ли я чего |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -171,7 +171,7 @@ class ExplorePresenter: CourseListCountDelegate { | |||
|
|||
private func getCachedLists(forLanguage language: ContentLanguage) -> [CourseList] { | |||
let recoveredIds = courseListsCache.get(forLanguage: language) | |||
return CourseList.recover(ids: recoveredIds).sorted { $0.0.position < $0.1.position } | |||
return CourseList.recover(ids: recoveredIds).sorted { $0.position < $1.position } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это фикс чего-то? Почему от $0.0
и $0.1
перешли к $0
и $1
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
До этого в sorted передавался 1 параметр тьюпл, а теперь просто два параметра
Stepic/ExplorePresenter.swift
Outdated
@@ -281,7 +281,7 @@ class ExplorePresenter: CourseListCountDelegate { | |||
if ContentLanguage.sharedContentLanguage != language { | |||
throw LanguageError.wrongLanguageError | |||
} | |||
let newLists = lists.sorted { $0.0.position < $0.1.position } | |||
let newLists = lists.sorted(by: { $0.position < $1.position }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно же sorted { ... }
И то же самое, что на 174 строке.
Я тут все поправил, кстати |
А давай ещё NewProfile и NewSettings лишим префикса New? :) |
iPhone X support
Сейчас с New разберусь и мерджить в dev можно, думаю? |
@kvld hey |
@Ostrenkiy мерджи. TeamCity уже обновлен? |
Задача: #APPS-1663
Коротко для Release Notes, в формате «Сделали/Добавили/Исправили N»:
Миграция на swift 4
Описание:
pod update
надо сделать)