Skip to content

Commit c51277f

Browse files
committed
Update version
2 parents e6655e3 + 4d9c74a commit c51277f

File tree

1 file changed

+50
-1
lines changed

1 file changed

+50
-1
lines changed

README.md

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,51 @@
1+
[![Release](https://img.shields.io/github/release/PhilJay/RRule.svg?style=flat)](https://jitpack.io/#PhilJay/RRule)
2+
3+
14
# RRule
2-
Kotlin implementation for handling iCalendar (RFC 5545) recurrence rules
5+
Kotlin implementation for conveniently handling and modifying iCalendar (RFC 5545) recurrence rules.
6+
7+
## Dependency
8+
9+
Add the following to your **build.gradle** file:
10+
```groovy
11+
allprojects {
12+
repositories {
13+
maven { url 'https://jitpack.io' }
14+
}
15+
}
16+
17+
dependencies {
18+
implementation 'com.github.PhilJay:RRule:1.0.0'
19+
}
20+
```
21+
22+
Or add the following to your **pom.xml**:
23+
24+
```xml
25+
<repositories>
26+
<repository>
27+
<id>jitpack.io</id>
28+
<url>https://jitpack.io</url>
29+
</repository>
30+
</repositories>
31+
32+
<dependency>
33+
<groupId>com.github.PhilJay</groupId>
34+
<artifactId>RRule</artifactId>
35+
<version>1.0.0</version>
36+
</dependency>
37+
```
38+
39+
## Sample Usage
40+
41+
Transform iCalendar RFC 5545 String to RRule object:
42+
43+
```kotlin
44+
val rrule = RRule("RRULE:FREQ=MONTHLY;INTERVAL=2;COUNT=10;BYDAY=1SU,-1SU")
45+
```
46+
47+
Transform RRule object to iCalendar RFC 5545 String:
48+
49+
```kotlin
50+
val rfc5545String = rrule.toRFC2445String()
51+
```

0 commit comments

Comments
 (0)