Commit Graph

750 Commits

Author SHA1 Message Date
Kaan Dedeoglu
a20b0b1d6a Encapsulate Publishers.Create and AnyPublisher(_ callback:) (#146) 2020-05-28 14:16:47 -04:00
Stephen Celis
6800fbfc96 Small Optimization For Signposts (#145)
* Small Optimization For Signposts

* Basic signpost tests

* Get rid of check
2020-05-27 18:25:12 -04:00
Brandon Williams
1005bbd393 Signpost instrumentation of reducers (#142)
* Signpost higher-order reducer.

* cleanup

* guard

* clean up

* wip

* more

* wip

* wip

* wip

* clean up

* clean up

* wip

* run

* wip

* wip

* clean up

* Update Makefile

* No failures

* cleanup

* Update Makefile

* already guarded

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
2020-05-27 10:22:10 -07:00
Stephen Celis
bf24a8cce0 Avoid simultaneous access crash on double-cancel (#137)
* Avoid simultaneous access crash on double-cancel

* fixes

* fix
2020-05-26 19:14:51 -04:00
Brandon Williams
85a8b832d0 Update docs for Effect.timer (#135) 2020-05-26 09:01:13 -07:00
Brandon Williams
b3d9270722 Correctly show (no state changes) in diff. (#132)
* Correct show (no state changes) in diff.

* test for debug operator with no state changes
2020-05-25 12:26:43 -07:00
Stephen Celis
5810032658 Simplify TestScheduler sorting (#131)
Hat tip to @mattt (https://twitter.com/mattt/status/1264976073965502464)
2020-05-25 15:00:23 -04:00
Stephen Celis
a1b15998cb Navigation case study fixes (#130)
* Fix navigation case study cancellation

Fixes #129.

* Fix

* move
2020-05-25 14:59:35 -04:00
Peter Kovacs
11be1b66a1 Implement sort() and sort(by:) for IdentifiedArray. (#128) 2020-05-22 16:14:36 -04:00
Stephen Celis
c77bb6ceaf Update Format Workflow (#127)
* Update Format Workflow

* Update IdentifiedArrayTests.swift
2020-05-22 13:08:00 -04:00
Peter Kovacs
6001603856 Implement IdentifiedArray.replaceSubrange (#126)
* Implement IdentifiedArray.replaceSubrange

* Use callback instead of key path.

Co-authored-by: Stephen Celis <stephen.celis@gmail.com>

* Remove Self from where clause

Co-authored-by: Stephen Celis <stephen.celis@gmail.com>

Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
2020-05-22 12:28:46 -04:00
Stephen Celis
05ed4deabc Make demos render better on iPad (#122) 2020-05-20 15:32:56 -04:00
mbrandonw
ad6a17345f Run swift-format 2020-05-20 18:13:55 +00:00
Brandon Williams
82d2a23e0c ComposableCoreLocation (#120)
* wip

* wip

* wip

* wip

* wip

* basics

* wip

* wip

* wip got LocalSearchClient spm package

* got a common spm package

* basics of desktop

* renamed

* wip

* clean up

* Fix

* clean up

* formatting and remove deprecated

* wip

* move stuff around, readmes

* fix

* clean up

* image

* typo

* docs

* wip

* typo

* rename

* wip

* clean up

* clean up

* rename

* wip

* Update README.md

* custom button

* format

* wip

* fix

* error info

* public interface

* set, alpha

* add error

* fix

* alpha

* internal

* Revert "internal"

This reverts commit 97da6f3086.

* wip

* wip

* docs

* rename

* cleanup

* add fatal error messages to mock

* fixes

* fixes

* clean up

* 13.3 fixes

* another fix

* 13.3 fixes

* wip

* fix mac tests

* wip

* just use double

* fix

* Revert "fix"

This reverts commit 4565a6485f.

* fix

* Fix?

* Fix

* More fix

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
2020-05-20 11:12:59 -07:00
Stephen Celis
05670ca75d Move documentation inside compiler directive (#118)
* Duplicate docs for compiler directive

* Remove RELEASE doc
2020-05-19 17:03:39 -04:00
Stephen Celis
2af6ac2307 Gracefully handle recursive state debug output (#117)
* Gracefully handle recursive state debug output

* Fix
2020-05-19 13:22:40 -04:00
Brandon Williams
6f3749bfbb Update ViewStore.swift (#116) 2020-05-19 10:09:27 -07:00
mbrandonw
0d2b624575 Run swift-format 2020-05-19 16:08:32 +00:00
Petr Sima
f6d292601e added array-based version of TestStore.assert (#115) 2020-05-19 09:06:03 -07:00
Stephen Celis
e8e272a7c0 Make Reducer.debug API more like Publisher.print (#111)
* Make Reducer.debug API more like Publisher.print

* Deprecations
2020-05-18 11:18:11 -04:00
Johan Kool
7af4802543 Typo in Effect.swift (#108) 2020-05-16 15:25:25 -07:00
mbrandonw
7cf2bf3ada Run swift-format 2020-05-15 16:33:07 +00:00
Brandon Williams
812a7fa83f Remove some old tests and guard debug code in #if DEBUG. (#104)
* Remove some old tests and guard debug code in #if DEBUG.

* remove background color

* fix test targets

* clean up more tests
2020-05-15 09:32:05 -07:00
Stephen Celis
a90c48924f Wrap WithViewStore debugging in compiler directive (#99) 2020-05-14 21:07:45 -04:00
Brandon Williams
55b8f21417 Another fix for order test scheduler intervals. (#97) 2020-05-14 15:18:22 -07:00
Stephen Celis
f4d81601af Fatal error for identified array subscript misuse (#95)
* Fatal error for identified array subscript misuse

* More docs

* Remove file/line to support Swift 5.1
2020-05-14 16:43:06 -04:00
Brandon Williams
0798889245 Fix ordering of simultaneous work in test scheduler. (#94)
* Fix ordering of simultaneous work in test scheduler.

* clean up

* clean up

* UInt
2020-05-14 11:59:16 -07:00
Jasdev Singh
90126dc066 Typo fix in IfLetStore’s docs. (#93)
(Looking out 📝)
2020-05-13 20:21:23 -07:00
Stephen Celis
0807f9a8f8 Rename certain Effect APIs (#92)
* Rename certain Effect APIs

* Move deprecations

* Fix
2020-05-13 14:12:56 -04:00
Stephen Celis
940207c4ff Minor tweaks to Effect's API for consistency (#90) 2020-05-13 13:13:37 -04:00
Stephen Celis
9c339bf4ae Add "run" function to Reducer (#91)
* Add "run" function to Reducer

* Doc fixes
2020-05-13 13:09:17 -04:00
Brandon Williams
24dbab19e2 Stop vendoring CasePaths (#87)
* wip

* Underscore unused arguments.

* clean up

* add resolved file

* remove

* update url and version
2020-05-13 11:33:41 -04:00
Alejandro Martínez
1e9af449fd Added Reducer.combine instance method (#85)
* Added Reducer.combine instance method

* Changes name to combined(with:)
2020-05-13 07:36:42 -04:00
Stephen Celis
27915d6524 Identified Array Updates (#80)
* Identifier-based subscript should get direct `modify` access, with
    caveats.
  * Add `remove(id:)` method.
2020-05-12 11:21:22 -04:00
mbrandonw
823f26bf70 Run swift-format 2020-05-11 23:43:32 +00:00
Brandon Williams
0b7978c432 Perform dlopen and dlsym just once. (#75)
* Perform dlopen and dlsym just once.

* wip
2020-05-11 16:42:06 -07:00
Stephen Celis
0442bfba68 Document Store.{state,action}less (#72) 2020-05-11 18:48:41 -04:00
Stephen Celis
b4779b36b1 Helpers for making stores stateless/actionless (#45) 2020-05-11 18:40:09 -04:00
Stephen Celis
a429d9d3ef Merge Test Support Module (#71)
* Merge Test Support Module

An attempt to fix #70.

* Remove import

* Update README

* Assertion failure

* Cleanup

* Add NB

* Revert format change

* Update Sources/ComposableArchitecture/TestSupport/TestStore.swift

* TicTacToe fixes

* Hide test store in debug flag

Co-authored-by: Brandon Williams <mbw234@gmail.com>
2020-05-11 17:44:52 -04:00
Jaime Laino
9243205c73 Fix crash on TCA Test support (#50) 2020-05-08 14:18:05 -07:00
stephencelis
3504634da3 Run swift-format 2020-05-08 14:00:36 +00:00
Brandon Williams
4df9a2e17e Don't use Group in IfLetStore. (#41) 2020-05-07 17:27:21 -07:00
Stephen Celis
bcb10ae768 Fix Xcode previews crash (#31)
* Fix Xcode previews crash

* Format
2020-05-07 09:39:25 -04:00
Stephen Celis
4016008d87 Assorted fixes for collections of state (#25)
* Assorted fixes for collections of state

Fixes #21.

* Update IdentifiedArrayTests.swift

* Update case studies

* Run swift-format on _push_ to master

* Format
2020-05-06 11:57:20 -04:00
Eugene Tulushev
d6387332a5 Remove debug gracefully for Release configurations (#23)
When the app is compiled in Release configuration with `.debug()` function still attached to a reducer, `return .none` short-circuts the reducer instead of just removing debug feature.

Just released an app to TestFlight, that doesn't work there but works on-device in Debug configuration : )
2020-05-06 10:34:18 -04:00
Nathan Mann
4d4809faf3 removed unused parameter definition (#17) 2020-05-05 09:10:13 -04:00
Glenn Gonda
7384bd915e Documentation clean up (#11)
* fix some docs

* Update Sources/ComposableArchitecture/Reducer.swift

* Update Sources/ComposableArchitecture/CasePaths/EnumReflection.swift

Co-authored-by: Glenn Gonda <ggonda@pixsystem.com>
Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
2020-05-04 15:38:52 -04:00
Stephen Celis
33f2c71c5b TestStore.scope tweaks (#10)
* TestStore.scope tweaks

  - Fixed the documentation formatting
  - Added an overload that only takes a state transformation

* Fix
2020-05-04 14:41:36 -04:00
Stephen Celis
d95caece62 Introduce TestStore.scope (#4)
* Introduce TestStore.scope

* Re-constrain TestStore

* Run swift-format

Co-authored-by: stephencelis <stephencelis@users.noreply.github.com>
2020-05-04 11:01:19 -04:00
Brandon Williams
d2240d0e76 The Composable Architecture
Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
2020-05-03 22:26:28 -07:00