|
1 | | -# Compose Material Dialogs |
| 1 | +# Compose Date Time Picker |
2 | 2 |
|
3 | | -:rocket: Easy to use library to help you build complex dialogs using Jetpack Compose :rocket: |
| 3 | +This is a multiplatform port of ComposeMaterialDialogs - Date Time Picker |
4 | 4 |
|
5 | | -[](https://www.codacy.com/gh/vanpra/compose-material-dialogs/dashboard?utm_source=github.com&utm_medium=referral&utm_content=vanpra/compose-material-dialogs&utm_campaign=Badge_Grade) |
| 5 | +#### [Date and Time Picker Documentation](https://vanpra.github.io/compose-material-dialogs/DateTimePicker) |
6 | 6 |
|
7 | | -**Current Library Compose Version: 1.1.0-beta04** |
| 7 | + |
8 | 8 |
|
9 | | -### [See Releases and Changelog](https://github.com/vanpra/compose-material-dialogs/blob/main/CHANGELOG.md) |
| 9 | +[](https://maven-badges.herokuapp.com/maven-central/io.github.vanpra.compose-material-dialogs/datetime) |
10 | 10 |
|
11 | | -## Core |
12 | 11 |
|
13 | | -#### [Core Documentation](https://vanpra.github.io/compose-material-dialogs/Core) |
| 12 | +### Usage |
14 | 13 |
|
15 | | - |
16 | 14 |
|
17 | | -[](https://maven-badges.herokuapp.com/maven-central/io.github.vanpra.compose-material-dialogs/core) |
| 15 | +### Multiplatform Dependency |
18 | 16 |
|
19 | | -```gradle |
20 | | -dependencies { |
21 | | - ... |
22 | | - implementation "io.github.vanpra.compose-material-dialogs:core:0.6.2" |
23 | | - ... |
24 | | -} |
25 | | -``` |
| 17 | +#### Step 1 : Add the Github Packages Repo |
26 | 18 |
|
27 | | -## Date and Time Picker |
| 19 | +```kotlin |
28 | 20 |
|
29 | | -#### [Date and Time Picker Documentation](https://vanpra.github.io/compose-material-dialogs/DateTimePicker) |
| 21 | +val githubProperties = Properties() |
| 22 | +githubProperties.load(FileInputStream(rootProject.file("github.properties"))) |
30 | 23 |
|
31 | | - |
32 | | - |
33 | | -[](https://maven-badges.herokuapp.com/maven-central/io.github.vanpra.compose-material-dialogs/datetime) |
34 | | - |
35 | | -```gradle |
36 | | -dependencies { |
37 | | - ... |
38 | | - implementation "io.github.vanpra.compose-material-dialogs:datetime:0.6.2" |
39 | | - ... |
| 24 | +allprojects { |
| 25 | + repositories { |
| 26 | + maven { |
| 27 | + name = "GitHubPackages" |
| 28 | + url = uri("https://maven.pkg.github.com/username/repo") |
| 29 | + credentials { |
| 30 | + username = (githubProperties["gpr.usr"] ?: System.getenv("GPR_USER")).toString() |
| 31 | + password = (githubProperties["gpr.key"] ?: System.getenv("GPR_API_KEY")).toString() |
| 32 | + } |
| 33 | + } |
| 34 | + } |
40 | 35 | } |
41 | 36 | ``` |
42 | 37 |
|
43 | | -## Color Picker |
| 38 | +#### Step 2 : Create Github Properties File |
44 | 39 |
|
45 | | -#### [Color Picker Documentation](https://vanpra.github.io/compose-material-dialogs/ColorPicker) |
| 40 | +Create `github.properties` file in your project at root level and add two properties (make github personal access token) |
46 | 41 |
|
47 | | - |
48 | | - |
49 | | -[](https://maven-badges.herokuapp.com/maven-central/io.github.vanpra.compose-material-dialogs/color) |
50 | | - |
51 | | -```gradle |
52 | | -dependencies { |
53 | | - ... |
54 | | - implementation "io.github.vanpra.compose-material-dialogs:color:0.6.2" |
55 | | - ... |
56 | | -} |
| 42 | +```properties |
| 43 | +gpr.usr=yourusername |
| 44 | +gpr.key=yourgithubpersonalaccesstoken |
57 | 45 | ``` |
58 | 46 |
|
59 | | -## For Developers |
| 47 | +#### Step 3 : Add The Dependency |
60 | 48 |
|
61 | | -If you would like to help by contributing to the library have a look at our [Contribution Guide](https://github.com/vanpra/compose-material-dialogs/blob/main/CONTRIBUTING.md) to get started |
| 49 | +Get the latest version , check it from releases page or better from the packages |
62 | 50 |
|
63 | | -## Credits |
| 51 | +This code is for Kotlin Gradle Script , Convert it over to groovy by removing quotes and braces if you use groovy ! |
64 | 52 |
|
65 | | -This library's design is heavily inspired by https://github.com/afollestad/material-dialogs |
| 53 | +```kotlin |
| 54 | +implementation("com.wakaztahir:datetime:<current-version>") |
| 55 | +``` |
0 commit comments