{"id":48356716,"url":"https://github.com/decentralised-dataexchange/presentation-exchange-sdk-android","last_synced_at":"2026-04-05T11:33:33.787Z","repository":{"id":226733283,"uuid":"768723311","full_name":"decentralised-dataexchange/presentation-exchange-sdk-android","owner":"decentralised-dataexchange","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-05T13:52:43.000Z","size":101,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-05T14:48:31.629Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/decentralised-dataexchange.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-07T16:04:08.000Z","updated_at":"2024-11-05T13:52:48.000Z","dependencies_parsed_at":"2024-03-21T18:47:32.606Z","dependency_job_id":"e232e0e6-f936-47b7-a225-44c65eb38e91","html_url":"https://github.com/decentralised-dataexchange/presentation-exchange-sdk-android","commit_stats":null,"previous_names":["decentralised-dataexchange/presentation-exchange-sdk-android"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/decentralised-dataexchange/presentation-exchange-sdk-android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decentralised-dataexchange%2Fpresentation-exchange-sdk-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decentralised-dataexchange%2Fpresentation-exchange-sdk-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decentralised-dataexchange%2Fpresentation-exchange-sdk-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decentralised-dataexchange%2Fpresentation-exchange-sdk-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/decentralised-dataexchange","download_url":"https://codeload.github.com/decentralised-dataexchange/presentation-exchange-sdk-android/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decentralised-dataexchange%2Fpresentation-exchange-sdk-android/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31434624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T08:13:15.228Z","status":"ssl_error","status_checked_at":"2026-04-05T08:13:11.839Z","response_time":75,"last_error":"SSL_read: 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":[],"created_at":"2026-04-05T11:33:31.426Z","updated_at":"2026-04-05T11:33:33.778Z","avatar_url":"https://github.com/decentralised-dataexchange.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n    Presentation Exchange SDK (Android)\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"/../../commits/\" title=\"Last Commit\"\u003e\u003cimg src=\"https://img.shields.io/github/last-commit/decentralised-dataexchange/presentation-exchange-sdk-android?style=flat\"\u003e\u003c/a\u003e\n    \u003ca href=\"/../../issues\" title=\"Open Issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/decentralised-dataexchange/presentation-exchange-sdk-android?style=flat\"\u003e\u003c/a\u003e\n    \u003ca href=\"./LICENSE\" title=\"License\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-Apache%202.0-yellowgreen?style=flat\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#about\"\u003eAbout\u003c/a\u003e •\n  \u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e •\n  \u003ca href=\"#licensing\"\u003eLicensing\u003c/a\u003e\n\u003c/p\u003e\n\n\n## About\n\nThis repository hosts source code for presentation exchange SDK.\n\n## Usage\n\n1. Add the JitPack repository to your build file\n\n```kotlin\ndependencyResolutionManagement {\n    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n    repositories {\n        mavenCentral()\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n2. Add the dependency\n\n```kotlin\nimplementation 'com.github.decentralised-dataexchange:presentation-exchange-sdk-android:\u003ctag\u003e'\n```\n\nNote: In order to fix `slf4j` `java.lang.NullPointerException` found in versions \u003e= 2.0.10, do override the transitive dependency by specifying the below:\n\n```kotlin\nimplementation('org.slf4j:slf4j-api') {\n    version {\n        strictly '2.0.9'\n    }\n}\n```\n\n3. Example usage of the SDK:\n\n```kotlin\nimport com.github.decentraliseddataexchange.presentationexchangesdk.PresentationExchange\nimport com.github.decentraliseddataexchange.presentationexchangesdk.models.MatchedCredential\nimport com.google.gson.Gson\n\n\nfun main() {\n    val pex = PresentationExchange()\n    val inputDescriptor =\n        \"\"\"{\"id\":\"9a18d1b5-13ac-4fbc-8c12-d5916740ce1d\",\"constraints\":{\"fields\":[{\"path\":[\"${'$'}.address.city\"]}]}}\"\"\"\n    val credentialsList = listOf(\n        \"\"\"{\"type\":[\"Passport\"],\"name\":\"John\",\"dob\":\"14-Mar-70\",\"address\":{\"city\":\"Stockholm\",\"state\":\"Stockholm\"}}\"\"\",\n    )\n    val matches: List\u003cMatchedCredential\u003e = pex.matchCredentials(inputDescriptor, credentialsList)\n    println(Gson().toJson(matches))\n}\n```\n\nWill output:\n\n```json\n[\n  {\n    \"index\": 0,\n    \"fields\": [\n      {\n        \"index\": 0,\n        \"path\": {\n          \"path\": \"$.address.city\",\n          \"index\": 0,\n          \"value\": \"Stockholm\"\n        }\n      }\n    ]\n  }\n]\n```\n\n## Contributing\n\nFeel free to improve the plugin and send us a pull request. If you find any problems, please create an issue in this repo.\n\n## Licensing\nCopyright (c) 2023-25 LCubed AB (iGrant.io), Sweden\n\nLicensed under the Apache 2.0 License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License.\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the LICENSE for the specific language governing permissions and limitations under the License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecentralised-dataexchange%2Fpresentation-exchange-sdk-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdecentralised-dataexchange%2Fpresentation-exchange-sdk-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecentralised-dataexchange%2Fpresentation-exchange-sdk-android/lists"}