From 704ca190fba42ced0d1a2a16754b29f0921219ee Mon Sep 17 00:00:00 2001 From: Shin Hyuk Park <qkr819@ajou.ac.kr> Date: Thu, 14 Jun 2018 21:49:59 +0900 Subject: [PATCH] dd --- README.md | 5 +++++ .../kotlin/com/simplemobiletools/calendar/helpers/Parser.kt | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index afe8c55..d78b625 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 f709898..11fc1a4 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") -- GitLab