Commit Graph

296 Commits

Author SHA1 Message Date
Anton Popkov 615ca1d4b4 Network error handling fix vol. 2 2018-10-26 16:03:34 +03:00
Anton Popkov 652c55a936 Network error handling fix 2018-10-26 15:20:47 +03:00
Ivan Babkin ad8fe894bf Added response to RequestError 2018-10-26 14:07:36 +03:00
Ivan Babkin 2bccc006d7 Time out as network error 2018-10-19 17:37:45 +03:00
Ivan Smolin e7eb1bd51f Add: configureLayout method to InitializeableView protocol and all implementations.
Update: GeneralDataLoadingViewModel now can handle state changes and result of data source. Previously it was possible only in view controller.
Add: GeneralDataLoadingHandler protocol, that defines methods for common data loading states handling.
Add: resultObservable and resultDriver properties to GeneralDataLoadingViewModel.
Add: hidesWhenStopped option to SpinnerView, so you can stop animation without hiding image inside it.
Update: Migrate to Swift 4.2 & Xcode 10. Update dependencies.
2018-10-12 17:22:49 +03:00
Ivan Smolin ecbf71aec0 remove unused typealias 2018-09-14 20:31:24 +03:00
Ivan Smolin b796702b4e simplify 2018-09-14 19:45:01 +03:00
Ivan Smolin 2e70e8248d Add: UserDefaults+Codable is back. Now with generic subscript support. 2018-09-14 19:40:51 +03:00
Ivan Smolin 857c747bfa Change: NumberFormattingService.computedFormatters computed var reverted to static. 2018-09-14 17:44:01 +03:00
Ivan Smolin b27bd9d0e2 code review notes 2018-09-14 12:22:07 +03:00
Ivan Smolin 30bec8e9c7 Add: NSNumberConvertible protocol for NumberFormattingService use cases.
Add: TableDirector methods for rows insertion and removal without reload a whole table.
Add: UIImageView binder for disclosure indicator rotation.
Add: UIView.addSubviews(:) methods with variable number of arguments and array of views.
Add: PlaceholderConfigurable that defines attributes and methods for view with placeholder and regular state.
Add: ContentLoadingViewModel enum that describes possible PlaceholderConfigurable view states.
2018-09-13 20:07:04 +03:00
Ivan Smolin 079a723ef1 forgotten public 2018-08-07 16:32:49 +03:00
Ivan Smolin c1fe170c51 Add: Methods replace(with:), asVoid(), asOptional() to ObservableType, SharedSequence (aka Driver) and Single.
Add: Completable.deferredJust(:) static method.
Add: ViewTextConfigurable protocol. Conform UILabel, UITextField and UIButton to this protocol.
Add: BaseTextAttributes with base text appearance attributes.
Update: ViewText.string now uses BaseTextAttributes instead of separate properties.
Add: BasePlaceholderView and BasePlaceholderViewModel classes used to create your own placeholder.
Add: TableKitViewModel protocol that adds convenient extensions to cell view models that implements it.
2018-08-07 16:26:43 +03:00
Ivan Smolin 1d1ef692b9 fix default arguments 2018-07-31 13:15:10 +03:00
Ivan Smolin d1fab2c69c swift date 5.0 migration part 2 2018-07-31 12:59:55 +03:00
Ivan Smolin 0f0b37cd06 fix protocol signature 2018-07-30 18:49:09 +03:00
Ivan Smolin d8a258f05d add comment 2018-07-30 17:48:15 +03:00
Ivan Smolin 0b5b6e8358 code review notes 2018-07-30 15:48:51 +03:00
Ivan Smolin 667c15aa33 code review notes 2018-07-30 14:43:59 +03:00
Ivan Smolin e11b129a75 add base table & collection view controllers 2018-07-27 15:46:17 +03:00
Ivan Smolin a20aa5affa update dependencies & migrate to SwiftDate 5.0 2018-07-23 12:53:04 +03:00
Ivan Smolin 2cebfd7ffd base controllers 2018-07-23 11:45:17 +03:00
Ivan Smolin 3a8be1bc8c add compile time debug & reduce type check time 2018-07-23 11:42:37 +03:00
Ivan Smolin 27806bc9e9 fix date migration to region before formatting 2018-07-23 11:42:37 +03:00
Aliona 662010fc0f Update pull according to comments 2018-07-12 14:39:04 +03:00
Aliona f69f4a12ae Move string extension to a separate file 2018-07-11 19:42:08 +03:00
Aliona f90bf4a77a Map incoming policies to hosts 2018-07-11 18:17:58 +03:00
Aliona 41db20ffac Pass serverTrustPolicies to init 2018-07-11 18:02:23 +03:00
Aliona 0d0ae71916 Add assertion failure 2018-07-11 17:23:05 +03:00
Aliona b856a2f65e Update key string 2018-07-11 17:13:43 +03:00
Ivan Smolin 12b4efe6a9 Add: replaceDataSource method to RxNetworkOperationModel.
Add: customErrorHandler constructor parameter to RxNetworkOperationModel and it heirs.
2018-07-03 14:31:25 +03:00
Anton Popkov f20f355a42 SpinnerView animation freezing fix 2018-06-07 16:49:17 +03:00
Madhas 03f61ead48 add acceptable status codes property to network configuration 2018-05-31 17:48:52 +03:00
Igor Kislyuk 06f4121b69 Update localized component 2018-05-29 22:55:10 +03:00
Madhas 754875556d encodable extension renamed
init from json added to Decodable
2018-05-25 19:45:23 +03:00
Madhas d408d1eed6 codable extension public 2018-05-25 18:26:02 +03:00
Madhas 3ef5795bfc rename AlamofireRequest file 2018-05-25 16:26:36 +03:00
Madhas ca9b2eaca3 rename AlamofireManager extension file 2018-05-25 16:23:59 +03:00
Madhas bba41c7122 add init to SessionManager 2018-05-25 16:22:43 +03:00
Madhas 996081f65e corrections 2018-05-25 15:55:48 +03:00
Madhas 0996d94814 Merge branch 'master' into feature/codable 2018-05-25 15:21:04 +03:00
Madhas 85e58127b7 add SesionManager class
some refactor
2018-05-25 15:19:30 +03:00
Madhas e647052af2 correct response processing 2018-05-25 14:47:16 +03:00
Madhas 475e801393 correct ObservableMappable 2018-05-25 14:36:12 +03:00
Ivan Smolin 1d21338de9 fix PaginationWrapper retry button showing 2018-05-24 17:22:19 +03:00
Madhas 6cc6971d60 Merge branch 'master' into feature/codable 2018-05-24 13:05:31 +03:00
Madhas 32eefa77a6 rename observable mappable method 2018-05-24 13:02:13 +03:00
Madhas 3edfe50164 code review corrections 2018-05-24 12:57:30 +03:00
Madhas f88c8efb14 correction in network service configuration 2018-05-24 12:57:11 +03:00
Madhas 0ee26e3e8c remove occurrences of ObjectMapper 2018-05-24 12:37:36 +03:00
Madhas 35270f2b32 LeadKitError case added 2018-05-24 12:27:42 +03:00
Ivan Smolin 2a98ba3d47 one more fix 2018-05-22 18:56:38 +03:00
Ivan Smolin 3c99b31da0 fix default implementation of PaginationWrapperUIDelegate 2018-05-22 18:40:31 +03:00
Ivan Smolin 609e1a9ff4 Merge branch 'master' into feature/request_network_operation_state
# Conflicts:
#	CHANGELOG.md
#	LeadKit.podspec
#	LeadKit.xcodeproj/project.pbxproj
2018-05-22 17:17:13 +03:00
Igor Kislyuk 36f059da06 Merge branch 'master' into feature/newflow
# Conflicts:
#	CHANGELOG.md
2018-05-22 16:59:07 +03:00
Igor Kislyuk 53c9e23b21 Remove empty lines 2018-05-22 16:47:17 +03:00
Igor Kislyuk 9004c5f553 Update empty characters 2018-05-22 16:41:19 +03:00
Igor Kislyuk 87e4789625 Merge branch 'master' into fix-typos
# Conflicts:
#	CHANGELOG.md
#	LeadKit.podspec
2018-05-22 16:37:40 +03:00
Ivan Smolin cbb647afe7 Merge branch 'feature/newflow' of github.com:TouchInstinct/LeadKit into feature/newflow
# Conflicts:
#	CHANGELOG.md
#	LeadKit.xcodeproj/project.pbxproj
2018-05-22 16:23:10 +03:00
Ivan Smolin 11d529f4c0 InitializableView 2018-05-22 16:20:04 +03:00
Igor Kislyuk f71c882738 Merge branch 'master' into feature/newflow
# Conflicts:
#	CHANGELOG.md
2018-05-22 16:19:31 +03:00
Pavel Lukandiy a9536d3cff Targets fix 2018-05-22 14:54:18 +03:00
Ivan Smolin 3e73ff7658 remove NetworkOperationModel and NetworkOperationState 2018-05-22 14:26:30 +03:00
Igor Kislyuk e3e060eda4 Update for new flow 2018-05-22 14:18:32 +03:00
Pavel Lukandiy 360bcde3f9 Review notes 2018-05-22 14:03:40 +03:00
Pavel Lukandiy c49a05270f UI delegate default parameter 2018-05-21 21:18:10 +03:00
Pavel Lukandiy 6982b95659 Refactor and fix annotations 2018-05-21 21:09:56 +03:00
Pavel Lukandiy a6ce1288ba Removed UI delegate generic 2018-05-21 20:44:51 +03:00
Pavel Lukandiy f890fb58e0 Implemented wrapper ui delegate 2018-05-21 20:32:52 +03:00
Ivan Smolin 15a77a8bdb pagination exhausted fix 2018-05-21 20:07:11 +03:00
Ivan Smolin 6417b43df8 fix code review note 2018-05-21 19:16:12 +03:00
Madhas a28805846b toJSON method on encodable 2018-05-20 18:53:31 +03:00
Ivan Smolin 8c3c3cb7f5 hide execute from RxDataLoadingModel and it children 2018-05-18 18:56:26 +03:00
Ivan Smolin d600d57260 NetworkOperationState and RequestNetworkOperationModel for tracking network request state. Just like GeneralDataLoadingState but without empty state. 2018-05-18 18:52:40 +03:00
Madhas 98ef4ca86e all methods moved to Decodable 2018-05-16 15:52:32 +03:00
Madhas 91b49d8f94 observable mappable protocol updated 2018-05-16 15:52:01 +03:00
Madhas 9d3b3bd223 move normal request to Decodable 2018-05-15 22:10:24 +03:00
Sasha Malina 7afa723ed5 Undo useless changes 2018-05-12 00:31:26 +03:00
Ivan Smolin 7249bf66dc - Update: Migrate from Variable to BehaviorRelay.
- Fix: PaginationWrapper retry load more after fail.
- Fix: safeClear method of TableDirector now creates section without header and footer.
- Add: TableSection convenience initializer.
2018-05-11 20:16:28 +03:00
Sasha Malina f0fb443f6b Fix double rounding issue & typo
In current state "normal" rounding type produce error:
`3.14.roundValue(withPrecision: 0) == 4`,
`3.14.roundValue(withPrecision: 1) == 3.2`, looks strange.
Fix typo in word `precision`, improve description
2018-05-10 12:28:48 +03:00
Alexey Gerasimov d06ede6a19 Float80 extension removed 2018-04-17 21:32:41 +03:00
Alexey Gerasimov 588b097d42 Fixed: pullRequest comments 2018-04-17 19:32:36 +03:00
Alexey Gerasimov aba4068fb5 UniversalMappable added 2018-04-17 19:08:07 +03:00
Ivan Smolin 9473e46d1b Fix: addHeaderBackground cells overlapping. 2018-04-13 14:00:38 +03:00
Igor Kislyuk 03b4dc6ac5 Fix typo 2018-04-11 20:51:43 +03:00
Igor Kislyuk c168b64d2c Fix typo 2018-04-11 20:49:53 +03:00
Madhas 83e1eae7d0 fix timeout 2018-04-11 19:13:57 +03:00
Madhas 3fdbc72324 Merge branch 'feature/small_changes' into fix/view+autolayout 2018-04-11 16:56:53 +03:00
Madhas fc591bba0c change log + comments 2018-04-11 16:51:32 +03:00
Madhas 0c27f3b81d pleasuring swiftlint 2018-04-11 16:45:25 +03:00
Madhas f1da683009 Merge branch 'master' into fix/view+autolayout 2018-04-11 16:40:01 +03:00
Madhas d15a10857f setToCenter with insets updated 2018-04-11 16:39:03 +03:00
Ivan Smolin a9be9b8f13 Merge branch 'master' into feature/small_changes 2018-04-11 16:35:25 +03:00
Ivan Smolin b320615154 remove copy-paste 2018-04-11 16:24:17 +03:00
Ivan Smolin e51a585ed9 apiRequestParameters method to NetworkServiceConfiguration extension 2018-04-11 15:24:22 +03:00
Ivan Smolin 46d0fd57da code review comment 2018-04-11 13:40:10 +03:00
Ivan Smolin b364ac6d61 Remove: App, Log and LogFormatter.
Remove: CocoaLumberjack dependency.
Add: Rotate operation for image drawing.
Add: mapViewEvents overload with closure that returns array of disposables.
Update: Update ObjectMapper to 3.1.
2018-04-11 11:41:23 +03:00
sasha malina d267f0a58e Fix doubling separator line issue
The problem is that for 2..last-1 rows performs .full(middleSeparatorConfiguration, middleSeparatorConfiguration) action, that leads to doubling separator line height
2018-04-10 20:00:27 +03:00
Alexey Gerasimov 66567bb811 Fixed: pullRequest comments 2018-04-06 01:11:07 +03:00
Alexey Gerasimov ed13f119f3 NetworkServiceConfiguration added 2018-04-05 22:02:44 +03:00