diff --git a/README.md b/README.md index afe8c551cff6fd4b88565fa8fe9890d0c13d8255..d78b625592cc8b50c7f43e2f73c56ee082d66d88 100644 --- a/README.md +++ b/README.md @@ -54,10 +54,15 @@ * open holiday ics파일 * 개선한 점 : 한국 여행자 등에게 도움이 될 수 있도록 한국어로 번역 +* google GPS API 사용법 +* http://git.ajou.ac.kr/open-source-2018-spring/Google_GPS_API_Kotlin + * python - ics parser * https://github.com/oblique63/Python-GoogleCalendarParser + * 기존 파이썬 ics parser -> kotlin ics parser +* googleGPS API 사용법 제시 ### License * Apache 2.0 License diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Parser.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Parser.kt index f70989897094fbf2236519047c5e318628df364d..11fc1a411a0d81bb2a1f0e29ad0111d27b9df273 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Parser.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/Parser.kt @@ -11,7 +11,7 @@ import org.joda.time.DateTimeZone import org.joda.time.format.DateTimeFormat class Parser { - // from RRULE:FREQ=DAILY;COUNT=5 to Daily, 5x... + fun parseRepeatInterval(fullString: String, startTS: Int): RepeatRule { val parts = fullString.split(";") var repeatInterval = 0 @@ -186,7 +186,6 @@ class Parser { else -> SU } - // from P0DT1H5M0S to 3900 (seconds) fun parseDurationSeconds(duration: String): Int { val weeks = getDurationValue(duration, "W") val days = getDurationValue(duration, "D")