@jordond/kit 0.2.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -0
- package/dist/{_verb-e37jzjj4.js → _verb-rhswhzxn.js} +6 -5
- package/dist/{android-z67qp1hh.js → android-d6zs9dyp.js} +3 -3
- package/dist/{build-ecy4px96.js → build-fmx52dv7.js} +5 -5
- package/dist/{builtins-gvmrdxdv.js → builtins-1dzch5rr.js} +1 -1
- package/dist/{bump-nyefmpxs.js → bump-w1feqf2k.js} +38 -5
- package/dist/{certs-fqz6xsb6.js → certs-yp73br5h.js} +4 -4
- package/dist/{check-z9ps5ves.js → check-2kvdmdcy.js} +4 -4
- package/dist/{check-4k3y5jmf.js → check-7hgf728j.js} +2 -2
- package/dist/{cli-qakdt5nm.js → cli-2nw36t7w.js} +21 -1
- package/dist/{cli-5xasa3gy.js → cli-6z4axmde.js} +1 -1
- package/dist/cli-78x6rdyd.js +202 -0
- package/dist/{cli-f7y7gmvf.js → cli-mdy0ze8j.js} +2 -2
- package/dist/{cli-vt6582gp.js → cli-tafnwn5a.js} +4 -3
- package/dist/{cli-s3x1bb78.js → cli-v1tt2mzx.js} +2 -2
- package/dist/{cli-r6g14qrk.js → cli-vkam43jd.js} +43 -1
- package/dist/{cli-8197y4dp.js → cli-vpzh9t0w.js} +1 -1
- package/dist/{cli-51ha0t4k.js → cli-wg35kt5d.js} +1 -1
- package/dist/{cli-np6a4hbd.js → cli-wxv8j9e1.js} +36 -30
- package/dist/{cli-cc13vv98.js → cli-ya6cd8y5.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/{cloudflare-0yz3f9tx.js → cloudflare-2t4cqqb8.js} +2 -2
- package/dist/{command-0x47mfj2.js → command-1ydsfy5t.js} +1 -1
- package/dist/commands/build.d.ts +1 -1
- package/dist/commands/doctor.d.ts +22 -1
- package/dist/commands/init.d.ts +3 -2
- package/dist/commands/kotlin.d.ts +2 -0
- package/dist/{completion-bcwejygc.js → completion-gp0a1820.js} +1 -1
- package/dist/config/schema.d.ts +7 -1
- package/dist/{config-wbczmt18.js → config-tbdx7xmd.js} +1 -1
- package/dist/{create-xvy4a8r3.js → create-a0wwtv51.js} +4 -4
- package/dist/{creds-bhdyb0js.js → creds-2qk71mdx.js} +2 -2
- package/dist/{deploy-187e49kx.js → deploy-zw91q9dz.js} +4 -4
- package/dist/{deps-adbpkp0w.js → deps-mt460msd.js} +2 -2
- package/dist/{dev-echj7d7q.js → dev-hh6m90wf.js} +5 -5
- package/dist/{doctor-g6rdwqff.js → doctor-dbpnyxca.js} +146 -6
- package/dist/{exec-cj5bsewf.js → exec-y71nap3e.js} +4 -4
- package/dist/{fastlane-2kjyfqjg.js → fastlane-gjmhdgpc.js} +2 -2
- package/dist/{fastlane-e3gsr42q.js → fastlane-r8ewmtsp.js} +5 -5
- package/dist/{format-zmc1d1v1.js → format-7nafzp1w.js} +2 -2
- package/dist/{github-xhhk1bpk.js → github-wd1fyk08.js} +4 -4
- package/dist/{gradle-8pvtwwk9.js → gradle-rgyhk380.js} +3 -3
- package/dist/index.js +3 -3
- package/dist/{init-ptkwtm58.js → init-cb5hz9aa.js} +23 -4
- package/dist/{init-1mxh98j8.js → init-dnknbjrv.js} +3 -3
- package/dist/{ios-tty9dmnj.js → ios-x4rdpb0s.js} +3 -3
- package/dist/kotlin-pc1dk6d8.js +31 -0
- package/dist/lib/fastlane.d.ts +4 -1
- package/dist/lib/release/mobile.d.ts +22 -3
- package/dist/lib/release/version.d.ts +12 -0
- package/dist/lib/targets.d.ts +3 -1
- package/dist/lib/toolchain.d.ts +59 -0
- package/dist/{lint-s767b0f2.js → lint-2erx5vre.js} +2 -2
- package/dist/{list-v4xvb7g3.js → list-7z9vyxrc.js} +4 -4
- package/dist/{load-dxhacsn4.js → load-75n91nk4.js} +1 -1
- package/dist/{main-6nkvk3xr.js → main-2q4ys8qw.js} +16 -5
- package/dist/{migrate-bw99wp7v.js → migrate-97yp0r9r.js} +4 -4
- package/dist/{mobile-wjqzvzje.js → mobile-vjv11q72.js} +104 -33
- package/dist/{push-4hw2sbed.js → push-36vdpwex.js} +5 -5
- package/dist/{push-1gq40vjj.js → push-g5ade61n.js} +3 -3
- package/dist/{service-b282yyn5.js → service-4cjx0epd.js} +5 -5
- package/dist/{show-k7bt5142.js → show-y420r49k.js} +3 -3
- package/dist/{steps-9knqpszw.js → steps-705j58z1.js} +2 -2
- package/dist/{sync-xmjd4804.js → sync-mfzsmag6.js} +3 -3
- package/dist/{targets-bywmzbtj.js → targets-d9e5naq8.js} +5 -2
- package/dist/{test-9c5r8bgr.js → test-vwreks0d.js} +2 -2
- package/dist/toolchain-wd7hh812.js +41 -0
- package/dist/{typecheck-8snw4yza.js → typecheck-8p2ng33a.js} +2 -2
- package/dist/{version-0gsr8qbz.js → version-mnds3q7r.js} +7 -2
- package/dist/{wrangler-5fchmhwc.js → wrangler-rbrw8ygc.js} +3 -3
- package/dist/{xcode-4ede7p2b.js → xcode-njfvzhk3.js} +2 -2
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/{0.2.1/io.github.jordond.kit.android.application.gradle.plugin-0.2.1.pom → 0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.4.0/io.github.jordond.kit.android.application.gradle.plugin-0.4.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/{0.2.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.1.pom → 0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.4.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.4.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/{0.2.1/io.github.jordond.kit.compose.gradle.plugin-0.2.1.pom → 0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.4.0/io.github.jordond.kit.compose.gradle.plugin-0.4.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/{0.2.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.1.pom → 0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.4.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.4.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.2.1/kit-plugins-0.2.1.module → 0.4.0/kit-plugins-0.4.0.module} +5 -5
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.module.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.module.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.module.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.module.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.2.1/kit-plugins-0.2.1.pom → 0.4.0/kit-plugins-0.4.0.pom} +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.4.0/kit-plugins-0.4.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/{0.2.1/kit-settings-0.2.1.module → 0.4.0/kit-settings-0.4.0.module} +5 -5
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.module.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.module.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.module.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.module.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/{0.2.1/kit-settings-0.2.1.pom → 0.4.0/kit-settings-0.4.0.pom} +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.4.0/kit-settings-0.4.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/{0.2.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.1.pom → 0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.4.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.4.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/{0.2.1/io.github.jordond.kit.lint.gradle.plugin-0.2.1.pom → 0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.4.0/io.github.jordond.kit.lint.gradle.plugin-0.4.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/{0.2.1/io.github.jordond.kit.release.gradle.plugin-0.2.1.pom → 0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.4.0/io.github.jordond.kit.release.gradle.plugin-0.4.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/{0.2.1/io.github.jordond.kit.settings.gradle.plugin-0.2.1.pom → 0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.4.0/io.github.jordond.kit.settings.gradle.plugin-0.4.0.pom.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml +4 -4
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.md5 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha1 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha256 +1 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/maven-metadata.xml.sha512 +1 -1
- package/package.json +1 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.1/io.github.jordond.kit.android.application.gradle.plugin-0.2.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.1/io.github.jordond.kit.android.application.gradle.plugin-0.2.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.1/io.github.jordond.kit.android.application.gradle.plugin-0.2.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.2.1/io.github.jordond.kit.android.application.gradle.plugin-0.2.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.2.1/io.github.jordond.kit.android.baseline.gradle.plugin-0.2.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.1/io.github.jordond.kit.compose.gradle.plugin-0.2.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.1/io.github.jordond.kit.compose.gradle.plugin-0.2.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.1/io.github.jordond.kit.compose.gradle.plugin-0.2.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.2.1/io.github.jordond.kit.compose.gradle.plugin-0.2.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.2.1/io.github.jordond.kit.jvm.app.gradle.plugin-0.2.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.module.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.module.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.module.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.module.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.2.1/kit-plugins-0.2.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.module.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.module.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.module.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.module.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.2.1/kit-settings-0.2.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.2.1/io.github.jordond.kit.kmp.library.gradle.plugin-0.2.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.1/io.github.jordond.kit.lint.gradle.plugin-0.2.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.1/io.github.jordond.kit.lint.gradle.plugin-0.2.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.1/io.github.jordond.kit.lint.gradle.plugin-0.2.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.2.1/io.github.jordond.kit.lint.gradle.plugin-0.2.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.1/io.github.jordond.kit.release.gradle.plugin-0.2.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.1/io.github.jordond.kit.release.gradle.plugin-0.2.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.1/io.github.jordond.kit.release.gradle.plugin-0.2.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.2.1/io.github.jordond.kit.release.gradle.plugin-0.2.1.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.1/io.github.jordond.kit.settings.gradle.plugin-0.2.1.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.1/io.github.jordond.kit.settings.gradle.plugin-0.2.1.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.1/io.github.jordond.kit.settings.gradle.plugin-0.2.1.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.2.1/io.github.jordond.kit.settings.gradle.plugin-0.2.1.pom.sha512 +0 -1
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.2.1/kit-plugins-0.2.1.jar → 0.4.0/kit-plugins-0.4.0.jar} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.2.1/kit-plugins-0.2.1.jar.md5 → 0.4.0/kit-plugins-0.4.0.jar.md5} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.2.1/kit-plugins-0.2.1.jar.sha1 → 0.4.0/kit-plugins-0.4.0.jar.sha1} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.2.1/kit-plugins-0.2.1.jar.sha256 → 0.4.0/kit-plugins-0.4.0.jar.sha256} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.2.1/kit-plugins-0.2.1.jar.sha512 → 0.4.0/kit-plugins-0.4.0.jar.sha512} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.2.1/kit-settings-0.2.1.jar → 0.4.0/kit-settings-0.4.0.jar} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.2.1/kit-settings-0.2.1.jar.md5 → 0.4.0/kit-settings-0.4.0.jar.md5} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.2.1/kit-settings-0.2.1.jar.sha1 → 0.4.0/kit-settings-0.4.0.jar.sha1} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.2.1/kit-settings-0.2.1.jar.sha256 → 0.4.0/kit-settings-0.4.0.jar.sha256} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.2.1/kit-settings-0.2.1.jar.sha512 → 0.4.0/kit-settings-0.4.0.jar.sha512} +0 -0
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
defineCommand
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-6z4axmde.js";
|
|
5
|
+
import {
|
|
6
|
+
wrapperVersion
|
|
7
|
+
} from "./cli-78x6rdyd.js";
|
|
5
8
|
import"./cli-7wvrehng.js";
|
|
6
9
|
import"./cli-540nme4e.js";
|
|
7
10
|
import"./cli-5wasc5mr.js";
|
|
@@ -123,10 +126,19 @@ function versionMatches(spec, actual) {
|
|
|
123
126
|
const a = actual.split(/[.+_-]/);
|
|
124
127
|
return want.split(".").every((p, i) => a[i] === p);
|
|
125
128
|
}
|
|
126
|
-
function checkMise(tools, detected) {
|
|
129
|
+
function checkMise(tools, detected, installed = true) {
|
|
127
130
|
const label = "mise.toml versions";
|
|
128
131
|
if (!tools)
|
|
129
132
|
return { id: "mise", label, status: "skip", detail: "no mise.toml" };
|
|
133
|
+
if (!installed) {
|
|
134
|
+
return {
|
|
135
|
+
id: "mise",
|
|
136
|
+
label,
|
|
137
|
+
status: "warn",
|
|
138
|
+
detail: "mise not installed",
|
|
139
|
+
hint: "Install mise (`brew install mise`), then `mise install` for the pinned tool versions"
|
|
140
|
+
};
|
|
141
|
+
}
|
|
130
142
|
const drift = [];
|
|
131
143
|
for (const [tool, spec] of Object.entries(tools)) {
|
|
132
144
|
if (!(tool in detected))
|
|
@@ -141,6 +153,42 @@ function checkMise(tools, detected) {
|
|
|
141
153
|
return { id: "mise", label, status: "warn", detail: drift.join(", "), hint: "Run `mise install`" };
|
|
142
154
|
return { id: "mise", label, status: "ok", detail: Object.keys(tools).join(", ") };
|
|
143
155
|
}
|
|
156
|
+
function checkKtlint(probe, required) {
|
|
157
|
+
const hint = "Install ktlint (`mise install` with ktlint in mise.toml, or `brew install ktlint`)";
|
|
158
|
+
if (probe?.code !== 0)
|
|
159
|
+
return missing("ktlint", "ktlint", required, hint);
|
|
160
|
+
return { id: "ktlint", label: "ktlint", status: "ok", detail: parseKtlintVersion(probe.output) ?? "found" };
|
|
161
|
+
}
|
|
162
|
+
function parseKtlintVersion(output) {
|
|
163
|
+
return output.match(/(\d+\.\d+(?:\.\d+)?)/)?.[1];
|
|
164
|
+
}
|
|
165
|
+
var LEFTHOOK_FILES = ["lefthook.yml", "lefthook.yaml", ".lefthook.yml", ".lefthook.yaml"];
|
|
166
|
+
function checkLefthook(file, installed, hook, ci) {
|
|
167
|
+
const label = "lefthook";
|
|
168
|
+
if (!file)
|
|
169
|
+
return { id: "lefthook", label, status: "skip", detail: "no lefthook.yml" };
|
|
170
|
+
if (ci)
|
|
171
|
+
return { id: "lefthook", label, status: "skip", detail: "CI" };
|
|
172
|
+
if (!installed) {
|
|
173
|
+
return {
|
|
174
|
+
id: "lefthook",
|
|
175
|
+
label,
|
|
176
|
+
status: "warn",
|
|
177
|
+
detail: "lefthook not installed",
|
|
178
|
+
hint: "Install it (`brew install lefthook`), then run `lefthook install`"
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
if (!hook || !/lefthook/.test(hook)) {
|
|
182
|
+
return {
|
|
183
|
+
id: "lefthook",
|
|
184
|
+
label,
|
|
185
|
+
status: "warn",
|
|
186
|
+
detail: `${file} hooks not installed in this clone`,
|
|
187
|
+
hint: "Run `lefthook install`"
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
return { id: "lefthook", label, status: "ok", detail: "pre-commit hook installed" };
|
|
191
|
+
}
|
|
144
192
|
function checkUnreadable(id, label, file, error) {
|
|
145
193
|
const why = error instanceof Error ? error.message.split(`
|
|
146
194
|
`)[0] : String(error);
|
|
@@ -193,6 +241,63 @@ function checkIosVersion(drift) {
|
|
|
193
241
|
return { id: "ios-version", label, status: "fail", detail: e instanceof Error ? e.message : String(e) };
|
|
194
242
|
}
|
|
195
243
|
}
|
|
244
|
+
function checkAndroidVersion(drift) {
|
|
245
|
+
const label = "Android version";
|
|
246
|
+
try {
|
|
247
|
+
const d = drift();
|
|
248
|
+
if (!d)
|
|
249
|
+
return { id: "android-version", label, status: "ok", detail: "TOML and module.yaml agree" };
|
|
250
|
+
return {
|
|
251
|
+
id: "android-version",
|
|
252
|
+
label,
|
|
253
|
+
status: "fail",
|
|
254
|
+
detail: `TOML ${d.toml}, ${d.file} ${d.module}`,
|
|
255
|
+
hint: `Set settings.android.versionName: "${d.toml}" in ${d.file}`
|
|
256
|
+
};
|
|
257
|
+
} catch (e) {
|
|
258
|
+
return {
|
|
259
|
+
id: "android-version",
|
|
260
|
+
label,
|
|
261
|
+
status: "fail",
|
|
262
|
+
detail: e instanceof Error ? e.message : String(e)
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
function checkToolchain(root, wrapper, executable) {
|
|
267
|
+
const label = "kotlin toolchain";
|
|
268
|
+
if (root === undefined)
|
|
269
|
+
return { id: "toolchain", label, status: "skip", detail: "no toolchain root" };
|
|
270
|
+
const path = `${root.replace(/\/+$/, "")}/kotlin`;
|
|
271
|
+
if (wrapper === undefined) {
|
|
272
|
+
return {
|
|
273
|
+
id: "toolchain",
|
|
274
|
+
label,
|
|
275
|
+
status: "fail",
|
|
276
|
+
detail: `${path} missing`,
|
|
277
|
+
hint: "Check toolchain.root in kit.config.ts, or run `kotlin init` there"
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
if (!executable) {
|
|
281
|
+
return {
|
|
282
|
+
id: "toolchain",
|
|
283
|
+
label,
|
|
284
|
+
status: "fail",
|
|
285
|
+
detail: `${path} not executable`,
|
|
286
|
+
hint: `chmod +x ${path}`
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
const version = wrapperVersion(wrapper);
|
|
290
|
+
if (!version) {
|
|
291
|
+
return {
|
|
292
|
+
id: "toolchain",
|
|
293
|
+
label,
|
|
294
|
+
status: "warn",
|
|
295
|
+
detail: `${path}: no kotlin_cli_version`,
|
|
296
|
+
hint: "Pin the toolchain version in the wrapper (`./kotlin update` writes it)"
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
return { id: "toolchain", label, status: "ok", detail: version };
|
|
300
|
+
}
|
|
196
301
|
function checkReleaseSecrets(secrets, env, onActions, renameHints = () => []) {
|
|
197
302
|
const label = "release secrets";
|
|
198
303
|
const wanted = [...secrets.required, ...onActions ? secrets.ci : []];
|
|
@@ -289,15 +394,16 @@ kit doctor --json
|
|
|
289
394
|
kit doctor --ci`,
|
|
290
395
|
async run(ctx) {
|
|
291
396
|
const { existsSync, readdirSync, readFileSync } = await import("fs");
|
|
292
|
-
const { join } = await import("path");
|
|
397
|
+
const { join, resolve } = await import("path");
|
|
293
398
|
const pc = (await import("./picocolors-0dxagz5d.js").then((m)=>__toESM(m.default,1))).default;
|
|
294
399
|
const { emitJson } = await import("./log-g1ebh60s.js");
|
|
295
400
|
const { runQuiet } = await import("./proc-jv4bcyyx.js");
|
|
296
401
|
const { detectPackageManager, pmExec } = await import("./pm-5q5vz6w3.js");
|
|
297
402
|
const { parseToml, readToml } = await import("./toml-3fxsdkhr.js");
|
|
298
403
|
const { ExitCode } = await import("./errors-1fjbr7ee.js");
|
|
299
|
-
const { onGitHubActions, releaseSecrets, renameHints } = await import("./creds-
|
|
300
|
-
const { iosVersionDrift } = await import("./version-
|
|
404
|
+
const { onGitHubActions, releaseSecrets, renameHints } = await import("./creds-2qk71mdx.js");
|
|
405
|
+
const { androidVersionDrift, iosVersionDrift } = await import("./version-mnds3q7r.js");
|
|
406
|
+
const { accessSync, constants } = await import("fs");
|
|
301
407
|
const root = ctx.root ?? process.cwd();
|
|
302
408
|
const config = ctx.config;
|
|
303
409
|
const read = (p) => existsSync(join(root, p)) ? readFileSync(join(root, p), "utf8") : undefined;
|
|
@@ -308,9 +414,28 @@ kit doctor --ci`,
|
|
|
308
414
|
};
|
|
309
415
|
const targets = Object.values(config?.targets ?? {});
|
|
310
416
|
const gradle = !!config?.gradle || targets.some((t) => t.kind === "gradle");
|
|
417
|
+
const toolchainRoot = config?.toolchain?.root;
|
|
418
|
+
const wrapperPath = toolchainRoot === undefined ? undefined : join(root, toolchainRoot, "kotlin");
|
|
419
|
+
let wrapperExec = false;
|
|
420
|
+
if (wrapperPath && existsSync(wrapperPath)) {
|
|
421
|
+
try {
|
|
422
|
+
accessSync(wrapperPath, constants.X_OK);
|
|
423
|
+
wrapperExec = true;
|
|
424
|
+
} catch {}
|
|
425
|
+
}
|
|
311
426
|
const ios = !!config?.release?.ios;
|
|
312
427
|
const fastlane = ios || !!config?.release?.android;
|
|
313
428
|
const worker = Object.values(config?.targets ?? {}).find((t) => t.kind === "worker");
|
|
429
|
+
const ktlintUsed = targets.some((t) => t.kind === "kotlin" && (t.lint === undefined || t.format === undefined));
|
|
430
|
+
const ktlint = ktlintUsed ? await probe(["ktlint", "--version"]) : undefined;
|
|
431
|
+
const lefthookFile = LEFTHOOK_FILES.find((f) => existsSync(join(root, f)));
|
|
432
|
+
let lefthookHook;
|
|
433
|
+
if (lefthookFile) {
|
|
434
|
+
const r = await probe(["git", "rev-parse", "--git-path", "hooks/pre-commit"]);
|
|
435
|
+
const hookPath = r?.code === 0 ? resolve(root, r.output.trim()) : undefined;
|
|
436
|
+
if (hookPath && existsSync(hookPath))
|
|
437
|
+
lefthookHook = readFileSync(hookPath, "utf8");
|
|
438
|
+
}
|
|
314
439
|
const [java, ruby, xcode, wrangler] = await Promise.all([
|
|
315
440
|
probe(["java", "-version"]),
|
|
316
441
|
probe(["ruby", "--version"]),
|
|
@@ -342,6 +467,9 @@ kit doctor --ci`,
|
|
|
342
467
|
java: java?.code === 0 ? parseJavaVersion(java.output) : undefined,
|
|
343
468
|
ruby: ruby?.output.match(/ruby (\d[\w.]*)/)?.[1]
|
|
344
469
|
};
|
|
470
|
+
if (miseTools?.ktlint) {
|
|
471
|
+
detected.ktlint = ktlint?.code === 0 ? parseKtlintVersion(ktlint.output) : undefined;
|
|
472
|
+
}
|
|
345
473
|
if (miseTools?.node)
|
|
346
474
|
detected.node = (await probe(["node", "--version"]))?.output.trim().replace(/^v/, "");
|
|
347
475
|
const wfDir = join(root, ".github/workflows");
|
|
@@ -369,10 +497,16 @@ kit doctor --ci`,
|
|
|
369
497
|
checkRuby(ruby, fastlane),
|
|
370
498
|
checkXcode(xcode, ios, process.platform),
|
|
371
499
|
checkAndroidSdk(process.env, config?.gradle ? read(join(config.gradle.root, "local.properties")) : undefined, existsSync, gradle),
|
|
500
|
+
...toolchainRoot !== undefined ? [
|
|
501
|
+
checkToolchain(toolchainRoot, wrapperPath && existsSync(wrapperPath) ? readFileSync(wrapperPath, "utf8") : undefined, wrapperExec)
|
|
502
|
+
] : [],
|
|
372
503
|
checkWranglerLogin(wrangler),
|
|
373
|
-
|
|
504
|
+
...ktlintUsed ? [checkKtlint(ktlint, true)] : [],
|
|
505
|
+
miseCheck ?? checkMise(miseTools, detected, !!Bun.which("mise")),
|
|
506
|
+
checkLefthook(lefthookFile, !!Bun.which("lefthook"), lefthookHook, onGitHubActions()),
|
|
374
507
|
checkEnvFile(read(".env.example"), read(".env")),
|
|
375
508
|
...config?.release?.ios?.xcconfig ? [checkIosVersion(() => iosVersionDrift(root, config))] : [],
|
|
509
|
+
...config?.toolchain && config.release?.android ? [checkAndroidVersion(() => androidVersionDrift(root, config))] : [],
|
|
376
510
|
checkReleaseSecrets(releaseSecrets(config), process.env, onGitHubActions(), (m) => renameHints(m, (old) => !!process.env[old])),
|
|
377
511
|
checkCiPin(workflows, kitPin, ctx.args.ci === true),
|
|
378
512
|
catalogCheck,
|
|
@@ -404,23 +538,29 @@ kit doctor --ci`,
|
|
|
404
538
|
export {
|
|
405
539
|
versionMatches,
|
|
406
540
|
parseMiseTools,
|
|
541
|
+
parseKtlintVersion,
|
|
407
542
|
parseJavaVersion,
|
|
408
543
|
parseEnvKeys,
|
|
409
544
|
doctor_default as default,
|
|
410
545
|
checkXcode,
|
|
411
546
|
checkWranglerLogin,
|
|
412
547
|
checkUnreadable,
|
|
548
|
+
checkToolchain,
|
|
413
549
|
checkRuby,
|
|
414
550
|
checkReleaseSecrets,
|
|
415
551
|
checkMise,
|
|
552
|
+
checkLefthook,
|
|
553
|
+
checkKtlint,
|
|
416
554
|
checkJava,
|
|
417
555
|
checkIosVersion,
|
|
418
556
|
checkEnvFile,
|
|
419
557
|
checkCiPin,
|
|
420
558
|
checkCatalogKeys,
|
|
421
559
|
checkBun,
|
|
560
|
+
checkAndroidVersion,
|
|
422
561
|
checkAndroidSdk,
|
|
423
562
|
catalogPath,
|
|
424
563
|
MIN_JAVA,
|
|
564
|
+
LEFTHOOK_FILES,
|
|
425
565
|
CATALOG_KEYS
|
|
426
566
|
};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
dbArgs,
|
|
4
4
|
remoteArg
|
|
5
|
-
} from "./cli-
|
|
6
|
-
import"./cli-
|
|
5
|
+
} from "./cli-mdy0ze8j.js";
|
|
6
|
+
import"./cli-wg35kt5d.js";
|
|
7
7
|
import {
|
|
8
8
|
defineCommand
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-6z4axmde.js";
|
|
10
10
|
import"./cli-qhs8ww91.js";
|
|
11
11
|
import"./cli-7wvrehng.js";
|
|
12
12
|
import"./cli-fqfan92n.js";
|
|
@@ -33,7 +33,7 @@ var exec_default = defineCommand({
|
|
|
33
33
|
].join(`
|
|
34
34
|
`),
|
|
35
35
|
async run(ctx) {
|
|
36
|
-
const { runD1 } = await import("./cloudflare-
|
|
36
|
+
const { runD1 } = await import("./cloudflare-2t4cqqb8.js");
|
|
37
37
|
const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
|
|
38
38
|
const { resolve } = await import("path");
|
|
39
39
|
const sql = ctx.positionals.join(" ").trim();
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
parseOutputs,
|
|
9
9
|
resetBundle,
|
|
10
10
|
runLane
|
|
11
|
-
} from "./cli-
|
|
12
|
-
import"./cli-
|
|
11
|
+
} from "./cli-tafnwn5a.js";
|
|
12
|
+
import"./cli-wg35kt5d.js";
|
|
13
13
|
import"./cli-7wvrehng.js";
|
|
14
14
|
import"./cli-fqfan92n.js";
|
|
15
15
|
import"./cli-fqxtcj42.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
defineCommand
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-6z4axmde.js";
|
|
5
5
|
import"./cli-7wvrehng.js";
|
|
6
6
|
import"./cli-540nme4e.js";
|
|
7
7
|
import"./cli-5wasc5mr.js";
|
|
@@ -20,10 +20,10 @@ var fastlane_default = defineCommand({
|
|
|
20
20
|
passthrough: true,
|
|
21
21
|
examples: EXAMPLES,
|
|
22
22
|
async run(ctx) {
|
|
23
|
-
const { requireProject } = await import("./command-
|
|
24
|
-
const { appFastlaneDir, ensureBundle, fastlaneEnv } = await import("./fastlane-
|
|
25
|
-
const { optionalLaneCreds } = await import("./creds-
|
|
26
|
-
const { laneConfigEnv } = await import("./mobile-
|
|
23
|
+
const { requireProject } = await import("./command-1ydsfy5t.js");
|
|
24
|
+
const { appFastlaneDir, ensureBundle, fastlaneEnv } = await import("./fastlane-gjmhdgpc.js");
|
|
25
|
+
const { optionalLaneCreds } = await import("./creds-2qk71mdx.js");
|
|
26
|
+
const { laneConfigEnv } = await import("./mobile-vjv11q72.js");
|
|
27
27
|
const { run } = await import("./proc-jv4bcyyx.js");
|
|
28
28
|
const { root, config } = requireProject(ctx);
|
|
29
29
|
const appRoot = appFastlaneDir(root, config);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
defineCommand
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-6z4axmde.js";
|
|
5
5
|
import"./cli-7wvrehng.js";
|
|
6
6
|
import"./cli-540nme4e.js";
|
|
7
7
|
import"./cli-5wasc5mr.js";
|
|
@@ -24,7 +24,7 @@ var format_default = defineCommand({
|
|
|
24
24
|
kit format client
|
|
25
25
|
kit format --check`,
|
|
26
26
|
async run(ctx) {
|
|
27
|
-
const { runVerb } = await import("./_verb-
|
|
27
|
+
const { runVerb } = await import("./_verb-rhswhzxn.js");
|
|
28
28
|
const staged = ctx.args.staged ? await (await import("./git-3gyyfk0x.js")).stagedFiles(ctx.root) : undefined;
|
|
29
29
|
await runVerb(ctx, {
|
|
30
30
|
name: ctx.args.check ? "format --check" : "format",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
githubDestination
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-v1tt2mzx.js";
|
|
5
5
|
import {
|
|
6
6
|
LEGACY,
|
|
7
7
|
RETIRED,
|
|
8
8
|
onGitHubActions,
|
|
9
9
|
releaseSecrets
|
|
10
|
-
} from "./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
10
|
+
} from "./cli-vpzh9t0w.js";
|
|
11
|
+
import"./cli-mdy0ze8j.js";
|
|
12
|
+
import"./cli-wg35kt5d.js";
|
|
13
13
|
import"./cli-qhs8ww91.js";
|
|
14
14
|
import"./cli-7wvrehng.js";
|
|
15
15
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
defineCommand
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-6z4axmde.js";
|
|
5
5
|
import"./cli-7wvrehng.js";
|
|
6
6
|
import"./cli-540nme4e.js";
|
|
7
7
|
import"./cli-5wasc5mr.js";
|
|
@@ -20,12 +20,12 @@ kit gradle help --task assembleDebug`,
|
|
|
20
20
|
async run(ctx) {
|
|
21
21
|
const { existsSync } = await import("fs");
|
|
22
22
|
const { join } = await import("path");
|
|
23
|
-
const { requireProject } = await import("./command-
|
|
23
|
+
const { requireProject } = await import("./command-1ydsfy5t.js");
|
|
24
24
|
const { ExitCode, KitError } = await import("./errors-1fjbr7ee.js");
|
|
25
25
|
const { run } = await import("./proc-jv4bcyyx.js");
|
|
26
26
|
const { root, config } = requireProject(ctx);
|
|
27
27
|
if (!config.gradle) {
|
|
28
|
-
throw new KitError("No Gradle root configured", "Set gradle.root in kit.config.ts", ExitCode.config);
|
|
28
|
+
throw new KitError("No Gradle root configured", config.toolchain ? "This is a Kotlin toolchain project: use `kit kotlin \u2026`" : "Set gradle.root in kit.config.ts", ExitCode.config);
|
|
29
29
|
}
|
|
30
30
|
const dir = join(root, config.gradle.root);
|
|
31
31
|
if (!existsSync(join(dir, "gradlew"))) {
|
package/dist/index.js
CHANGED
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
commandStep,
|
|
7
7
|
runSteps
|
|
8
|
-
} from "./cli-
|
|
9
|
-
import"./cli-
|
|
8
|
+
} from "./cli-ya6cd8y5.js";
|
|
9
|
+
import"./cli-wg35kt5d.js";
|
|
10
10
|
import {
|
|
11
11
|
defineCommand
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-6z4axmde.js";
|
|
13
13
|
import {
|
|
14
14
|
ExitCode,
|
|
15
15
|
KitError
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
defineCommand
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-6z4axmde.js";
|
|
5
5
|
import"./cli-7wvrehng.js";
|
|
6
6
|
import"./cli-540nme4e.js";
|
|
7
7
|
import"./cli-5wasc5mr.js";
|
|
@@ -84,8 +84,27 @@ function planNative(s) {
|
|
|
84
84
|
plan.push({ kind: "cmd", title, cmd, cwd: join(s.root, gradle.root) });
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
+
const toolchain = s.config?.toolchain;
|
|
88
|
+
if (toolchain) {
|
|
89
|
+
const runs = toolchain.init === undefined ? ["--version"] : [toolchain.init].flat();
|
|
90
|
+
for (const args of runs) {
|
|
91
|
+
const title = `kotlin ${args}`;
|
|
92
|
+
if (s.jsOnly)
|
|
93
|
+
plan.push({ kind: "skip", title, reason: "--js-only" });
|
|
94
|
+
else if (!s.exists(join(toolchain.root, "kotlin"))) {
|
|
95
|
+
plan.push({
|
|
96
|
+
kind: "skip",
|
|
97
|
+
title,
|
|
98
|
+
reason: `no ${join(toolchain.root, "kotlin")}; check toolchain.root`
|
|
99
|
+
});
|
|
100
|
+
} else {
|
|
101
|
+
const cmd = ["./kotlin", ...args.split(/\s+/).filter(Boolean)];
|
|
102
|
+
plan.push({ kind: "cmd", title, cmd, cwd: join(s.root, toolchain.root) });
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
87
106
|
const kitBundle = !!(s.config?.release?.ios || s.config?.release?.android);
|
|
88
|
-
const gemDir = kitBundle ? "." : [gradle?.root, "."].find((d) => d !== undefined && s.exists(join(d, "Gemfile")));
|
|
107
|
+
const gemDir = kitBundle ? "." : [gradle?.root ?? toolchain?.root, "."].find((d) => d !== undefined && s.exists(join(d, "Gemfile")));
|
|
89
108
|
if (gemDir !== undefined) {
|
|
90
109
|
const title = kitBundle ? "bundle install (kit fastlane)" : `bundle install${gemDir === "." ? "" : ` (${gemDir})`}`;
|
|
91
110
|
if (s.jsOnly)
|
|
@@ -131,7 +150,7 @@ var init_default = defineCommand({
|
|
|
131
150
|
description: "Set up a fresh clone: .env, install, env sync, wrangler types, Gradle and bundler deps",
|
|
132
151
|
group: "Setup",
|
|
133
152
|
args: {
|
|
134
|
-
"js-only": { type: "boolean", description: "Skip the Gradle and bundler steps" }
|
|
153
|
+
"js-only": { type: "boolean", description: "Skip the Gradle, Kotlin toolchain and bundler steps" }
|
|
135
154
|
},
|
|
136
155
|
examples: [
|
|
137
156
|
"kit init",
|
|
@@ -166,7 +185,7 @@ var init_default = defineCommand({
|
|
|
166
185
|
accepted.push(n);
|
|
167
186
|
}
|
|
168
187
|
}
|
|
169
|
-
const { bundleEnv } = await import("./fastlane-
|
|
188
|
+
const { bundleEnv } = await import("./fastlane-gjmhdgpc.js");
|
|
170
189
|
const plan = planInit({
|
|
171
190
|
root,
|
|
172
191
|
config: ctx.config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
defineCommand
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-6z4axmde.js";
|
|
5
5
|
import"./cli-7wvrehng.js";
|
|
6
6
|
import"./cli-540nme4e.js";
|
|
7
7
|
import"./cli-5wasc5mr.js";
|
|
@@ -16,8 +16,8 @@ var init_default = defineCommand({
|
|
|
16
16
|
examples: `kit env init
|
|
17
17
|
kit env init --dry-run`,
|
|
18
18
|
async run(ctx) {
|
|
19
|
-
const { requireProject } = await import("./command-
|
|
20
|
-
const { loadEnv, assertValid } = await import("./load-
|
|
19
|
+
const { requireProject } = await import("./command-1ydsfy5t.js");
|
|
20
|
+
const { loadEnv, assertValid } = await import("./load-75n91nk4.js");
|
|
21
21
|
const { planInit, applyInit } = await import("./init-gtkmx54a.js");
|
|
22
22
|
const { outputs, writeOutputs } = await import("./render-vn40fp54.js");
|
|
23
23
|
const { password, text } = await import("./prompt-3wwegvqc.js");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
defineCommand
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-6z4axmde.js";
|
|
5
5
|
import"./cli-7wvrehng.js";
|
|
6
6
|
import"./cli-540nme4e.js";
|
|
7
7
|
import"./cli-5wasc5mr.js";
|
|
@@ -33,8 +33,8 @@ kit release ios --track beta --yes
|
|
|
33
33
|
kit release ios --track prod --notes "Bug fixes"
|
|
34
34
|
kit release ios --track internal --dry-run`,
|
|
35
35
|
async run(ctx) {
|
|
36
|
-
const { requireProject } = await import("./command-
|
|
37
|
-
const { releaseMobile } = await import("./mobile-
|
|
36
|
+
const { requireProject } = await import("./command-1ydsfy5t.js");
|
|
37
|
+
const { releaseMobile } = await import("./mobile-vjv11q72.js");
|
|
38
38
|
requireProject(ctx);
|
|
39
39
|
await releaseMobile(ctx, {
|
|
40
40
|
platform: "ios",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
defineCommand
|
|
4
|
+
} from "./cli-6z4axmde.js";
|
|
5
|
+
import"./cli-7wvrehng.js";
|
|
6
|
+
import"./cli-540nme4e.js";
|
|
7
|
+
import"./cli-5wasc5mr.js";
|
|
8
|
+
import {
|
|
9
|
+
__require
|
|
10
|
+
} from "./cli-re3ntm60.js";
|
|
11
|
+
|
|
12
|
+
// src/commands/kotlin.ts
|
|
13
|
+
var kotlin_default = defineCommand({
|
|
14
|
+
description: "Run the Kotlin toolchain wrapper in toolchain.root (arguments pass through)",
|
|
15
|
+
group: "Develop",
|
|
16
|
+
passthrough: true,
|
|
17
|
+
examples: `kit kotlin build -m shared
|
|
18
|
+
kit kotlin run -m desktopApp
|
|
19
|
+
kit kotlin show settings -m androidApp`,
|
|
20
|
+
async run(ctx) {
|
|
21
|
+
const { requireProject } = await import("./command-1ydsfy5t.js");
|
|
22
|
+
const { run } = await import("./proc-jv4bcyyx.js");
|
|
23
|
+
const { requireWrapper, WRAPPER } = await import("./toolchain-wd7hh812.js");
|
|
24
|
+
const { root, config } = requireProject(ctx);
|
|
25
|
+
const dir = requireWrapper(root, config);
|
|
26
|
+
process.exitCode = await run([WRAPPER, ...ctx.rest], { cwd: dir });
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
kotlin_default as default
|
|
31
|
+
};
|
package/dist/lib/fastlane.d.ts
CHANGED
|
@@ -9,7 +9,10 @@ import { type Env } from './proc';
|
|
|
9
9
|
*/
|
|
10
10
|
/** kit's package dir (holds `fastlane/` and `package.json`), from src/ or dist/. */
|
|
11
11
|
export declare function kitDir(): string;
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The dir holding the app's `fastlane/Fastfile`: `release.fastlaneDir`, else gradle.root or
|
|
14
|
+
* toolchain.root, else the root.
|
|
15
|
+
*/
|
|
13
16
|
export declare function appFastlaneDir(root: string, config: KitConfig): string;
|
|
14
17
|
/** Bundler env for kit's Gemfile: frozen, installed outside node_modules (D7). */
|
|
15
18
|
export declare function bundleEnv(): Record<string, string>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { KitContext } from '../../cli/command';
|
|
2
2
|
import type { KitConfig, Track } from '../../config/schema';
|
|
3
|
+
import { type Step } from '../steps';
|
|
3
4
|
/**
|
|
4
5
|
* `kit release ios|android --track …` (PLAN §9.3):
|
|
5
6
|
* preconditions → preflight + resolve (tree) → confirm → build + upload + post (tree) → tag → summary.
|
|
6
|
-
* The working tree is never modified: version and build reach the build as lane inputs.
|
|
7
|
+
* The working tree is never modified: version and build reach the build as lane inputs. The one
|
|
8
|
+
* exception is a Kotlin toolchain Android build, which has no build properties: the app module's
|
|
9
|
+
* module.yaml gets versionName, versionCode and signing for the build and is restored after.
|
|
7
10
|
*/
|
|
8
11
|
export type Platform = 'ios' | 'android';
|
|
9
12
|
export interface MobileOptions {
|
|
@@ -34,8 +37,24 @@ export declare const DEFAULT_BRANCHES: string[];
|
|
|
34
37
|
/** Branch allowed by `release.branches` (globs). In CI a detached HEAD falls back to GITHUB_REF_NAME. */
|
|
35
38
|
export declare function checkBranch(root: string, config: KitConfig): Promise<string>;
|
|
36
39
|
export declare function checkClean(root: string): Promise<void>;
|
|
37
|
-
/**
|
|
38
|
-
|
|
40
|
+
/**
|
|
41
|
+
* §9.3 step 1 (doctor --release): fail before secrets are decoded or the store is queried.
|
|
42
|
+
* `toolchain`: the Kotlin toolchain wrapper provisions its own JDK, so java isn't needed.
|
|
43
|
+
*/
|
|
44
|
+
export declare function checkTools(platform: Platform, which?: (bin: string) => string | null, toolchain?: boolean): void;
|
|
39
45
|
/** Config-derived lane inputs (bundle ids, team, package, Gradle root): shared with `kit fastlane`. */
|
|
40
46
|
export declare function laneConfigEnv(root: string, config: KitConfig): Record<string, string>;
|
|
41
47
|
export declare function releaseMobile(ctx: Pick<KitContext, 'root' | 'config' | 'flags' | 'log'>, opts: MobileOptions): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* `./kotlin package -m <module>` with the release values written into the module's module.yaml:
|
|
50
|
+
* versionName, versionCode, and signing pointing at a keystore.properties in kit's 0600 temp dir.
|
|
51
|
+
* The file is restored after the build, on failure, and on Ctrl-C.
|
|
52
|
+
*/
|
|
53
|
+
export declare function toolchainBuildStep(root: string, config: KitConfig, opts: {
|
|
54
|
+
version: string;
|
|
55
|
+
code: number;
|
|
56
|
+
/** Decoded upload keystore (KIT_ANDROID_KEYSTORE_FILE). */
|
|
57
|
+
keystore: string;
|
|
58
|
+
env?: Record<string, string>;
|
|
59
|
+
onArtifact: (aab: string) => void;
|
|
60
|
+
}): Step;
|
|
@@ -39,3 +39,15 @@ export declare function iosVersionDrift(root: string, config: KitConfig): {
|
|
|
39
39
|
xcconfig: string | undefined;
|
|
40
40
|
file: string;
|
|
41
41
|
} | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Kotlin toolchain: the Android version must read the same in the TOML and in the app module's
|
|
44
|
+
* module.yaml (`settings.android.versionName`), which local `./kotlin run` builds use. Returns the
|
|
45
|
+
* mismatch, or undefined when equal, when the module sets no versionName, or without a toolchain.
|
|
46
|
+
*/
|
|
47
|
+
export declare function androidVersionDrift(root: string, config: KitConfig): {
|
|
48
|
+
toml: string;
|
|
49
|
+
module: string;
|
|
50
|
+
file: string;
|
|
51
|
+
} | undefined;
|
|
52
|
+
/** module.yaml text with `settings.android.versionName` set (added when missing). */
|
|
53
|
+
export declare function setModuleVersion(text: string, file: string, to: string): string;
|
package/dist/lib/targets.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface PlanOptions {
|
|
|
25
25
|
env?: string;
|
|
26
26
|
/** Staged files (repo-relative). Workspace commands get them appended; targets without one are skipped. */
|
|
27
27
|
staged?: string[];
|
|
28
|
-
/** Gradle targets build the
|
|
28
|
+
/** Gradle and kotlin targets build the release artifact instead. */
|
|
29
29
|
release?: 'aab' | 'apk';
|
|
30
30
|
}
|
|
31
31
|
export interface Selection {
|
|
@@ -36,6 +36,8 @@ export interface Selection {
|
|
|
36
36
|
export declare function selectTargets(config: KitConfig, names?: string[]): Selection;
|
|
37
37
|
/** A Gradle task name (`spotlessCheck`, `:shared:test`) rather than a shell command. */
|
|
38
38
|
export declare const isGradleTask: (s: string) => boolean;
|
|
39
|
+
/** What `ktlint` checks with no staged list: every Kotlin file outside build output and node_modules. */
|
|
40
|
+
export declare const KTLINT_PATTERNS: string[];
|
|
39
41
|
/** Commands for one target and verb. `undefined` = the target doesn't support the verb. */
|
|
40
42
|
export declare function targetCommands(root: string, config: KitConfig, name: string, verb: Verb, opts?: PlanOptions): PlannedCommand[] | undefined;
|
|
41
43
|
/**
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { KitConfig } from '../config/schema';
|
|
2
|
+
/**
|
|
3
|
+
* JetBrains Kotlin Toolchain (formerly Amper) support: `toolchain.root` in kit.config.ts holds the
|
|
4
|
+
* `kotlin` wrapper, `project.yaml` and one `module.yaml` per module. There is no Gradle and no way
|
|
5
|
+
* to pass a property on the command line, so the values a release needs (versionName, versionCode,
|
|
6
|
+
* signing) are written into the app module's `module.yaml` for the build and restored after.
|
|
7
|
+
*/
|
|
8
|
+
export declare const WRAPPER = "./kotlin";
|
|
9
|
+
/** `kotlin_cli_version=0.13.0` from the wrapper script. */
|
|
10
|
+
export declare function wrapperVersion(text: string): string | undefined;
|
|
11
|
+
export declare function toolchainRoot(root: string, config: KitConfig): string;
|
|
12
|
+
/** Fail unless `<toolchain root>/kotlin` exists. */
|
|
13
|
+
export declare function requireWrapper(root: string, config: KitConfig): string;
|
|
14
|
+
/**
|
|
15
|
+
* `release.android.module` as a toolchain module name. Gradle-style `:androidApp` is accepted; a
|
|
16
|
+
* nested `:apps:android` becomes the path `apps/android`.
|
|
17
|
+
*/
|
|
18
|
+
export declare function moduleName(module: string): string;
|
|
19
|
+
/** Repo-relative path of the module's module.yaml. */
|
|
20
|
+
export declare function moduleYamlPath(config: KitConfig, module: string): string;
|
|
21
|
+
export type YamlValue = string | {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
};
|
|
24
|
+
/** Scalar at `path` (e.g. settings.android.versionName), unquoted; undefined when absent. */
|
|
25
|
+
export declare function getYamlScalar(text: string, path: string[]): string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Set `path` to `value` (a scalar, or a mapping of scalars written as a block), creating parent
|
|
28
|
+
* mappings as needed. A key already present is replaced along with its whole block.
|
|
29
|
+
* `file` names the file in errors.
|
|
30
|
+
*/
|
|
31
|
+
export declare function setYaml(text: string, path: string[], value: YamlValue, file?: string): string;
|
|
32
|
+
/** A YAML double-quoted scalar. */
|
|
33
|
+
export declare const yamlString: (s: string) => string;
|
|
34
|
+
export declare const ANDROID_VERSION_NAME: string[];
|
|
35
|
+
export declare const ANDROID_VERSION_CODE: string[];
|
|
36
|
+
export declare const ANDROID_SIGNING: string[];
|
|
37
|
+
export interface ReleaseEdit {
|
|
38
|
+
version: string;
|
|
39
|
+
code: number;
|
|
40
|
+
/** Absolute path of the keystore.properties kit wrote; omitted leaves signing as the module has it. */
|
|
41
|
+
signingProperties?: string;
|
|
42
|
+
}
|
|
43
|
+
/** The app module's module.yaml with the release values written in. */
|
|
44
|
+
export declare function releaseModuleYaml(text: string, edit: ReleaseEdit, file?: string): string;
|
|
45
|
+
/**
|
|
46
|
+
* keystore.properties for `settings.android.signing.propertiesFile`. Paths are absolute: the
|
|
47
|
+
* toolchain resolves a relative storeFile from the module dir. The key password is the store
|
|
48
|
+
* password (kit's convention, as in the Gradle `kit.release` plugin).
|
|
49
|
+
*/
|
|
50
|
+
export declare function keystoreProperties(storeFile: string, alias: string, password: string): string;
|
|
51
|
+
/** An `.aab` path printed by `kotlin package`, resolved against `cwd`. */
|
|
52
|
+
export declare function aabFromOutput(output: string, cwd: string): string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Newest `.aab` under `<toolchain root>/build/tasks/_<module>_*`, written at or after `since`
|
|
55
|
+
* (ms). The fallback when the output names no path: the toolchain calls this layout temporary.
|
|
56
|
+
*/
|
|
57
|
+
export declare function findAab(toolchainDir: string, module: string, since?: number): string | undefined;
|
|
58
|
+
/** versionName in the app module's module.yaml, or undefined when it doesn't set one. */
|
|
59
|
+
export declare function moduleVersionName(root: string, config: KitConfig, module: string): string | undefined;
|