Commit Graph
19 Commits
Author SHA1 Message Date
tomer doron 9a23b01e25 adopt SSWG security guidelines (#101)
* adopt SSWG security guidelines

add SECURITY.md detailing the security process

* Update README.md
2021-06-21 11:24:24 +09:00
tomer doron e6b78a807b add support for stateful handler (#84)
motivation: allow lifecycle handlers to have the library manage the state for them so they do not need to do that manually

changes:
* introduce LifecycleStartHandler and LifecycleShutdownHandler which can handle state on behalf of the lifecycle item
* add registerStateful function to regsiter stateful handlers
* add tests
2021-03-13 11:29:28 -08:00
Joakim Hassila 91c9f1ea55 Updated target dependency example (#85)
Updated the dependency to use .product as instructed by SPM when trying to follow the instructions.
2021-03-12 12:11:50 -08:00
Darrell b450a7dd15 Updated README.md to include logger configuration option (#63)
The README.md only listed 3 of the 4 Configuration options and did not mention the logging option.
Added logging option to the configuration discussion.
Placed it first, which is the same as the argument order for ServiceLifecycle.Configuration.
2020-07-20 14:01:12 -07:00
Konrad `ktoso` Malawski 975d8ee1d2 +readme add more info about the sanity script to the contributing readme (#57) 2020-07-16 18:03:01 -07:00
Alexander Cyonandtomer doron 0c9056b586 Tweak README. (#52)
Co-authored-by: tomer doron <tomerd@apple.com>
2020-07-16 07:37:11 -07:00
tomer doron 7a7e0e6c97 update dependency version string 2020-07-15 14:58:38 -07:00
tomer doron b5ead647f9 remove closure variants to reduce API confusion (#46)
motivation:

API now includes closure based variants, saving the need to wrap them in .sync
Users have complained that these overloads add confusion, and probably not worth the additional API surface area

changes:
* remove the sync closure API overloads
* update readme, examples and tests
2020-07-14 10:01:19 -07:00
tomer doron e1ec2b708b Update README.md (#43)
motivation: clearer readme

changes: SwiftServiceLifecycle -> Swift Service Lifecycle
2020-07-07 18:34:46 -07:00
tomer doron 6dde12ac74 update readme to reflect api changes (#41) 2020-05-27 19:38:44 -07:00
tomer doron d18349b069 update package name to swift-service-lifecycle (#39)
* update package name to swift-service-lifecycle

motivation: better name

changes: update package name and readme
2020-05-27 19:04:32 -07:00
Yim Lee 49d94726ac Update README (#38)
Motivation:
README still contains references to old code

Modifications:
Update README to match recent code adjustments

Result:
Correct code snippets in README
2020-04-10 12:49:51 -07:00
tomer doron 0e2d952871 update readme to reflect updated API (#37)
motivation: keep readme in sync with code

changes:
* update readme to latest API + add nesting section
* update leftover renaming issues
2020-04-09 22:30:14 -07:00
tomer doron 77c2610f87 rename project to SwiftServiceBootstrap (#36)
motivation: better name

changes:
* update license headers
* update sanity checks
2020-04-09 21:23:49 -07:00
tomer doron d31c08e4f7 readme improvements (#28)
motivation: prepare to OSS

changes: edit the exampe to make the comments clearer and simpler
2020-04-07 12:08:20 -07:00
tomer doron 2523627637 more robust readme (#27)
motivation: prepare to OSS

changes: detailed readme
2020-04-06 18:20:33 -07:00
tomer doron 46a98e2852 refactor "append" api (#3)
motivation: simplify registering items based on closures

changes:
* rename append to register
* introduce a Handler object that is an enum of sorts for types of startup and shutdown handler signature we support
* refactor tests to use the new code
2020-03-23 11:35:55 -07:00
Tom Doron 1abe527c92 initial commit 2020-03-18 11:56:30 -07:00
tomer doron eadfcc0ecf first commit 2019-11-09 23:30:10 -08:00