{"id":21046096,"url":"https://github.com/tlaster/kfilepicker","last_synced_at":"2025-05-15T18:31:05.010Z","repository":{"id":45289159,"uuid":"414947601","full_name":"Tlaster/KFilePicker","owner":"Tlaster","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-25T05:32:30.000Z","size":120,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-31T18:34:32.679Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tlaster.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":"2021-10-08T10:45:04.000Z","updated_at":"2023-01-13T04:12:10.000Z","dependencies_parsed_at":"2022-08-02T14:15:53.258Z","dependency_job_id":null,"html_url":"https://github.com/Tlaster/KFilePicker","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tlaster%2FKFilePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tlaster%2FKFilePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tlaster%2FKFilePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tlaster%2FKFilePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tlaster","download_url":"https://codeload.github.com/Tlaster/KFilePicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225368064,"owners_count":17463346,"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":[],"created_at":"2024-11-19T14:27:58.600Z","updated_at":"2024-11-19T14:27:59.594Z","avatar_url":"https://github.com/Tlaster.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KFilePicker\n[![](https://jitpack.io/v/Tlaster/KFilePicker.svg)](https://jitpack.io/#Tlaster/KFilePicker)  \nFile Picker for KMP project. Works for Android/JVM/Web.\n\n# Setup\nAdd Jitpack\n```\nmaven { url 'https://jitpack.io' }\n```\nAdd the dependency\n```\nimplementation(\"com.github.Tlaster.KFilePicker:KFilePicker:${latest_version}\")\n```\n## Android\nIn your Main Activity, place this in `onCreate`\n```kotlin\nFilePicker.init(activityResultRegistry, this, contentResolver)\n```\n## JVM\nPlace this under your `Window` composable\n```kotlin\nFilePicker.init(window)\n```\n## Web\nThere is no need to setup for web!\n\n\n# Usage\n\n```kotlin\nval files = FilePicker.pickFiles(\n    allowedExtensions = listOf(\".jpg\", \".png\"),\n    allowMultiple = true,\n)\n```\n\n\n# License\n```\nMIT License\n\nCopyright (c) 2021 Tlaster\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlaster%2Fkfilepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftlaster%2Fkfilepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlaster%2Fkfilepicker/lists"}