From 09fd2c6c3b1649003add5f1ef3539c39481df286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Braun?= Date: Thu, 3 Jun 2021 23:20:47 +0200 Subject: [PATCH] Update headers in README --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5411313..a9dbed5 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Types that requireKTX provides extensions for: - [NavBackStackEntry](#navbackstackentry) - [WorkManager Data](#workmanager-data) -### Why? +## Why? Take the example of grabbing a Fragment argument bundle and reading a String ID from it that should always be there: you have two choices, and none of them are great: @@ -38,7 +38,7 @@ To make the nullable case more obvious and explicit, requireKTX also includes `g val userId: String? = requireArguments().getStringOrNull("user_id") ``` -### Dependencies +## Dependencies requireKTX is available from MavenCentral. @@ -59,6 +59,8 @@ dependencies { } ``` +## Available modules and extensions + ### Bundle Given a `Bundle`, you can require the following types of values: @@ -145,7 +147,7 @@ class SomeWorker : Worker() { } ``` -### License +## License Copyright 2021 Márton Braun