{"id":17472379,"url":"https://github.com/pranavpandey/dynamic-key","last_synced_at":"2025-04-22T10:19:56.771Z","repository":{"id":44562983,"uuid":"510057944","full_name":"pranavpandey/dynamic-key","owner":"pranavpandey","description":"Use other apps as a key to unlock features in the primary app on Android.","archived":false,"fork":false,"pushed_at":"2025-03-05T19:29:10.000Z","size":973,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T20:25:51.770Z","etag":null,"topics":["android","key","library","license"],"latest_commit_sha":null,"homepage":"https://dynamic.pranavpandey.com","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/pranavpandey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"pranavpandey","patreon":"pranavpandey","open_collective":"pranavpandeydev","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["paypal.me/pranavpandeydev"]}},"created_at":"2022-07-03T15:13:23.000Z","updated_at":"2025-03-05T19:29:14.000Z","dependencies_parsed_at":"2023-12-19T01:02:10.385Z","dependency_job_id":"f263f713-63d6-4f7e-8d14-873cfe83c5be","html_url":"https://github.com/pranavpandey/dynamic-key","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"8cfc445747ab82b976fad2e4d1c493fa9784959c"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranavpandey%2Fdynamic-key","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranavpandey%2Fdynamic-key/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranavpandey%2Fdynamic-key/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranavpandey%2Fdynamic-key/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pranavpandey","download_url":"https://codeload.github.com/pranavpandey/dynamic-key/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249184521,"owners_count":21226390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["android","key","library","license"],"created_at":"2024-10-18T17:09:09.971Z","updated_at":"2025-04-22T10:19:56.757Z","avatar_url":"https://github.com/pranavpandey.png","language":"Java","funding_links":["https://github.com/sponsors/pranavpandey","https://patreon.com/pranavpandey","https://opencollective.com/pranavpandeydev","paypal.me/pranavpandeydev","https://paypal.me/pranavpandeydev"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./graphics/icon.png\" height=\"160\"\u003e\n\n# Dynamic Key\n\n[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?)](https://www.apache.org/licenses/LICENSE-2.0.html)\n[![Release](https://img.shields.io/maven-central/v/com.pranavpandey.android/dynamic-key)](https://search.maven.org/artifact/com.pranavpandey.android/dynamic-key)\n\n**A library to use other apps as a key to unlock features in the primary app on Android \n4.0 (API 14) and above.**\n\n\u003e [!IMPORTANT]\n\u003e It uses [AndroidX][androidx] so, first [migrate][androidx-migrate] your project to AndroidX.\n\u003cbr/\u003eIt is dependent on Java 8 due to the dependency on [Dynamic Utils][dynamic-utils].\n\u003cbr/\u003eSince v1.1.1, it is targeting Java 17 to provide maximum compatibility.\n\u003cbr/\u003eSince v1.2.0, the minimum SDK is Android 4.4 (API 19) to comply with the latest policies.\n\n---\n\n## Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n    - [Broadcast](#broadcast)\n    - [Sponsor](#sponsor)\n    - [Dependency](#dependency)\n- [License](#license)\n\n---\n\n## Installation\n\nIt can be installed by adding the following dependency to your `build.gradle` file:\n\n```groovy\ndependencies {\n    // For AndroidX enabled projects.\n    implementation 'com.pranavpandey.android:dynamic-key:1.2.0'\n}\n```\n\n---\n\n## Usage\n\nIt provides an `activity` and a `receiver` to implement a dynamic key that can unlock features\nin other (client) apps. It has utility methods to validate a key at runtime within the supported \napps, so they must be signed with the same `signatures` to validate an installed key on the device.\n\n\u003e For a complete reference, please read the [documentation][documentation].\n\n### Broadcast\n\nBroadcast the key event on successful validation to notify key apps so that they can do\nthe required work. In most cases, it should hide the icon from the app launcher.\n\n```java\n// Broadcast the activate intent from the client app.\nDynamicKeyUtils.broadcast(context, KEY_PACKAGE, Key.Intent.ACTION_ACTIVATE);\n```\n\n### Sponsor\n\nPlease become a [sponsor][sponsor] to get a detailed guide and priority support.\n\n### Dependency\n\nIt depends on the [dynamic-utils][dynamic-utils] and [dynamic-preferences][dynamic-preferences]\nto perform various internal operations. So, their functions can also be used to perform other\nuseful operations.\n\n---\n\n## Author\n\nPranav Pandey\n\n[![GitHub](https://img.shields.io/github/followers/pranavpandey?label=GitHub\u0026style=social)](https://github.com/pranavpandey)\n[![Follow on Twitter](https://img.shields.io/twitter/follow/pranavpandeydev?label=Follow\u0026style=social)](https://twitter.com/intent/follow?screen_name=pranavpandeydev)\n[![Donate via PayPal](https://img.shields.io/static/v1?label=Donate\u0026message=PayPal\u0026color=blue)](https://paypal.me/pranavpandeydev)\n\n---\n\n## License\n\n    Copyright 2022-2024 Pranav Pandey\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n[androidx]: https://developer.android.com/jetpack/androidx\n[androidx-migrate]: https://developer.android.com/jetpack/androidx/migrate\n[documentation]: https://pranavpandey.github.io/dynamic-key\n[sponsor]: https://github.com/sponsors/pranavpandey\n[dynamic-utils]: https://github.com/pranavpandey/dynamic-utils\n[dynamic-preferences]: https://github.com/pranavpandey/dynamic-preferences\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranavpandey%2Fdynamic-key","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpranavpandey%2Fdynamic-key","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranavpandey%2Fdynamic-key/lists"}