{"id":13536736,"url":"https://github.com/05nelsonm/component-parcelize","last_synced_at":"2025-04-13T14:53:41.572Z","repository":{"id":63251279,"uuid":"515540047","full_name":"05nelsonm/component-parcelize","owner":"05nelsonm","description":"Kotlin Multiplatform support for using android.os.Parcelable from common code","archived":false,"fork":false,"pushed_at":"2023-01-17T11:10:35.000Z","size":192,"stargazers_count":4,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T05:51:12.492Z","etag":null,"topics":["android","android-lib","android-library","android-libs","kotlin","kotlin-android","kotlin-library","kotlin-multiplatform","kotlin-multiplatform-library","kotlin-multiplatform-mobile"],"latest_commit_sha":null,"homepage":"https://kotlin-components.matthewnelson.io","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/05nelsonm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-07-19T10:35:26.000Z","updated_at":"2025-01-04T07:56:18.000Z","dependencies_parsed_at":"2023-02-10T09:16:01.995Z","dependency_job_id":null,"html_url":"https://github.com/05nelsonm/component-parcelize","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/05nelsonm%2Fcomponent-parcelize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/05nelsonm%2Fcomponent-parcelize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/05nelsonm%2Fcomponent-parcelize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/05nelsonm%2Fcomponent-parcelize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/05nelsonm","download_url":"https://codeload.github.com/05nelsonm/component-parcelize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248732512,"owners_count":21152851,"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","kotlin","kotlin-android","kotlin-library","kotlin-multiplatform","kotlin-multiplatform-library","kotlin-multiplatform-mobile"],"created_at":"2024-08-01T09:00:48.340Z","updated_at":"2025-04-13T14:53:41.550Z","avatar_url":"https://github.com/05nelsonm.png","language":"Kotlin","funding_links":[],"categories":["Libraries"],"sub_categories":["Serializer"],"readme":"# component-parcelize\n[![badge-license]][url-license]\n[![badge-latest-release]][url-latest-release]\n\n[![badge-kotlin]][url-kotlin]\n\n![badge-platform-android]\n![badge-platform-jvm]\n![badge-platform-js]\n![badge-platform-js-node]\n![badge-platform-linux]\n![badge-platform-macos]\n![badge-platform-ios]\n![badge-platform-tvos]\n![badge-platform-watchos]\n![badge-platform-wasm]\n![badge-platform-windows]\n![badge-support-android-native]\n![badge-support-apple-silicon]\n![badge-support-js-ir]\n![badge-support-linux-arm]\n![badge-support-linux-mips]\n\nKotlin Multiplatform support for using `android.os.Parcelable` from common code.\n\nA full list of `kotlin-components` projects can be found [HERE](https://kotlin-components.matthewnelson.io)\n\n### Get Started\n\n\u003c!-- TAG_VERSION --\u003e\n\n - Add dependency to `commonMain`\n   ```kotlin\n   // build.gradle.kts\n   dependencies {\n       val vParcelize = \"0.1.2\"\n       // If usage is a part of your public api, use `api`; otherwise\n       // use `implementation` for internal-only usage.\n       api(\"io.matthewnelson.kotlin-components:parcelize:$vParcelize\")\n   }\n   ```\n\n   ```groovy\n   // build.gradle\n   dependencies {\n       def vParcelize = \"0.1.1\"\n       // If usage is a part of your public api, use `api`; otherwise\n       // use `implementation` for internal-only usage.\n       api \"io.matthewnelson.kotlin-components:parcelize:$vParcelize\"\n   }\n   ```\n\n - Add the `kotlin-parcelize` plugin to your project\n   ```kotlin\n   plugins {\n       id(\"kotlin-parcelize\")\n   }\n   ```\n\n### Usage\n\n - In `commonMain`\n   ```kotlin\n   import io.matthewnelson.component.parcelize.Parcelable\n   import io.matthewnelson.component.parcelize.Parcelize\n\n   @Parcelize\n   data class MyData(val value: String): Parcelable\n   ```\n - Usable from `androidMain`\n   ```kotlin\n   // androidMain\n   val intent = Intent()\n   intent.putExtra(\"MY_DATA\", MyData(\"Parcelable commonMain class\"))\n   \n   val myData = intent.getParcelableExtra\u003cMyData\u003e(\"MY_DATA\")\n   println(myData.toString())\n   ```\n\n - See the [sample-data][url-sample-data] and [sample-app][url-sample-app] examples\n\n### Kotlin Version Compatibility\n\n\u003c!-- TAG_VERSION --\u003e\n\n| parcelize | kotlin |\n|:---------:|:------:|\n|   0.1.2   | 1.8.0  |\n|   0.1.1   | 1.7.20 |\n|   0.1.0   | 1.6.21 |\n\n### Git\n\nThis project utilizes git submodules. You will need to initialize them when\ncloning the repository via:\n\n```bash\n$ git clone --recursive https://github.com/05nelsonm/component-parcelize.git\n```\n\nIf you've already cloned the repository, run:\n```bash\n$ git checkout master\n$ git pull\n$ git submodule update --init\n```\n\nIn order to keep submodules updated when pulling the latest code, run:\n```bash\n$ git pull --recurse-submodules\n```\n\n\u003c!-- TAG_VERSION --\u003e\n[badge-latest-release]: https://img.shields.io/badge/latest--release-0.1.2-blue.svg?style=flat\n[badge-license]: https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat\n\n\u003c!-- TAG_DEPENDENCIES --\u003e\n[badge-kotlin]: https://img.shields.io/badge/kotlin-1.8.0-blue.svg?logo=kotlin\n\n\u003c!-- TAG_PLATFORMS --\u003e\n[badge-platform-android]: http://img.shields.io/badge/-android-6EDB8D.svg?style=flat\n[badge-platform-jvm]: http://img.shields.io/badge/-jvm-DB413D.svg?style=flat\n[badge-platform-js]: http://img.shields.io/badge/-js-F8DB5D.svg?style=flat\n[badge-platform-js-node]: https://img.shields.io/badge/-nodejs-68a063.svg?style=flat\n[badge-platform-linux]: http://img.shields.io/badge/-linux-2D3F6C.svg?style=flat\n[badge-platform-macos]: http://img.shields.io/badge/-macos-111111.svg?style=flat\n[badge-platform-ios]: http://img.shields.io/badge/-ios-CDCDCD.svg?style=flat\n[badge-platform-tvos]: http://img.shields.io/badge/-tvos-808080.svg?style=flat\n[badge-platform-watchos]: http://img.shields.io/badge/-watchos-C0C0C0.svg?style=flat\n[badge-platform-wasm]: https://img.shields.io/badge/-wasm-624FE8.svg?style=flat\n[badge-platform-windows]: http://img.shields.io/badge/-windows-4D76CD.svg?style=flat\n[badge-support-android-native]: http://img.shields.io/badge/support-[AndroidNative]-6EDB8D.svg?style=flat\n[badge-support-apple-silicon]: http://img.shields.io/badge/support-[AppleSilicon]-43BBFF.svg?style=flat\n[badge-support-js-ir]: https://img.shields.io/badge/support-[js--IR]-AAC4E0.svg?style=flat\n[badge-support-linux-arm]: http://img.shields.io/badge/support-[LinuxArm]-2D3F6C.svg?style=flat\n[badge-support-linux-mips]: http://img.shields.io/badge/support-[LinuxMIPS]-2D3F6C.svg?style=flat\n\n[url-latest-release]: https://github.com/05nelsonm/component-parcelize/releases/latest\n[url-license]: https://www.apache.org/licenses/LICENSE-2.0.txt\n[url-kotlin]: https://kotlinlang.org\n[url-sample-app]: https://github.com/05nelsonm/component-parcelize/tree/master/sample/app\n[url-sample-data]: https://github.com/05nelsonm/component-parcelize/tree/master/sample/sample-data\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F05nelsonm%2Fcomponent-parcelize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F05nelsonm%2Fcomponent-parcelize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F05nelsonm%2Fcomponent-parcelize/lists"}