{"id":19867280,"url":"https://github.com/fython/kotlinagallery","last_synced_at":"2025-10-28T12:42:51.542Z","repository":{"id":79626235,"uuid":"113306500","full_name":"fython/KotlinaGallery","owner":"fython","description":"Build multiplatform(JVM/JS) ACG Gallery application with Kotlin","archived":false,"fork":false,"pushed_at":"2017-12-07T11:38:43.000Z","size":292,"stargazers_count":30,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-02T06:44:40.036Z","etag":null,"topics":["acg","android-application","gallery-viewer","javascript","jvm","kotlin","multi-platform"],"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/fython.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":"2017-12-06T11:14:33.000Z","updated_at":"2022-12-22T06:12:33.000Z","dependencies_parsed_at":"2023-03-08T00:00:35.137Z","dependency_job_id":null,"html_url":"https://github.com/fython/KotlinaGallery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fython/KotlinaGallery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fython%2FKotlinaGallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fython%2FKotlinaGallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fython%2FKotlinaGallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fython%2FKotlinaGallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fython","download_url":"https://codeload.github.com/fython/KotlinaGallery/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fython%2FKotlinaGallery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281441024,"owners_count":26501758,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["acg","android-application","gallery-viewer","javascript","jvm","kotlin","multi-platform"],"created_at":"2024-11-12T15:28:55.689Z","updated_at":"2025-10-28T12:42:51.537Z","avatar_url":"https://github.com/fython.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"KotlinaGallery\n====\n\n[English translation (Not ready yet)]()\n\n\u003e Kotlin 在 1.2.0 中正式推出了跨平台共享代码（JVM/JS），能让开发者构建一个公共模块后同时投入到\n\u003e 前端、后端以及 Android 应用开发中（甚至可以借助 Kotlin Native 在 iOS 开发上使用）。\n\n## 项目介绍\n\n本项目使用 Kotlin 1.2 语言制作一个简单的 ACG 壁纸图库，其公共代码部分可由多个平台共用。\n\n数据拉取自 [Konachan API](https://konachan.net/help/api)，该网站可能存在 NSFW 内容，建议使用时仅显示 `rating:s` 标签的图片。\n\nAndroid 版已完成简单的最新壁纸列表演示，JS 模块尚未投入使用。\n\n## 模块解释\n\n![Multiplatform Project](/doc/MPP.png)\n\n本项目公用部分在 `konachan-common` 模块中，其中使用了 kotlinx.serialization 和 kotlin.test 这两个支持跨平台的库~~（毕竟是官方的）~~。\n\n### `konachan-common` module\n\n声明 API 可用方法接口（`expect`）；定义返回的数据模型。\n\n### `konachan-common-js` module\n\n依赖 `konachan-common` 模块，完成 API 可用方法在 JavaScript 平台下的实现（`actual`）\n\n### `konachan-common-jvm` module\n\n依赖 `konachan-common` 模块，完成 API 可用方法在 JVM 虚拟机平台下的实现（`actual`）\n\n### `konachan-android` module\n\n依赖 `konachan-common-jvm` 模块，在 Android 平台下调用 API 实现 ACG 壁纸图库应用程序。\n\n运用 Data Binding + MVVM 模式构建应用，界面风格贴近 Material Design 设计。\n\n## 编译环境\n\n- Android Studio 3.0+ / IntelliJ IDEA 2017.3+\n- Kotlin 1.2.0+\n- Gradle 4.3\n- JDK 1.8+\n\n## 参考\n\n- Kotlin 1.2 正式版新闻：[Kotlin 1.2 is Released](https://blog.jetbrains.com/kotlin/2017/11/kotlin-1-2-released/)\n- KotlinConf 官方项目演示：[JetBrains/kotlinconf-app](https://github.com/JetBrains/kotlinconf-app)\n- Kotlin 跨平台项目参考：[Multiplatform Projects](https://kotlinlang.org/docs/reference/multiplatform.html)\n\n## 联系作者\n\nTelegram: [@fython](https://t.me/fython)\n\nEmail: fythonx@gmail.com\n\n我的 Android 开发交流群：[Telegram](https://t.me/joinchat/BmgWUg7jjXlOCdZV-r6ivw)\n\n捐赠支持（支付宝）：fythonx@gmail.com\n\n## 协议\n\n```\nMIT License\n\nCopyright (c) 2017 Fung Gwo (fython)\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%2Ffython%2Fkotlinagallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffython%2Fkotlinagallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffython%2Fkotlinagallery/lists"}