From ec32d6085f6853a03766f5aa158ac4c106fbbdcf Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 27 May 2018 11:10:31 +0200 Subject: [PATCH] fix #494, add holidays of Singapore --- app/src/main/assets/singapore.ics | 125 ++++++++++++++++++ .../calendar/activities/MainActivity.kt | 1 + 2 files changed, 126 insertions(+) create mode 100755 app/src/main/assets/singapore.ics diff --git a/app/src/main/assets/singapore.ics b/app/src/main/assets/singapore.ics new file mode 100755 index 000000000..cddb5cb13 --- /dev/null +++ b/app/src/main/assets/singapore.ics @@ -0,0 +1,125 @@ +BEGIN:VCALENDAR +BEGIN:VEVENT +DTSTART;VALUE=DATE:20181225 +DTEND;VALUE=DATE:20181226 +UID:20181225-christmas-day@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Christmas Day +RRULE:FREQ=YEARLY;INTERVAL=1 +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20181106 +DTEND;VALUE=DATE:20181107 +UID:20181106-deepavali@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Deepavali +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20191027 +DTEND;VALUE=DATE:20191028 +UID:20191027-deepavali@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Deepavali +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20180822 +DTEND;VALUE=DATE:20180823 +UID:20180822-hari-raya-haji@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Hari Raya Haji +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20190811 +DTEND;VALUE=DATE:20190812 +UID:20190811-hari-raya-haji@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Hari Raya Haji +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20180809 +DTEND;VALUE=DATE:20180810 +UID:20180809-national-day@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:National Day +RRULE:FREQ=YEARLY;INTERVAL=1 +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20180615 +DTEND;VALUE=DATE:20180616 +UID:20180615-hari-raya-puasa@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Hari Raya Puasa +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20190605 +DTEND;VALUE=DATE:20190606 +UID:20190605-hari-raya-puasa@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Hari Raya Puasa +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20180529 +DTEND;VALUE=DATE:20180530 +UID:20180529-vesak-day@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Vesak Day +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20190519 +DTEND;VALUE=DATE:20190520 +UID:20190519-vesak-day@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Vesak Day +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20180501 +DTEND;VALUE=DATE:20180502 +UID:20180501-labour-day@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Labour Day +RRULE:FREQ=YEARLY;INTERVAL=1 +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20180330 +DTEND;VALUE=DATE:20180331 +UID:20180330-good-friday@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Good Friday +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20190419 +DTEND;VALUE=DATE:20190420 +UID:20190419-good-friday@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Good Friday +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20180217 +DTEND;VALUE=DATE:20180218 +UID:20180217-chinese-new-year@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Chinese New Year +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20180216 +DTEND;VALUE=DATE:20180217 +UID:20180216-chinese-new-year@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Chinese New Year +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20180101 +DTEND;VALUE=DATE:20180102 +UID:20180101-new-years-day@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:New Year's Day +RRULE:FREQ=YEARLY;INTERVAL=1 +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20190205 +DTEND;VALUE=DATE:20190206 +UID:20190205-chinese-new-year@www.mom.gov.sg +STATUS:CONFIRMED +SUMMARY:Chinese New Year +END:VEVENT +END:VCALENDAR diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt index 75374d906..50acfe278 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/MainActivity.kt @@ -788,6 +788,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener { put("Россия", "russia.ics") put("România", "romania.ics") put("Schweiz", "switzerland.ics") + put("Singapore", "singapore.ics") put("Srbija", "serbia.ics") put("Slovenija", "slovenia.ics") put("Slovensko", "slovakia.ics")