{"id":13658213,"url":"https://github.com/hi-manshu/Pluck","last_synced_at":"2025-04-24T08:31:43.222Z","repository":{"id":39254211,"uuid":"453714024","full_name":"hi-manshu/Pluck","owner":"hi-manshu","description":"Pluck, a library that helps you to pick image  via Gallery/Camera built using Compose","archived":false,"fork":false,"pushed_at":"2024-08-23T00:00:08.000Z","size":6348,"stargazers_count":370,"open_issues_count":18,"forks_count":23,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-08-23T01:13:33.976Z","etag":null,"topics":["android","android-lib","android-library","android-libs","compose","image-picker","image-picker-android","image-picker-library","jetpack-compose","kotlin","kotlin-android","kotlin-library","sdk","sdk-android"],"latest_commit_sha":null,"homepage":"https://www.himanshoe.com","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/hi-manshu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-01-30T15:10:57.000Z","updated_at":"2024-08-18T14:01:23.000Z","dependencies_parsed_at":"2022-07-14T08:49:31.445Z","dependency_job_id":"5d2afe09-4a90-49b1-b34a-da50b10ca693","html_url":"https://github.com/hi-manshu/Pluck","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hi-manshu%2FPluck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hi-manshu%2FPluck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hi-manshu%2FPluck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hi-manshu%2FPluck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hi-manshu","download_url":"https://codeload.github.com/hi-manshu/Pluck/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223947261,"owners_count":17230000,"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","android-lib","android-library","android-libs","compose","image-picker","image-picker-android","image-picker-library","jetpack-compose","kotlin","kotlin-android","kotlin-library","sdk","sdk-android"],"created_at":"2024-08-02T05:00:57.633Z","updated_at":"2024-11-10T11:31:26.513Z","avatar_url":"https://github.com/hi-manshu.png","language":"Kotlin","funding_links":[],"categories":["Multiplatform"],"sub_categories":["Multiplatform libraries"],"readme":"### Pluck - The image-picker library for Compose\n\n![Pluck](art/pluck.jpg)\n\nThis is an image-picker for your jetpack compose project. You can select from Gallery/Camera. This uses Material you and will be getting support for it in future as well.\n\n_Made with ❤️ for Android Developers by Himanshu_\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.himanshoe/pluck)](https://search.maven.org/artifact/com.himanshoe/pluck)\n[![Github Followers](https://img.shields.io/github/followers/hi-manshu?label=Follow\u0026style=social)](https://github.com/hi-manshu)\n[![Twitter Follow](https://img.shields.io/twitter/follow/hi_man_shoe?label=Follow\u0026style=social)](https://twitter.com/hi_man_shoe)\n\n## Implementation\n\n#### Step: 01\n\nAdd the specific permission in `AndroidManifest.xml` file\n\n```xml\n\n\u003cuses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" /\u003e\n\n\u003cuses-permission android:name=\"android.permission.CAMERA\" /\u003e\n\n```\n\n#### Step: 02\n\nIn `build.gradle` of app module, include the following dependency\n\n```gradle\ndependencies {\n  implementation(\"com.himanshoe:pluck:1.0.0-RC2\")\n}\n```\n\n## Usage\n\n#### 01\n\nNow, to start using Pluck, use the composable `Pluck` like,\n\n```kotlin\nPluck(onPhotoSelected = {\n    // List of PluckImage when selecting from Gallery/Camera. When checking with Camera\n    // It returns only one item in list\n})\n```\n\n#### 02\n\nNow, if you want `Pluck` to handle the Permission for you as well. Use it like,\n\n```kotlin\nPermission(\n    permissions = listOf(\n        Manifest.permission.CAMERA,\n        Manifest.permission.READ_EXTERNAL_STORAGE\n    ),\n    goToAppSettings = {\n        // Go to App Settings\n    }\n) {\n    Pluck(onPhotoSelected = {\n        // List of PluckImage when selecting from Gallery/Camera. When checking with Camera\n        // It returns only one item in list\n    })\n}\n```\n\n#### 03\n\nIf you want to configure do you want to select single image or multiple image from gallery you need\nto edit the `PluckConfiguration` like,\n\n```kotlin\n    Pluck(\n        pluckConfiguration = PluckConfiguration(multipleImagesAllowed = true),\n        onPhotoSelected = { }\n    )\n```\n\n### Drop a ⭐ to keep me motivated to keep working on Open-Source. Updates coming Soon!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhi-manshu%2FPluck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhi-manshu%2FPluck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhi-manshu%2FPluck/lists"}