Skip to content

refactor: Maven group 与 Kotlin 根包改为 app.tinyui - #12

Merged
HarlonWang merged 3 commits into
mainfrom
feat/app-tinyui-group
Sep 20, 2026
Merged

HarlonWang merged 3 commits into
mainfrom
feat/app-tinyui-group

Conversation

@HarlonWang

@HarlonWang HarlonWang commented Sep 20, 2026 •

Copy link
Copy Markdown
Member

改了什么

仓库已进 tiny-ui 组织,坐标一并脱离个人命名空间:

  • Maven group wang.harlon → app.tinyui(反转域名 tinyui.app;Central 命名空间已按域名验证)
  • Kotlin 根包 wang.harlon.tinyui → app.tinyui,8 组目录 git mv 保留历史
  • sample 的 applicationId / iOS bundle id → app.tinyui.sample
  • 同步:gradle.properties GROUP、gradle/composite-substitutions 契约、pnpm schema 的 --package 与 generate.ts 硬编码 import、API dump、文档命名表加 app.tinyui 一行

quickjs-kmp 仍是 wang.harlon:quickjs-kmp(通用库,留个人命名空间)。wang.harlon:tinyui:0.1.0 留在 Central 不再更新,下一版从 0.2.0 起走新坐标,TrendingAI 届时换坐标。

验证

  • ./gradlew build 通过(compose 双端测试、sample APK / iOS framework)
  • pnpm build && pnpm test、pnpm schema:check 零 diff
  • publishToMavenLocal -PVERSION_NAME=0.2.0:~/.m2/app/tinyui/ 下 AAR、两个 iOS klib、pom/module 齐全,pom scm 指向 tiny-ui/tinyui,依赖 wang.harlon:quickjs-kmp:0.1.1

🤖 Generated with Claude Code

Summary by Sourcery

Adopt app.tinyui as the TinyUI Maven group and Kotlin namespace across the library, samples, tooling, and documentation.

Enhancements:

  • Move the TinyUI Maven artifact and Kotlin package namespace to app.tinyui while retaining the existing QuickJS dependency coordinates.
  • Update sample application identifiers and project-wide generated code, API metadata, build contracts, and references to use the new namespace.

Build:

  • Update Gradle publishing configuration and composite substitutions for the app.tinyui group.

Documentation:

  • Update README and project documentation to reference the new Maven and Kotlin coordinates.

Chores:

  • Preserve the existing wang.harlon:quickjs-kmp dependency coordinate while transitioning TinyUI to the new namespace.

Summary by CodeRabbit

  • Breaking Changes

    • Renamed the Kotlin package namespace from wang.harlon.tinyui to app.tinyui; update imports and references in consuming applications.
    • Changed Maven coordinates to app.tinyui:tinyui and app.tinyui:tinyui-updates.
  • Documentation

    • Updated installation instructions, dependency examples, update guidance, and Compose Multiplatform documentation with the new coordinates and namespace.
  • Samples

    • Updated Android and iOS sample identifiers and package references to use the app.tinyui namespace.

仓库已进 tiny-ui 组织,坐标也脱离个人命名空间:group `wang.harlon` → `app.tinyui`(反转域名
tinyui.app,Central 已按域名验证),Kotlin 包 `wang.harlon.tinyui` → `app.tinyui`,目录 git mv
保留历史。sample 的 applicationId / bundle id 跟着改成 `app.tinyui.sample`。

同步改:gradle.properties GROUP、composite-substitutions 契约、schema 生成脚本的 --package 与
generate.ts 硬编码 import、API dump、文档坐标。quickjs-kmp 仍是 `wang.harlon:quickjs-kmp`。
`wang.harlon:tinyui:0.1.0` 留在 Central 不再更新,下一版从 0.2.0 起走新坐标。

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@HarlonWang HarlonWang closed this Sep 20, 2026
@HarlonWang HarlonWang reopened this Sep 20, 2026

@codeseerbot codeseerbot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeSeer 审查

结论:批准

摘要

本次改动将 Maven group、Kotlin 根包及 sample 的应用标识统一迁移到 app.tinyui,并同步更新了生成器、复合构建契约、API dump 和相关文档。代码中的包路径与导入引用整体保持一致。主要风险在于 README 仍声明发布版本为 0.1.0,与新坐标从 0.2.0 开始发布的说明矛盾。

整个 PR 至 1417242 · gpt-5.6-terra

Comment thread README.md Outdated
@sourcery-ai

sourcery-ai Bot commented Sep 20, 2026

Copy link
Copy Markdown

Reviewer's Guide

本 PR 将 TinyUI 的 Maven group 和 Kotlin 根包从 wang.harlon 迁移至 app.tinyui,并通过目录移动、源码/API 更新、代码生成配置和 sample 标识同步完成发布与消费链路改造;通用的 quickjs-kmp 坐标保持不变。

File-Level Changes

Change Details Files
迁移 Maven 坐标、Kotlin 包名及 Android/iOS sample 标识,同时保留 quickjs-kmp 的原坐标。
  • 将发布 group 和 Compose Android namespace 改为 app.tinyui。
  • 通过目录移动和包声明/导入更新迁移 Compose 源码、测试及 sample 包名。
  • 将 sample 的 Android applicationId、namespace、Compose resources 包和 iOS bundle identifier 改为 app.tinyui.sample。
  • 保持 wang.harlon:quickjs-kmp 依赖不变。
