Commit Graph

36 Commits

Author SHA1 Message Date
Stephen Celis
f0098d8232 Add cancel overloads that take types (#1078)
* Add cancel overloads that take types

* wip
2022-05-03 21:00:24 -04:00
mbrandonw
96f47fbe85 Run swift-format 2022-04-08 16:57:56 +00:00
Brandon Williams
c8482eb61b Move DEBUG check to runtimeWarning function. (#1056)
* Move DEBUG check to runtimeWarning function.

* wip
2022-04-08 09:48:35 -07:00
Stephen Celis
2828dc44f6 Runtime Warning Finesse (#1023) 2022-03-15 16:21:13 -04:00
Stephen Celis
313dd217dc Improving developer experience with runtime warnings (#943)
* Perform thread check only when store is created on main thread.

* clean up

* Update Sources/ComposableArchitecture/Store.swift

* clean up

* Update Sources/ComposableArchitecture/Store.swift

* clean up

* execute setSpecific only once.

* logic fix

* added a test

* typo

* wip

* wip

* wip

* clean up

* language

* wip

* note

* wip

* wip

* wip

* wip

* wip

* fix closing quote

* wip

* fix merge

* Deprecations

* Fix docs

* wip

Co-authored-by: Brandon Williams <mbrandonw@hey.com>
2022-01-03 10:55:13 -06:00
Stephen Celis
a554b00ff4 Remove old deprecations (#795)
* Remove old deprecations

* wip
2021-09-14 22:30:38 -04:00
Stephen Celis
bf9ab75f9d Add CI for DocC warnings (#750)
* Add CI for DocC warnings

* More specific grep
2021-08-25 15:39:36 -04:00
Stephen Celis
b73f74f68d Make file/line parameters explicit (#729) 2021-08-20 09:00:16 -04:00
Stephen Celis
2d1e21b5aa Convert #file to #fileID for debug purposes (#708) 2021-08-11 11:54:36 -04:00
Stephen Celis
68a6883045 Use modify helper in Tic-Tac-Toe integration test (#687)
* Use `modify` helper

* Clean up breakpoint warnings
2021-07-29 16:40:59 -04:00
Stephen Celis
ac7ea43ff2 Merge remote-tracking branch 'origin/main' into ia 2021-07-09 15:41:49 -04:00
Stephen Celis
50a16e072e Deprecate array-based forEach/ForEachStore (#641)
* Deprecate array-based forEach/ForEachStore

* Update tests
2021-07-08 10:49:13 -04:00
Stephen Celis
e1c7077cd1 wip 2021-06-25 16:42:22 -04:00
Stephen Celis
fab3510d54 wip 2021-06-25 13:06:45 -04:00
Stephen Celis
d30336ca13 Clean-up pass for DocC (#599) 2021-06-16 08:48:14 -05:00
Wendy Liga
1a8bccc62e Support DocC Xcode 13 (#591)
* wip

* finish

* revert back code snippet identation to 5

* Update Sources/ComposableArchitecture/Effect.swift

Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>

Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>
2021-06-14 14:10:08 -04:00
Brandon Williams
3d8db944c7 Add SwitchStore and CaseLet (#594)
* wip

* ttt

* simplfiy

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fix

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* docs

* wip

* wip

* wip

* wip

* wip

* updates

* revert ttt stuff'

* xcode 11 fixes

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
2021-06-14 10:46:36 -04:00
Stephen Celis
dc3576bbd8 Only breakpoint when debugger is attached (#579)
* Only breakpoint when debugger is attached

* Update Breakpoint.swift

* Add breakpoint instruction
2021-06-01 09:46:31 -07:00
Stephen Celis
f8608c7421 Breakpoint instead of assert in optional/forEach (#296)
* Breakpoint instead of assert in optional/forEach

* fix merge

Co-authored-by: Brandon Williams <mbw234@gmail.com>
Co-authored-by: Brandon Williams <mbrandonw@hey.com>
2021-03-02 13:03:15 -05:00
SteinerHannes
607ea20ff6 Update Reducer.swift (#332) 2021-01-12 09:47:59 -05:00
Jans Pavlovs
81e61f8f9c Replace deprecated optional with optional() (#339) 2021-01-11 09:21:54 -05:00
Jeffrey Macko
1caaff5765 Add support for AccuracyAuthorization (#307)
* Add AccuracyAuthorization for iOS 13/14

* Remove Header

* Improve implementation still not working on osx

* Re-Format

* Re-Format

* [feat] Add Swift 5.3 ifdef

* Exclude CLAccuracyAuthorization reference from compilers below 5.3.1

Fixes compilation issues on macOS and macCatalyst with Xcode 12.1

* Fix compilation for macCatalyst

* Exclude from compilation on Xcode 11

* Update Sources/ComposableCoreLocation/Interface.swift

Co-authored-by: Andrey Zhukov <git@andrey.se>
Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
2020-10-29 10:37:31 -04:00
Stephen Celis
b4fb8a2f4d More docs around Reducer.combine and ordering (#215)
* More docs around Reducer.combine and ordering

* typo

* Update Sources/ComposableArchitecture/Reducer.swift

Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>

* more

* Update Reducer.swift

* more

Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>
2020-07-09 11:23:23 -04:00
Alejandro Martínez
f40942fa08 Added file and line to optional assert (#218)
* Added file and line to optional assert

* Apply suggestions from code review

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

* Deprecate old optional property and migrated TicTacToe example

* Migrated other examples to optional() and added file/line to forEach

* Update Deprecations.swift

Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
2020-07-08 17:18:48 -04:00
nmccann
2e2f46696d Aligned documentation with the implementation (#186)
Co-authored-by: Noah McCann <>
2020-06-15 10:33:05 -04:00
Stephen Celis
c41ae19eb8 Update assertion messaging (#170)
* Update assertion messaging

* updated some docs

Co-authored-by: Brandon Williams <mbw234@gmail.com>
2020-06-07 18:08:37 -04:00
stephencelis
aaed2b181a Run swift-format 2020-06-04 18:00:32 +00:00
Stephen Celis
3d89482da6 Add assertion to Reducer.optional (#157)
* Add assertion to Reducer.optional

* Another bug

* Another potential bug

* best practice?

* WIP

* Clean up language and add more language to index-based forEach

* Re-wrap

* Update Sources/ComposableArchitecture/Reducer.swift

Co-authored-by: Brandon Williams <mbw234@gmail.com>

* Update Sources/ComposableArchitecture/Reducer.swift

Co-authored-by: Brandon Williams <mbw234@gmail.com>

* wording

Co-authored-by: Brandon Williams <mbw234@gmail.com>
2020-06-04 13:57:25 -04:00
stephencelis
dd707b7bd6 Run swift-format 2020-06-04 17:44:38 +00:00
Peter Kovacs
8e3804a64e Make forEach explictly check that the ID is present in the IdentifiedArray. (#154) 2020-06-04 13:40:27 -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
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
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
Brandon Williams
d2240d0e76 The Composable Architecture
Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
2020-05-03 22:26:28 -07:00