{"id":36593169,"url":"https://github.com/tomergoldst/timekeeper","last_synced_at":"2026-01-12T08:21:52.727Z","repository":{"id":57729104,"uuid":"156234087","full_name":"tomergoldst/timekeeper","owner":"tomergoldst","description":"Alarms scheduling for android","archived":false,"fork":false,"pushed_at":"2019-01-16T16:42:01.000Z","size":242,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-04T09:16:37.645Z","etag":null,"topics":["alarm","alarms-scheduling","android","android-library","java","sdk-android","timekeeper"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomergoldst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-05T14:50:39.000Z","updated_at":"2024-04-16T15:13:15.000Z","dependencies_parsed_at":"2022-09-10T21:50:10.618Z","dependency_job_id":null,"html_url":"https://github.com/tomergoldst/timekeeper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tomergoldst/timekeeper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomergoldst%2Ftimekeeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomergoldst%2Ftimekeeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomergoldst%2Ftimekeeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomergoldst%2Ftimekeeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomergoldst","download_url":"https://codeload.github.com/tomergoldst/timekeeper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomergoldst%2Ftimekeeper/sbom","scorecard":{"id":892489,"data":{"date":"2025-08-18","repo":{"name":"github.com/tomergoldst/timekeeper","commit":"0439ac26f828bff024a9b52de3b873e3fc252a4b"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":2.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-24T12:24:12.977Z","repository_id":57729104,"created_at":"2025-08-24T12:24:12.977Z","updated_at":"2025-08-24T12:24:12.977Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alarm","alarms-scheduling","android","android-library","java","sdk-android","timekeeper"],"created_at":"2026-01-12T08:21:52.042Z","updated_at":"2026-01-12T08:21:52.719Z","avatar_url":"https://github.com/tomergoldst.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TimeKeeper\nAlarms scheduling for Android.\n\nSet and receive exact alarms with ease, TimeKeeper handle all the work for you.\n\nSupport `Android 8.0` (API level 26) back to `Android 4.0` (API level 14)\n\nIn order to support exact alarms on `Android 9.0` your app has to be in the foreground at\nany time, this can be achieved by using a foreground service running at all time.\nOtherwise your app will be subject to [App Standby Buckets](https://developer.android.com/about/versions/pie/power#buckets)\nand alarms may be deferred by few minutes or more according to [Power management restrictions](https://developer.android.com/topic/performance/power/power-details)\n\n## Instructions\n\nAdd dependencies to your app build.gradle (This library uses Firebase Job Dispatcher)\n```groovy\ndependencies {\n    // TimeKeeper\n    implementation 'com.tomergoldst.android:timekeeper:1.0.2'\n\n    // Firebase Job Dispatcher\n    implementation 'com.firebase:firebase-jobdispatcher:0.8.5'\n}\n```\n\nAdd the following permissions to your app manifest if you don't already have it\n```xml\n\u003cuses-permission android:name=\"android.permission.WAKE_LOCK\" /\u003e\n\u003cuses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\" /\u003e\n```\n\nCreate a BroadcastReceiver (Alarms will be delivered to this receiver)\n```java\npublic class MyAlarmReceiver extends BroadcastReceiver {\n    @Override\n    public void onReceive(Context context, Intent intent) {\n        /*\n          Extract alarms from intent\n         */\n        List\u003cAlarm\u003e alarms = intent.getParcelableArrayListExtra(\"alarms\");\n\n    }\n}\n```\n\nAdd receiver to your manifest. It is important to define the intent-filter with the appropriate action name\n```xml\n\u003creceiver\n    android:name=\".MyAlarmReceiver\"\n    android:exported=\"false\"\u003e\n    \u003cintent-filter\u003e\n        \u003caction android:name=\"com.tomergoldst.timekeeper.intent_action.RECEIVE_ALARMS\" /\u003e\n    \u003c/intent-filter\u003e\n\u003c/receiver\u003e\n```\n\nInit TimeKeeper at your application class onCreate()\n```java\npublic class MyApplication extends Application {\n\n    @Override\n    public void onCreate() {\n        super.onCreate();\n\n        TimeKeeper.initialize(this);\n    }\n}\n```\n\nNow we can start using the sdk and create an alarm:\nCreate an Alarm object and pass in a UID and a time to be triggered in millis and then call setAlarm\n```java\nAlarm alarm = new Alarm(\"my-alarm-id\", 1541433600000);\nTimeKeeper.setAlarm(alarm);\n```\n\nTo cancel an alarm:\n```java\nTimeKeeper.cancelAlarm(\"my-alarm-id\");\n```\n\nTo see list of all existing alarms:\n```java\nList\u003cAlarm\u003e alarms = TimeKeeper.getAlarms();\n```\n\nTo remove all alarms:\n```java\nTimeKeeper.clear();\n```\n\nTo get next alarm time:\n```java\nlong time = TimeKeeper.getNextAlarmTime();\n```\n\n### License\n```\nCopyright 2018 Tomer Goldstein\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomergoldst%2Ftimekeeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomergoldst%2Ftimekeeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomergoldst%2Ftimekeeper/lists"}