gradle.properties
compose/build.gradle.kts
compose/src/androidHostTest/kotlin/app/tinyui/BundleSmokeTest.kt
compose/src/androidMain/kotlin/app/tinyui/Platform.android.kt
compose/src/androidMain/kotlin/app/tinyui/schema/Placeholder.android.kt
compose/src/commonMain/kotlin/app/tinyui/BuildManifest.kt
compose/src/commonMain/kotlin/app/tinyui/HostServices.kt
compose/src/commonMain/kotlin/app/tinyui/PageError.kt
compose/src/commonMain/kotlin/app/tinyui/PageHost.kt
compose/src/commonMain/kotlin/app/tinyui/SourceMaps.kt
compose/src/commonMain/kotlin/app/tinyui/TinyUI.kt
compose/src/commonMain/kotlin/app/tinyui/TinyUIPage.kt
compose/src/commonMain/kotlin/app/tinyui/components/Builtins.kt
compose/src/commonMain/kotlin/app/tinyui/components/generated/BuiltinSchemas.kt
compose/src/commonMain/kotlin/app/tinyui/node/NodeTree.kt
compose/src/commonMain/kotlin/app/tinyui/node/UINode.kt
compose/src/commonMain/kotlin/app/tinyui/schema/ComponentRegistry.kt
compose/src/commonMain/kotlin/app/tinyui/schema/ComponentSchema.kt
compose/src/commonMain/kotlin/app/tinyui/schema/NodeScope.kt
compose/src/commonMain/kotlin/app/tinyui/schema/Theme.kt
compose/src/commonTest/kotlin/app/tinyui/PageHostTest.kt
compose/src/commonTest/kotlin/app/tinyui/TinyUITest.kt
compose/src/commonTest/kotlin/app/tinyui/node/NodeTreeTest.kt
compose/src/commonTest/kotlin/app/tinyui/schema/ThemeTest.kt
compose/src/iosMain/kotlin/app/tinyui/Platform.ios.kt
compose/src/iosMain/kotlin/app/tinyui/schema/Placeholder.ios.kt
sample/androidApp/build.gradle.kts
sample/androidApp/src/main/kotlin/app/tinyui/sample/MainActivity.kt
sample/iosApp/Configuration/Config.xcconfig
sample/shared/build.gradle.kts
sample/shared/src/commonMain/kotlin/app/tinyui/sample/App.kt
sample/shared/src/iosMain/kotlin/app/tinyui/sample/MainViewController.kt
同步生成链路和构建契约,使新包名在代码生成、Composite Build 替换及 API 元数据中一致。
  • 更新 Gradle composite substitution 到新 group。
  • 更新 schema CLI 的 Kotlin 输出路径、包参数及硬编码 import。
  • 刷新 Kotlin API dump 以反映包名迁移。
gradle/composite-substitutions
package.json
packages/cli/src/schema/generate.ts
compose/api/compose.klib.api
更新项目文档和包使用说明,明确新坐标、命名约定及未来更新模块坐标。
  • 将 README、core README 和目录说明中的 Maven 依赖改为 app.tinyui:tinyui。
  • 在命名表中记录 app.tinyui 的域名验证背景及迁移时间。
  • 同步热更新 ADR 和计划文档中的未来 artifact 坐标。
README.md
packages/core/README.md
docs/README.md
docs/adr-006-hot-updates.md
docs/updates-plan.md
docs/updates.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Needs a human reviewer. Changing the Maven coordinate and every public Kotlin package breaks existing consumers, while changing the Android applicationId and iOS bundle identifier makes the released app appear as a different application and can strand existing installed data and upgrade paths. Reverting the source does not retract a published app or Maven artifact, nor automatically repair consumers that adopted the new identities.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

@codeseerbot codeseerbot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeSeer 审查

结论:批准

上轮意见:1 条,已处理 1 条,待处理 0 条

摘要

本次增量将 README 中示例版本从已发布于旧坐标的 0.1.0 改为裸版本示例 0.2.0,与新 Maven group 从 0.2.0 开始发布的说明一致。未发现新增问题。

增量 1417242..293a1ce · gpt-5.6-terra

@coderabbitai

coderabbitai Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: a69d0169-1fa7-4d2f-b8c7-97e1b58a80ef

📥 Commits

Reviewing files that changed from the base of the PR and between 293a1ce and c081756.

📒 Files selected for processing (1)
  • README.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • README.md

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The pull request renames the Kotlin namespace and Maven coordinates from wang.harlon to app.tinyui. It updates publishing configuration, schema generation, tests, documentation, and Android and iOS sample identifiers.

Changes

Namespace and artifact migration

Layer / File(s) Summary
Publishing coordinates and documentation
README.md, docs/..., gradle.properties, gradle/composite-substitutions, packages/core/README.md
Publishing coordinates, installation examples, and update artifact documentation use app.tinyui.
Compose namespace migration
compose/build.gradle.kts, compose/src/androidMain/..., compose/src/commonMain/..., compose/src/iosMain/...
Compose namespaces, package declarations, and internal imports use app.tinyui.
Generated schema namespace alignment
package.json, packages/cli/src/schema/generate.ts
Schema commands and generated Kotlin imports target the app.tinyui package and source path.
Tests and sample applications
compose/src/*Test/..., compose/src/androidHostTest/..., sample/...
Tests, sample packages, Android identifiers, iOS bundle identifiers, and resource packages use the new namespace.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Refactor

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 30 files. (1 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: migrating the Maven group and Kotlin root package to app.tinyui.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 30 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

@codeseerbot codeseerbot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeSeer 审查

结论:批准

摘要

本次增量仅调整 README 中对发布版本号格式的说明,明确 tag 不带 v 前缀。改动未涉及构建或运行时代码,未发现由此增量引入的实际问题。

增量 293a1ce..c081756 · gpt-5.6-terra

@HarlonWang
HarlonWang merged commit 30644bf into main Sep 20, 2026
4 checks passed
@HarlonWang
HarlonWang deleted the feat/app-tinyui-group branch September 20, 2026 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant