@jordond/kit 0.5.0 → 0.7.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 +691 -9
- package/bin/kit +2 -2
- package/dist/_preview-g0s46wbd.js +186 -0
- package/dist/_verb-g6837n2y.js +173 -0
- package/dist/{android-m93y4yam.js → android-17z0stcg.js} +3 -3
- package/dist/apply-5531ynqp.js +118 -0
- package/dist/backup-ev2amscz.js +67 -0
- package/dist/bin-q60acre8.js +15 -0
- package/dist/boot-6t7jn0jp.js +52 -0
- package/dist/{build-8vcgsjwr.js → build-6rp8qsab.js} +6 -2
- package/dist/build-m9z9pfdh.js +21 -0
- package/dist/build-wdysb1g7.js +53 -0
- package/dist/{builtins-v7aeynd1.js → builtins-vh45v6hz.js} +1 -1
- package/dist/{bump-6sw1bwp2.js → bump-rce7k3yk.js} +5 -5
- package/dist/{certs-3nstba8v.js → certs-x8ds6gcq.js} +5 -5
- package/dist/changelog-70znsn6a.js +130 -0
- package/dist/changelog-ans0k88j.js +120 -0
- package/dist/{check-bbcvkd59.js → check-5p1nvffh.js} +8 -3
- package/dist/{check-6p4he09p.js → check-snsfxv4x.js} +11 -6
- package/dist/clean-j1aan7n6.js +93 -0
- package/dist/clean-jdky4kys.js +237 -0
- package/dist/clear-exmjhx8t.js +43 -0
- package/dist/cli-0f3m8qma.js +127 -0
- package/dist/{cli-08ff849s.js → cli-0gq9ayk0.js} +1 -1
- package/dist/cli-0h5bs7he.js +37 -0
- package/dist/cli-0pgyxzex.js +776 -0
- package/dist/cli-17hmeca5.js +394 -0
- package/dist/cli-1j74pfjc.js +466 -0
- package/dist/cli-28nya88s.js +73 -0
- package/dist/cli-2ja6z124.js +127 -0
- package/dist/cli-2vx7vz1p.js +64 -0
- package/dist/{cli-fqfan92n.js → cli-3f9s5j76.js} +16 -1
- package/dist/{doctor-rngjjwn8.js → cli-3nqkyv98.js} +153 -204
- package/dist/cli-5mqj72g1.js +54 -0
- package/dist/{cli-qhs8ww91.js → cli-5ws4pqz1.js} +11 -1
- package/dist/cli-8qgqecpv.js +35 -0
- package/dist/{cli-pz86az34.js → cli-9jt7ffg6.js} +23 -3
- package/dist/{deploy-4ns94w14.js → cli-9jv0j32a.js} +34 -19
- package/dist/{cli-wg35kt5d.js → cli-aca1bbxq.js} +9 -2
- package/dist/{cli-5qdvgv3a.js → cli-af51pbj8.js} +2 -2
- package/dist/cli-b4qnnrsp.js +35 -0
- package/dist/{cli-5sp3tf1s.js → cli-cj4hjqac.js} +104 -15
- package/dist/{cli-kzmewy2g.js → cli-e7kt35ys.js} +104 -75
- package/dist/cli-ey6trdpc.js +11 -0
- package/dist/cli-f68dq32t.js +282 -0
- package/dist/cli-fgxfjapz.js +234 -0
- package/dist/cli-j47q7z51.js +98 -0
- package/dist/cli-k3q2s02f.js +54 -0
- package/dist/{cli-699g070n.js → cli-m2zc03pj.js} +10 -8
- package/dist/{cli-dht27t4r.js → cli-nnj05pns.js} +1 -1
- package/dist/cli-p7bb5zr2.js +14 -0
- package/dist/cli-pd4aspw0.js +208 -0
- package/dist/{cli-vpzh9t0w.js → cli-py23qtsd.js} +1 -1
- package/dist/cli-qr7pzwpv.js +67 -0
- package/dist/cli-qsc39jca.js +275 -0
- package/dist/cli-r2zaznxh.js +123 -0
- package/dist/cli-s4bb7m1c.js +407 -0
- package/dist/{cli-vdxz787w.js → cli-thr9xsnm.js} +3 -3
- package/dist/{mobile-r27grzez.js → cli-v5ahh2k7.js} +29 -29
- package/dist/cli-vrtkz6f0.js +124 -0
- package/dist/cli-w3yfxvfc.js +85 -0
- package/dist/{cli-q4k5hjzg.js → cli-w7nrc7bk.js} +52 -12
- package/dist/cli-wrzdcgnt.js +82 -0
- package/dist/cli-ynsy144r.js +196 -0
- package/dist/cli.js +1 -1
- package/dist/{cloudflare-d4rm8ndz.js → cloudflare-mkq6s4p7.js} +13 -5
- package/dist/command-05jwq2ce.js +1108 -0
- package/dist/command-jqp93n3b.js +269 -0
- package/dist/{command-ybq4jdy8.js → command-nmgz9x53.js} +1 -1
- package/dist/commands/_affected.d.ts +11 -0
- package/dist/commands/_preview.d.ts +12 -0
- package/dist/commands/_verb.d.ts +1 -1
- package/dist/commands/add/module.d.ts +25 -0
- package/dist/commands/add/target.d.ts +17 -0
- package/dist/commands/app/build.d.ts +11 -0
- package/dist/commands/app/clear.d.ts +7 -0
- package/dist/commands/app/install.d.ts +15 -0
- package/dist/commands/app/run.d.ts +15 -0
- package/dist/commands/app/uninstall.d.ts +7 -0
- package/dist/commands/build.d.ts +8 -0
- package/dist/commands/changelog.d.ts +30 -0
- package/dist/commands/check.d.ts +8 -0
- package/dist/commands/clean.d.ts +7 -0
- package/dist/commands/db/backup.d.ts +16 -0
- package/dist/commands/db/reset.d.ts +11 -0
- package/dist/commands/db/restore.d.ts +11 -0
- package/dist/commands/db/seed.d.ts +11 -0
- package/dist/commands/deploy.d.ts +8 -0
- package/dist/commands/device/boot.d.ts +7 -0
- package/dist/commands/device/list.d.ts +7 -0
- package/dist/commands/device/statusbar.d.ts +11 -0
- package/dist/commands/doctor.d.ts +10 -93
- package/dist/commands/env/push.d.ts +5 -1
- package/dist/commands/env/rotate.d.ts +7 -0
- package/dist/commands/fixture/dump.d.ts +7 -0
- package/dist/commands/fixture/load.d.ts +7 -0
- package/dist/commands/format.d.ts +8 -0
- package/dist/commands/init.d.ts +29 -1
- package/dist/commands/lint.d.ts +8 -0
- package/dist/commands/logs.d.ts +8 -0
- package/dist/commands/maestro.d.ts +2 -0
- package/dist/commands/open.d.ts +13 -0
- package/dist/commands/qa.d.ts +31 -0
- package/dist/commands/release/metadata/pull.d.ts +11 -0
- package/dist/commands/release/metadata/push.d.ts +11 -0
- package/dist/commands/release/promote.d.ts +35 -0
- package/dist/commands/release/rollback.d.ts +7 -0
- package/dist/commands/release/rollout.d.ts +23 -0
- package/dist/commands/release/status.d.ts +2 -0
- package/dist/commands/shots/export.d.ts +29 -0
- package/dist/commands/shots.d.ts +31 -0
- package/dist/commands/test.d.ts +10 -1
- package/dist/commands/typecheck.d.ts +10 -1
- package/dist/commands/upgrade.d.ts +9 -0
- package/dist/completion-g8bjf46s.js +36 -0
- package/dist/{completion-hm4rhvpk.js → completion-n9yqehnf.js} +1 -1
- package/dist/{concurrent-zdz69ye5.js → concurrent-atba349a.js} +1 -1
- package/dist/config/load.d.ts +8 -0
- package/dist/config/schema.d.ts +85 -0
- package/dist/config-45ts3ey1.js +31 -0
- package/dist/{config-3craadxe.js → config-d7h13gsg.js} +1 -1
- package/dist/{create-p7gmz7yv.js → create-pzjz0d84.js} +6 -6
- package/dist/{creds-2qk71mdx.js → creds-kgbnkj91.js} +3 -3
- package/dist/d1-local-mpc7ykq4.js +62 -0
- package/dist/deploy-napjwj8w.js +18 -0
- package/dist/{deps-e65wk9g0.js → deps-7xxc0a5z.js} +6 -6
- package/dist/{dev-gq83jvk8.js → dev-z4s47pvj.js} +7 -7
- package/dist/discover-9egde25c.js +14 -0
- package/dist/doctor-nhn8fsqn.js +153 -0
- package/dist/dotenv-bsk2m68j.js +15 -0
- package/dist/dump-4s2wbydq.js +60 -0
- package/dist/entries-358fsdbg.js +311 -0
- package/dist/{exec-p5xfgqgs.js → exec-f7s2cper.js} +6 -6
- package/dist/export-1eszfz4q.js +65 -0
- package/dist/{fastlane-pj9c09z3.js → fastlane-8yepfr2p.js} +3 -3
- package/dist/{fastlane-yypgpmwr.js → fastlane-faays7j0.js} +6 -6
- package/dist/fixes-nyvcnb08.js +27 -0
- package/dist/{format-0ynd2amx.js → format-tt14cck9.js} +7 -3
- package/dist/{git-3gyyfk0x.js → git-qyqfbf8e.js} +15 -3
- package/dist/{github-4q7gxxx5.js → github-em8sgwvy.js} +6 -6
- package/dist/{gradle-526a5wt2.js → gradle-zgbmvvej.js} +3 -3
- package/dist/index-gqmhnjkq.js +49 -0
- package/dist/index-tvegt8ab.js +25 -0
- package/dist/index.js +4 -4
- package/dist/init-025v8xjs.js +464 -0
- package/dist/{init-gtkmx54a.js → init-dyd1b74n.js} +11 -7
- package/dist/{init-c2zyegvv.js → init-ktq9qfgk.js} +5 -5
- package/dist/install-c87y65cw.js +50 -0
- package/dist/install-wz1de5cv.js +35 -0
- package/dist/{ios-hk9xkjak.js → ios-yas39gap.js} +3 -3
- package/dist/kitref-p727zpk7.js +24 -0
- package/dist/{kotlin-y092s32p.js → kotlin-66qna77x.js} +3 -3
- package/dist/lib/add/apply.d.ts +25 -0
- package/dist/lib/add/edits.d.ts +57 -0
- package/dist/lib/add/plan.d.ts +98 -0
- package/dist/lib/add/settings.d.ts +20 -0
- package/dist/lib/app/build.d.ts +35 -0
- package/dist/lib/app/config.d.ts +21 -0
- package/dist/lib/app/install.d.ts +53 -0
- package/dist/lib/changelog.d.ts +51 -0
- package/dist/lib/chrome.d.ts +19 -0
- package/dist/lib/clean.d.ts +85 -0
- package/dist/lib/cloudflare.d.ts +25 -1
- package/dist/lib/completion.d.ts +33 -0
- package/dist/lib/d1-local.d.ts +29 -0
- package/dist/lib/devices/index.d.ts +96 -0
- package/dist/lib/devices/pick.d.ts +52 -0
- package/dist/lib/devices/statusbar.d.ts +4 -0
- package/dist/lib/doctor/checks.d.ts +134 -0
- package/dist/lib/doctor/entries.d.ts +34 -0
- package/dist/lib/doctor/fixes.d.ts +64 -0
- package/dist/lib/doctor/repair.d.ts +18 -0
- package/dist/lib/dotenv.d.ts +52 -0
- package/dist/lib/env/init.d.ts +1 -1
- package/dist/lib/env/push-run.d.ts +62 -0
- package/dist/lib/env/render.d.ts +2 -1
- package/dist/lib/env/rotate.d.ts +24 -0
- package/dist/lib/env/schema.d.ts +20 -0
- package/dist/lib/fixtures/android.d.ts +33 -0
- package/dist/lib/fixtures/config.d.ts +73 -0
- package/dist/lib/fixtures/index.d.ts +20 -0
- package/dist/lib/fixtures/ios.d.ts +13 -0
- package/dist/lib/fixtures/stage.d.ts +37 -0
- package/dist/lib/git.d.ts +43 -1
- package/dist/lib/image/png.d.ts +39 -0
- package/dist/lib/kitref.d.ts +35 -0
- package/dist/lib/maestro/args.d.ts +23 -0
- package/dist/lib/maestro/bin.d.ts +10 -0
- package/dist/lib/maestro/command.d.ts +16 -0
- package/dist/lib/maestro/lint.d.ts +14 -0
- package/dist/lib/maestro/run.d.ts +79 -0
- package/dist/lib/maestro/suites.d.ts +24 -0
- package/dist/lib/pm.d.ts +5 -0
- package/dist/lib/proc.d.ts +5 -0
- package/dist/lib/release/listing-images.d.ts +86 -0
- package/dist/lib/release/metadata.d.ts +81 -0
- package/dist/lib/release/mobile.d.ts +5 -1
- package/dist/lib/release/promote.d.ts +58 -0
- package/dist/lib/release/rollout.d.ts +33 -0
- package/dist/lib/release/status.d.ts +52 -0
- package/dist/lib/scaffold.d.ts +104 -0
- package/dist/lib/steps.d.ts +10 -0
- package/dist/lib/storeshots/command.d.ts +3 -0
- package/dist/lib/storeshots/fonts.d.ts +14 -0
- package/dist/lib/storeshots/page/background.d.ts +6 -0
- package/dist/lib/storeshots/page/device-frames.d.ts +16 -0
- package/dist/lib/storeshots/page/main.d.ts +1 -0
- package/dist/lib/storeshots/page/renderer.d.ts +17 -0
- package/dist/lib/storeshots/page-bundle.d.ts +7 -0
- package/dist/lib/storeshots/plan.d.ts +25 -0
- package/dist/lib/storeshots/project.d.ts +169 -0
- package/dist/lib/storeshots/render.d.ts +20 -0
- package/dist/lib/storeshots/server.d.ts +29 -0
- package/dist/lib/storeshots/sizes.d.ts +121 -0
- package/dist/lib/storeshots/types.d.ts +397 -0
- package/dist/lib/storeshots/write.d.ts +11 -0
- package/dist/lib/targets.d.ts +23 -2
- package/dist/lib/worker.d.ts +128 -0
- package/dist/{lint-ex675vcp.js → lint-hx7b83kn.js} +7 -3
- package/dist/list-ks9e93rx.js +61 -0
- package/dist/{list-vftxgz96.js → list-xxsdc51s.js} +6 -6
- package/dist/load-1fxmvh9n.js +51 -0
- package/dist/{load-4s6t9309.js → load-8y6s655t.js} +36 -3
- package/dist/{load-75xm9qcy.js → load-ak66yg9j.js} +7 -1
- package/dist/logs-zjbmpm40.js +62 -0
- package/dist/maestro-zw9p32cc.js +30 -0
- package/dist/{main-g6ndff3w.js → main-1v5dgfdb.js} +24 -99
- package/dist/metadata-4jn2zdsm.js +44 -0
- package/dist/{migrate-5bj93aqj.js → migrate-2a66bm3x.js} +6 -6
- package/dist/mobile-0m026dzx.js +40 -0
- package/dist/module-2bn1p66a.js +119 -0
- package/dist/{notes-1zsa7qac.js → notes-pyvrbdgg.js} +3 -3
- package/dist/open-rn88e9c5.js +73 -0
- package/dist/pick-a90zx6sr.js +26 -0
- package/dist/plan-av9jwvvk.js +651 -0
- package/dist/{pm-5q5vz6w3.js → pm-ay4nmeps.js} +3 -1
- package/dist/{proc-jv4bcyyx.js → proc-8ewt3hs4.js} +4 -2
- package/dist/promote-8g49cxj1.js +63 -0
- package/dist/promote-eezgfcm6.js +290 -0
- package/dist/pull-0cjcf2jg.js +39 -0
- package/dist/push-qndrsnvg.js +63 -0
- package/dist/push-run-y2gb3a0r.js +148 -0
- package/dist/push-ysd4zzad.js +44 -0
- package/dist/qa-ha84kjzm.js +40 -0
- package/dist/{render-vn40fp54.js → render-hkvej41k.js} +3 -1
- package/dist/repair-6989jrqg.js +104 -0
- package/dist/reset-710zhbbj.js +110 -0
- package/dist/restore-b744ykwg.js +122 -0
- package/dist/rollback-3vkb819m.js +134 -0
- package/dist/rollout-kdfmvwwv.js +56 -0
- package/dist/rollout-z1r0r7h1.js +188 -0
- package/dist/rotate-762tg2z9.js +80 -0
- package/dist/rotate-q5psaddv.js +168 -0
- package/dist/run-k2w6qqms.js +56 -0
- package/dist/scaffold-5mzc135g.js +37 -0
- package/dist/secrets-5hej44bb.js +24 -0
- package/dist/seed-9xw8ppn9.js +37 -0
- package/dist/{service-dfkyxsed.js → service-n6kgj7ba.js} +18 -9
- package/dist/shots-byejd6g2.js +46 -0
- package/dist/shots-page.js +613 -0
- package/dist/{show-qdsehk9z.js → show-47xz48ea.js} +3 -3
- package/dist/sizes-3kpjxm9h.js +51 -0
- package/dist/status-fk3frgy1.js +41 -0
- package/dist/status-stvsvpn3.js +29 -0
- package/dist/statusbar-tkznwzqz.js +15 -0
- package/dist/statusbar-x2rjwbz5.js +55 -0
- package/dist/steps-t6q8yxbb.js +22 -0
- package/dist/{sync-ngknzh6t.js → sync-7d7v2f5r.js} +4 -4
- package/dist/target-hpmjbrrh.js +78 -0
- package/dist/{targets-5z0abrrk.js → targets-vvzvaskd.js} +11 -4
- package/dist/{test-gdynbr4p.js → test-f07bcpby.js} +8 -3
- package/dist/{typecheck-9mfcx412.js → typecheck-ztfs5rb9.js} +6 -2
- package/dist/uninstall-q8ewxkdr.js +43 -0
- package/dist/upgrade-g67qx155.js +127 -0
- package/dist/worker-661hvwnb.js +59 -0
- package/dist/{wrangler-vecn5dwg.js → wrangler-mvnagswd.js} +5 -5
- package/dist/{xcode-33s2hs2d.js → xcode-h3nt62t8.js} +3 -3
- package/fastlane/Fastfile +748 -15
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/{0.5.0/io.github.jordond.kit.android.application.gradle.plugin-0.5.0.pom → 0.7.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.7.0/io.github.jordond.kit.android.application.gradle.plugin-0.7.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.5.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.5.0.pom → 0.7.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.7.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.7.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.5.0/io.github.jordond.kit.compose.gradle.plugin-0.5.0.pom → 0.7.0/io.github.jordond.kit.compose.gradle.plugin-0.7.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.0/io.github.jordond.kit.compose.gradle.plugin-0.7.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.0/io.github.jordond.kit.compose.gradle.plugin-0.7.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.0/io.github.jordond.kit.compose.gradle.plugin-0.7.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.7.0/io.github.jordond.kit.compose.gradle.plugin-0.7.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.5.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.5.0.pom → 0.7.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.7.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.7.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.5.0/kit-plugins-0.5.0.module → 0.7.0/kit-plugins-0.7.0.module} +5 -5
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.module.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.module.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.module.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.module.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.5.0/kit-plugins-0.5.0.pom → 0.7.0/kit-plugins-0.7.0.pom} +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.7.0/kit-plugins-0.7.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.5.0/kit-settings-0.5.0.module → 0.7.0/kit-settings-0.7.0.module} +5 -5
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.module.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.module.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.module.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.module.sha512 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/{0.5.0/kit-settings-0.5.0.pom → 0.7.0/kit-settings-0.7.0.pom} +1 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.7.0/kit-settings-0.7.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.5.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.5.0.pom → 0.7.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.7.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.7.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.5.0/io.github.jordond.kit.lint.gradle.plugin-0.5.0.pom → 0.7.0/io.github.jordond.kit.lint.gradle.plugin-0.7.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.0/io.github.jordond.kit.lint.gradle.plugin-0.7.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.0/io.github.jordond.kit.lint.gradle.plugin-0.7.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.0/io.github.jordond.kit.lint.gradle.plugin-0.7.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.7.0/io.github.jordond.kit.lint.gradle.plugin-0.7.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.5.0/io.github.jordond.kit.release.gradle.plugin-0.5.0.pom → 0.7.0/io.github.jordond.kit.release.gradle.plugin-0.7.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.0/io.github.jordond.kit.release.gradle.plugin-0.7.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.0/io.github.jordond.kit.release.gradle.plugin-0.7.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.0/io.github.jordond.kit.release.gradle.plugin-0.7.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.7.0/io.github.jordond.kit.release.gradle.plugin-0.7.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.5.0/io.github.jordond.kit.settings.gradle.plugin-0.5.0.pom → 0.7.0/io.github.jordond.kit.settings.gradle.plugin-0.7.0.pom} +2 -2
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.0/io.github.jordond.kit.settings.gradle.plugin-0.7.0.pom.md5 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.0/io.github.jordond.kit.settings.gradle.plugin-0.7.0.pom.sha1 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.0/io.github.jordond.kit.settings.gradle.plugin-0.7.0.pom.sha256 +1 -0
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.7.0/io.github.jordond.kit.settings.gradle.plugin-0.7.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 +2 -2
- package/templates/add/Placeholder.kt +4 -0
- package/templates/add/gradle-module/build.gradle.kts +9 -0
- package/templates/add/toolchain-module/module.yaml +4 -0
- package/templates/add/worker/package.json +15 -0
- package/templates/add/worker/src/index.ts +5 -0
- package/templates/add/worker/tsconfig.json +13 -0
- package/templates/add/worker/wrangler.jsonc +8 -0
- package/templates/{new → gradle}/.github/workflows/ci.yml +3 -3
- package/templates/gradle/renovate.json +4 -0
- package/templates/lefthook.yml +1 -1
- package/templates/toolchain/.editorconfig +32 -0
- package/templates/toolchain/.env.example +20 -0
- package/templates/toolchain/.github/workflows/ci.yml +44 -0
- package/templates/toolchain/.github/workflows/distribute.yml +41 -0
- package/templates/toolchain/fastlane/Fastfile +1 -0
- package/templates/toolchain/mise.toml +6 -0
- package/templates/toolchain/renovate.json +4 -0
- package/dist/_verb-d8z0az83.js +0 -117
- package/dist/cli-tt8q6taw.js +0 -197
- package/dist/cli-xjpjdc2c.js +0 -70
- package/dist/init-ndgxaqcj.js +0 -281
- package/dist/push-bhnr14ms.js +0 -22
- package/dist/push-nx5n43se.js +0 -124
- package/dist/steps-8bz1tscj.js +0 -16
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.5.0/io.github.jordond.kit.android.application.gradle.plugin-0.5.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.5.0/io.github.jordond.kit.android.application.gradle.plugin-0.5.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.5.0/io.github.jordond.kit.android.application.gradle.plugin-0.5.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/application/io.github.jordond.kit.android.application.gradle.plugin/0.5.0/io.github.jordond.kit.android.application.gradle.plugin-0.5.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.5.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.5.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.5.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.5.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.5.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.5.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/android/baseline/io.github.jordond.kit.android.baseline.gradle.plugin/0.5.0/io.github.jordond.kit.android.baseline.gradle.plugin-0.5.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.5.0/io.github.jordond.kit.compose.gradle.plugin-0.5.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.5.0/io.github.jordond.kit.compose.gradle.plugin-0.5.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.5.0/io.github.jordond.kit.compose.gradle.plugin-0.5.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/compose/io.github.jordond.kit.compose.gradle.plugin/0.5.0/io.github.jordond.kit.compose.gradle.plugin-0.5.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.5.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.5.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.5.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.5.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.5.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.5.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/jvm/app/io.github.jordond.kit.jvm.app.gradle.plugin/0.5.0/io.github.jordond.kit.jvm.app.gradle.plugin-0.5.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.module.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.module.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.module.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.module.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-plugins/0.5.0/kit-plugins-0.5.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.module.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.module.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.module.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.module.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kit-settings/0.5.0/kit-settings-0.5.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.5.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.5.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.5.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.5.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.5.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.5.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/kmp/library/io.github.jordond.kit.kmp.library.gradle.plugin/0.5.0/io.github.jordond.kit.kmp.library.gradle.plugin-0.5.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.5.0/io.github.jordond.kit.lint.gradle.plugin-0.5.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.5.0/io.github.jordond.kit.lint.gradle.plugin-0.5.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.5.0/io.github.jordond.kit.lint.gradle.plugin-0.5.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/lint/io.github.jordond.kit.lint.gradle.plugin/0.5.0/io.github.jordond.kit.lint.gradle.plugin-0.5.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.5.0/io.github.jordond.kit.release.gradle.plugin-0.5.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.5.0/io.github.jordond.kit.release.gradle.plugin-0.5.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.5.0/io.github.jordond.kit.release.gradle.plugin-0.5.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/release/io.github.jordond.kit.release.gradle.plugin/0.5.0/io.github.jordond.kit.release.gradle.plugin-0.5.0.pom.sha512 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.5.0/io.github.jordond.kit.settings.gradle.plugin-0.5.0.pom.md5 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.5.0/io.github.jordond.kit.settings.gradle.plugin-0.5.0.pom.sha1 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.5.0/io.github.jordond.kit.settings.gradle.plugin-0.5.0.pom.sha256 +0 -1
- package/gradle/maven/io/github/jordond/kit/settings/io.github.jordond.kit.settings.gradle.plugin/0.5.0/io.github.jordond.kit.settings.gradle.plugin-0.5.0.pom.sha512 +0 -1
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.5.0/kit-plugins-0.5.0.jar → 0.7.0/kit-plugins-0.7.0.jar} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.5.0/kit-plugins-0.5.0.jar.md5 → 0.7.0/kit-plugins-0.7.0.jar.md5} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.5.0/kit-plugins-0.5.0.jar.sha1 → 0.7.0/kit-plugins-0.7.0.jar.sha1} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.5.0/kit-plugins-0.5.0.jar.sha256 → 0.7.0/kit-plugins-0.7.0.jar.sha256} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-plugins/{0.5.0/kit-plugins-0.5.0.jar.sha512 → 0.7.0/kit-plugins-0.7.0.jar.sha512} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.5.0/kit-settings-0.5.0.jar → 0.7.0/kit-settings-0.7.0.jar} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.5.0/kit-settings-0.5.0.jar.md5 → 0.7.0/kit-settings-0.7.0.jar.md5} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.5.0/kit-settings-0.5.0.jar.sha1 → 0.7.0/kit-settings-0.7.0.jar.sha1} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.5.0/kit-settings-0.5.0.jar.sha256 → 0.7.0/kit-settings-0.7.0.jar.sha256} +0 -0
- /package/gradle/maven/io/github/jordond/kit/kit-settings/{0.5.0/kit-settings-0.5.0.jar.sha512 → 0.7.0/kit-settings-0.7.0.jar.sha512} +0 -0
- /package/templates/{new → gradle}/.env.example +0 -0
- /package/templates/{new → gradle}/apps/client/fastlane/Fastfile +0 -0
- /package/templates/{new → gradle}/apps/client/gradle/libs.versions.toml +0 -0
- /package/templates/{new → gradle}/apps/client/settings.gradle.kts +0 -0
- /package/templates/{new → gradle}/kit.config.ts +0 -0
package/fastlane/Fastfile
CHANGED
|
@@ -121,6 +121,89 @@ def kit_ios_ipa
|
|
|
121
121
|
kit_require_file("KIT_IOS_IPA")
|
|
122
122
|
end
|
|
123
123
|
|
|
124
|
+
# metadata_pull / metadata_push helpers. deliver keeps the App Review contact
|
|
125
|
+
# (name, phone, email) and the demo account's user and password as plaintext
|
|
126
|
+
# files in <metadata>/review_information. kit never leaves that directory in
|
|
127
|
+
# the repo and never uploads it.
|
|
128
|
+
def kit_review_information?(entry)
|
|
129
|
+
entry.casecmp?("review_information")
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
def kit_strip_review_information(metadata)
|
|
133
|
+
return false unless File.directory?(metadata)
|
|
134
|
+
|
|
135
|
+
found = Dir.children(metadata).select { |entry| kit_review_information?(entry) }
|
|
136
|
+
found.each { |entry| FileUtils.rm_rf(File.join(metadata, entry)) }
|
|
137
|
+
!found.empty?
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Copy the metadata directory into `into` for deliver to read, without
|
|
141
|
+
# review_information/ and without supply's android/ (deliver skips that one).
|
|
142
|
+
def kit_metadata_for_push(metadata, into)
|
|
143
|
+
FileUtils.mkdir_p(into)
|
|
144
|
+
Dir.children(metadata).each do |entry|
|
|
145
|
+
# Any case: on a case-insensitive disk deliver reads Review_Information/ as review_information/.
|
|
146
|
+
next if entry.start_with?(".") || kit_review_information?(entry) || entry.casecmp?("android")
|
|
147
|
+
|
|
148
|
+
FileUtils.cp_r(File.join(metadata, entry), into)
|
|
149
|
+
end
|
|
150
|
+
into
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# What a listing push sends. Text goes up unless KIT_METADATA_TEXT=0
|
|
154
|
+
# (`kit release metadata push --only-screenshots`); images only with
|
|
155
|
+
# KIT_METADATA_SCREENSHOTS=1. Text off and no images is nothing to upload.
|
|
156
|
+
#
|
|
157
|
+
# KIT_METADATA_TEXT is not read with kit_flag?: that takes anything but
|
|
158
|
+
# 1/true/yes as off, which is the careful reading for KIT_APPSTORE_SUBMIT and
|
|
159
|
+
# KIT_APPSTORE_PHASED but here would drop the text on "on" or a typo. Only
|
|
160
|
+
# 0/false/no, in any case, turns the text off.
|
|
161
|
+
def kit_listing_parts
|
|
162
|
+
text = !%w[0 false no].include?(ENV["KIT_METADATA_TEXT"].to_s.strip.downcase)
|
|
163
|
+
images = kit_flag?("KIT_METADATA_SCREENSHOTS")
|
|
164
|
+
UI.user_error!("KIT_METADATA_TEXT=0 needs KIT_METADATA_SCREENSHOTS=1: there is nothing to upload.") unless text || images
|
|
165
|
+
{ text: text, images: images }
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# deliver's switches for a listing push.
|
|
169
|
+
def kit_deliver_listing_options(parts = kit_listing_parts)
|
|
170
|
+
{
|
|
171
|
+
skip_metadata: !parts[:text],
|
|
172
|
+
skip_screenshots: !parts[:images],
|
|
173
|
+
overwrite_screenshots: parts[:images]
|
|
174
|
+
}
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# supply's switches for a listing push: never a binary or a changelog. Each
|
|
178
|
+
# part has its own switch, so with the text off only images are sent.
|
|
179
|
+
def kit_supply_listing_options(parts = kit_listing_parts)
|
|
180
|
+
{
|
|
181
|
+
skip_upload_apk: true,
|
|
182
|
+
skip_upload_aab: true,
|
|
183
|
+
skip_upload_changelogs: true,
|
|
184
|
+
skip_upload_metadata: !parts[:text],
|
|
185
|
+
skip_upload_images: !parts[:images],
|
|
186
|
+
skip_upload_screenshots: !parts[:images]
|
|
187
|
+
}
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# "the App Store listing and screenshots", "the Play screenshots", …
|
|
191
|
+
def kit_listing_summary(parts, images)
|
|
192
|
+
[parts[:text] ? "listing" : nil, parts[:images] ? images : nil].compact.join(" and ")
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# The version deliver would edit, or an immediate error: with none, deliver
|
|
196
|
+
# sits in its retry loop (7 tries, up to 5 minutes apart) before failing.
|
|
197
|
+
def kit_require_editable_version(app, platform, bundle_id)
|
|
198
|
+
version = app.get_edit_app_store_version(platform: platform)
|
|
199
|
+
return version if version
|
|
200
|
+
|
|
201
|
+
UI.user_error!(
|
|
202
|
+
"#{bundle_id} has no editable App Store version, so there is no listing to update. " \
|
|
203
|
+
"Create the next version in App Store Connect, or push after `kit release ios --track prod`."
|
|
204
|
+
)
|
|
205
|
+
end
|
|
206
|
+
|
|
124
207
|
platform :ios do
|
|
125
208
|
desc "Print the next build number: max(TestFlight, App Store) + 1."
|
|
126
209
|
desc "In: KIT_IOS_BUNDLE_ID, ASC_KEY_ID, ASC_ISSUER_ID, KIT_ASC_KEY_PATH. Out: KIT_NEXT_BUILD=<n>."
|
|
@@ -225,21 +308,29 @@ platform :ios do
|
|
|
225
308
|
|
|
226
309
|
UI.user_error!("KIT_RELEASE_NOTES is empty: App Store Connect will not submit an update without What's New.") if whats_new.empty?
|
|
227
310
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
311
|
+
# deliver defaults metadata_path to <app>/fastlane/metadata, where the
|
|
312
|
+
# repo's store listing can live (`kit metadata pull`): a release must not
|
|
313
|
+
# upload that listing or its stale per-locale release notes. An empty dir
|
|
314
|
+
# loads nothing; the metadata step still runs (see below).
|
|
315
|
+
Dir.mktmpdir("kit-deliver") do |empty|
|
|
316
|
+
upload_to_app_store(
|
|
317
|
+
api_key: kit_asc_api_key,
|
|
318
|
+
app_identifier: kit_ios_bundle_id,
|
|
319
|
+
ipa: ipa,
|
|
320
|
+
submit_for_review: kit_flag?("KIT_APPSTORE_SUBMIT", default: true),
|
|
321
|
+
automatic_release: false, # the operator releases from App Store Connect after approval
|
|
322
|
+
phased_release: kit_flag?("KIT_APPSTORE_PHASED", default: true),
|
|
323
|
+
precheck_include_in_app_purchases: false,
|
|
324
|
+
# No skip_metadata: deliver applies automatic_release and phased_release
|
|
325
|
+
# inside its metadata step, so skipping it silently drops both. What's New
|
|
326
|
+
# is the only listing field this writes.
|
|
327
|
+
release_notes: { "en-US" => whats_new },
|
|
328
|
+
metadata_path: File.join(empty, "metadata"),
|
|
329
|
+
screenshots_path: File.join(empty, "screenshots"),
|
|
330
|
+
skip_screenshots: true,
|
|
331
|
+
force: true # skip the interactive HTML preview
|
|
332
|
+
)
|
|
333
|
+
end
|
|
243
334
|
UI.success("Submitted to the App Store for review.")
|
|
244
335
|
end
|
|
245
336
|
|
|
@@ -274,6 +365,118 @@ platform :ios do
|
|
|
274
365
|
UI.user_error!("KIT_CERTS_MODE must be readonly or add, got '#{mode}'") unless %w[readonly add].include?(mode)
|
|
275
366
|
kit_match(readonly: mode == "readonly", api_key: kit_asc_api_key)
|
|
276
367
|
end
|
|
368
|
+
|
|
369
|
+
# fastlane has no download action, so this does what `deliver download_metadata`
|
|
370
|
+
# and `deliver download_screenshots` do, with the same deliver classes. Text
|
|
371
|
+
# comes from the latest version; screenshots from the version being edited,
|
|
372
|
+
# else the live one.
|
|
373
|
+
desc "Download the App Store listing text into the app's metadata directory; screenshots too when KIT_METADATA_SCREENSHOTS=1."
|
|
374
|
+
desc "In: KIT_METADATA_PATH, KIT_SCREENSHOTS_PATH, KIT_METADATA_SCREENSHOTS, KIT_IOS_BUNDLE_ID, ASC_*."
|
|
375
|
+
lane :metadata_pull do
|
|
376
|
+
require "deliver"
|
|
377
|
+
require "deliver/setup"
|
|
378
|
+
|
|
379
|
+
metadata = kit_path("KIT_METADATA_PATH")
|
|
380
|
+
with_screenshots = kit_flag?("KIT_METADATA_SCREENSHOTS")
|
|
381
|
+
# deliver creates its screenshots dir on login; without the flag give it a throwaway one,
|
|
382
|
+
# so the app's screenshots directory is neither created nor touched.
|
|
383
|
+
unused = Dir.mktmpdir("kit-screenshots")
|
|
384
|
+
screenshots = with_screenshots ? kit_path("KIT_SCREENSHOTS_PATH") : unused
|
|
385
|
+
available = Deliver::Options.available_options
|
|
386
|
+
# As `deliver download_metadata` does: a stray .ipa/.pkg next to the Fastfile is irrelevant here.
|
|
387
|
+
available.each do |opt|
|
|
388
|
+
next unless %i[ipa pkg app_rating_config_path].include?(opt.key)
|
|
389
|
+
|
|
390
|
+
opt.verify_block = nil
|
|
391
|
+
opt.conflicting_options = nil
|
|
392
|
+
end
|
|
393
|
+
options = FastlaneCore::Configuration.create(
|
|
394
|
+
available,
|
|
395
|
+
api_key: kit_asc_api_key,
|
|
396
|
+
app_identifier: kit_ios_bundle_id,
|
|
397
|
+
metadata_path: metadata,
|
|
398
|
+
screenshots_path: screenshots,
|
|
399
|
+
force: true
|
|
400
|
+
)
|
|
401
|
+
Deliver::Runner.new(options, skip_version: true) # logs in and finds the app; uploads nothing
|
|
402
|
+
app = Deliver.cache[:app]
|
|
403
|
+
platform = Spaceship::ConnectAPI::Platform.map(options[:platform])
|
|
404
|
+
version = app.get_latest_app_store_version(platform: platform)
|
|
405
|
+
UI.user_error!("#{kit_ios_bundle_id} has no App Store version to download a listing from.") unless version
|
|
406
|
+
|
|
407
|
+
Deliver::Setup.new.generate_metadata_files(app, version, metadata, options)
|
|
408
|
+
if with_screenshots
|
|
409
|
+
editing = app.get_edit_app_store_version(platform: platform)
|
|
410
|
+
Deliver::DownloadScreenshots.download({ platform: options[:platform], use_live_version: editing.nil? }, screenshots)
|
|
411
|
+
end
|
|
412
|
+
UI.success("Downloaded the App Store listing to #{metadata}#{with_screenshots ? " and #{screenshots}" : ''}.")
|
|
413
|
+
ensure
|
|
414
|
+
FileUtils.remove_entry(unused) if unused && File.exist?(unused)
|
|
415
|
+
# deliver writes the App Review contact and demo login next to the listing; never keep them.
|
|
416
|
+
if metadata && kit_strip_review_information(metadata)
|
|
417
|
+
UI.important("Removed review_information/ (App Review contact and demo login): kit keeps it out of the repo.")
|
|
418
|
+
end
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# Listing only: no binary, no review submission, no release settings.
|
|
422
|
+
# This runs deliver itself rather than upload_to_app_store because the
|
|
423
|
+
# action's defaults are not neutral: phased_release and reset_ratings default
|
|
424
|
+
# to false, and deliver then deletes the phased release (set by
|
|
425
|
+
# upload_appstore) and any ratings reset on the version. With no default
|
|
426
|
+
# deliver leaves both alone, like automatic_release. The .ipa/.pkg defaults
|
|
427
|
+
# (newest in the working directory) go too, so a stray build is never read
|
|
428
|
+
# for a version or platform.
|
|
429
|
+
# deliver edits the version being prepared, so one must exist in App Store
|
|
430
|
+
# Connect; skip_app_version_update keeps it from creating or renaming one.
|
|
431
|
+
# Without one deliver retries for about 20 minutes before failing, so the
|
|
432
|
+
# lane checks first. deliver reads a copy of the metadata directory without
|
|
433
|
+
# review_information/, so the App Review contact and demo login are never sent.
|
|
434
|
+
desc "Upload the App Store listing text; screenshots too when KIT_METADATA_SCREENSHOTS=1 (replaces them)."
|
|
435
|
+
desc "KIT_METADATA_TEXT=0 sends the screenshots alone and leaves the text as the store has it."
|
|
436
|
+
desc "In: KIT_METADATA_PATH, KIT_SCREENSHOTS_PATH, KIT_METADATA_SCREENSHOTS, KIT_METADATA_TEXT, KIT_IOS_BUNDLE_ID, ASC_*, KIT_SKIP_UPLOAD."
|
|
437
|
+
lane :metadata_push do
|
|
438
|
+
parts = kit_listing_parts
|
|
439
|
+
with_screenshots = parts[:images]
|
|
440
|
+
# Screenshots alone need no metadata directory: deliver gets an empty one.
|
|
441
|
+
metadata = parts[:text] ? kit_require_file("KIT_METADATA_PATH") : kit_path("KIT_METADATA_PATH")
|
|
442
|
+
next if kit_skip_upload?("the App Store listing upload", metadata)
|
|
443
|
+
|
|
444
|
+
require "deliver"
|
|
445
|
+
|
|
446
|
+
available = Deliver::Options.available_options
|
|
447
|
+
available.each do |opt|
|
|
448
|
+
opt.default_value = nil if %i[phased_release reset_ratings].include?(opt.key)
|
|
449
|
+
next unless %i[ipa pkg].include?(opt.key)
|
|
450
|
+
|
|
451
|
+
opt.default_value = nil
|
|
452
|
+
opt.verify_block = nil
|
|
453
|
+
opt.conflicting_options = nil
|
|
454
|
+
end
|
|
455
|
+
# deliver creates its screenshots dir even when it skips them; give it a throwaway one then.
|
|
456
|
+
Dir.mktmpdir("kit-listing") do |tmp|
|
|
457
|
+
unused = File.join(tmp, "screenshots")
|
|
458
|
+
listing = File.join(tmp, "metadata")
|
|
459
|
+
parts[:text] ? kit_metadata_for_push(metadata, listing) : FileUtils.mkdir_p(listing)
|
|
460
|
+
options = FastlaneCore::Configuration.create(
|
|
461
|
+
available,
|
|
462
|
+
api_key: kit_asc_api_key,
|
|
463
|
+
app_identifier: kit_ios_bundle_id,
|
|
464
|
+
metadata_path: listing,
|
|
465
|
+
screenshots_path: with_screenshots ? kit_require_file("KIT_SCREENSHOTS_PATH") : unused,
|
|
466
|
+
skip_binary_upload: true,
|
|
467
|
+
skip_app_version_update: true,
|
|
468
|
+
submit_for_review: false,
|
|
469
|
+
run_precheck_before_submit: false,
|
|
470
|
+
force: true, # skip the interactive HTML preview
|
|
471
|
+
**kit_deliver_listing_options(parts)
|
|
472
|
+
)
|
|
473
|
+
runner = Deliver::Runner.new(options) # logs in and finds the app; uploads nothing yet
|
|
474
|
+
platform = Spaceship::ConnectAPI::Platform.map(options[:platform])
|
|
475
|
+
kit_require_editable_version(Deliver.cache[:app], platform, kit_ios_bundle_id)
|
|
476
|
+
runner.run
|
|
477
|
+
end
|
|
478
|
+
UI.success("Updated the App Store #{kit_listing_summary(parts, 'screenshots')}.")
|
|
479
|
+
end
|
|
277
480
|
end
|
|
278
481
|
|
|
279
482
|
# --------------------------------------------------------------- Android ---
|
|
@@ -300,6 +503,27 @@ def kit_find_artifact(kind)
|
|
|
300
503
|
Dir.glob(File.join(dir, "*.#{kind}")).reject { |f| f.include?("unsigned") }.max_by { |f| File.mtime(f) }
|
|
301
504
|
end
|
|
302
505
|
|
|
506
|
+
# metadata_pull helper. `expected` maps a Play image type to how many images
|
|
507
|
+
# the listing has. Returns "<language>/<type> (<got> of <want>)" for each type
|
|
508
|
+
# with fewer image files written since `since`: supply stores single images as
|
|
509
|
+
# <language>/images/<type>.<ext> and screenshots as files in
|
|
510
|
+
# <language>/images/<type>/. Only a non-empty .png/.jpg/.jpeg counts: supply
|
|
511
|
+
# writes the HTTP body whatever the status, and names the file `<type>.` when
|
|
512
|
+
# it cannot tell the image type, so a 403 or 5xx body is not an image.
|
|
513
|
+
def kit_play_missing_images(metadata, language, expected, since)
|
|
514
|
+
images = File.join(metadata, language, "images")
|
|
515
|
+
expected.filter_map do |type, want|
|
|
516
|
+
next if want.zero?
|
|
517
|
+
|
|
518
|
+
path = File.join(images, type)
|
|
519
|
+
files = File.directory?(path) ? Dir.glob(File.join(path, "*")) : Dir.glob("#{path}.*")
|
|
520
|
+
got = files.count do |f|
|
|
521
|
+
File.file?(f) && File.size(f).positive? && f.match?(/\.(png|jpe?g)\z/i) && File.mtime(f) >= since - 1
|
|
522
|
+
end
|
|
523
|
+
"#{language}/#{type} (#{got} of #{want})" if got < want
|
|
524
|
+
end
|
|
525
|
+
end
|
|
526
|
+
|
|
303
527
|
platform :android do
|
|
304
528
|
desc "Print the next version code: max across every Play track + 1."
|
|
305
529
|
desc "In: KIT_ANDROID_PACKAGE, KIT_PLAY_JSON_KEY. Out: KIT_NEXT_CODE=<n>."
|
|
@@ -410,4 +634,513 @@ platform :android do
|
|
|
410
634
|
end
|
|
411
635
|
UI.success("Uploaded to the Play '#{track}' track#{draft ? ' as a draft (roll it out in the Play Console)' : ''}.")
|
|
412
636
|
end
|
|
637
|
+
|
|
638
|
+
# `supply init` refuses a directory that already exists and also needs a
|
|
639
|
+
# production release (it downloads changelogs). This runs the same
|
|
640
|
+
# Supply::Setup steps for the listing only; changelogs stay with
|
|
641
|
+
# `upload_play`. The edit is read-only and is discarded.
|
|
642
|
+
desc "Download the Play listing text into the app's metadata directory; images and screenshots too when KIT_METADATA_SCREENSHOTS=1."
|
|
643
|
+
desc "In: KIT_METADATA_PATH, KIT_METADATA_SCREENSHOTS, KIT_ANDROID_PACKAGE, KIT_PLAY_JSON_KEY."
|
|
644
|
+
lane :metadata_pull do
|
|
645
|
+
require "supply"
|
|
646
|
+
require "supply/options"
|
|
647
|
+
require "supply/setup"
|
|
648
|
+
|
|
649
|
+
metadata = kit_path("KIT_METADATA_PATH")
|
|
650
|
+
package = kit_env("KIT_ANDROID_PACKAGE")
|
|
651
|
+
Supply.config = FastlaneCore::Configuration.create(
|
|
652
|
+
Supply::Options.available_options,
|
|
653
|
+
package_name: package,
|
|
654
|
+
json_key: kit_play_json_key,
|
|
655
|
+
metadata_path: metadata
|
|
656
|
+
)
|
|
657
|
+
with_images = kit_flag?("KIT_METADATA_SCREENSHOTS")
|
|
658
|
+
setup = Supply::Setup.new
|
|
659
|
+
client = setup.send(:client) # the client Setup downloads images with; it holds the edit
|
|
660
|
+
client.begin_edit(package_name: package)
|
|
661
|
+
missing = []
|
|
662
|
+
begin
|
|
663
|
+
client.listings.each do |listing|
|
|
664
|
+
setup.store_metadata(listing)
|
|
665
|
+
next unless with_images
|
|
666
|
+
|
|
667
|
+
# download_images logs a failed image type and carries on, so count what Play has
|
|
668
|
+
# first and check the files afterwards.
|
|
669
|
+
expected = (Supply::IMAGES_TYPES + Supply::SCREENSHOT_TYPES).to_h do |type|
|
|
670
|
+
[type, client.fetch_images(image_type: type, language: listing.language).length]
|
|
671
|
+
end
|
|
672
|
+
started = Time.now
|
|
673
|
+
setup.download_images(listing)
|
|
674
|
+
missing.concat(kit_play_missing_images(metadata, listing.language, expected, started))
|
|
675
|
+
end
|
|
676
|
+
ensure
|
|
677
|
+
client.abort_current_edit
|
|
678
|
+
end
|
|
679
|
+
unless missing.empty?
|
|
680
|
+
UI.user_error!("Play images failed to download: #{missing.join(', ')}. The text is in #{metadata}; run the pull again.")
|
|
681
|
+
end
|
|
682
|
+
UI.success("Downloaded the Play listing#{with_images ? ', images and screenshots' : ''} to #{metadata}.")
|
|
683
|
+
end
|
|
684
|
+
|
|
685
|
+
# Listing only: no AAB/APK, no changelogs, no rollout or promotion (supply
|
|
686
|
+
# touches a track only for a binary, `rollout` or `track_promote_to`).
|
|
687
|
+
# supply still wants one release to hang the edit on and fails when a track
|
|
688
|
+
# holds several (a staged rollout), so pick the newest version code of the
|
|
689
|
+
# first track that has any.
|
|
690
|
+
desc "Upload the Play listing text; images and screenshots too when KIT_METADATA_SCREENSHOTS=1 (replaces them)."
|
|
691
|
+
desc "KIT_METADATA_TEXT=0 sends the images and screenshots alone and leaves the text as the store has it."
|
|
692
|
+
desc "In: KIT_METADATA_PATH, KIT_METADATA_SCREENSHOTS, KIT_METADATA_TEXT, KIT_ANDROID_PACKAGE, KIT_PLAY_JSON_KEY, KIT_SKIP_UPLOAD."
|
|
693
|
+
lane :metadata_push do
|
|
694
|
+
metadata = kit_require_file("KIT_METADATA_PATH")
|
|
695
|
+
next if kit_skip_upload?("the Play listing upload", metadata)
|
|
696
|
+
|
|
697
|
+
json_key = kit_play_json_key
|
|
698
|
+
package = kit_env("KIT_ANDROID_PACKAGE")
|
|
699
|
+
parts = kit_listing_parts
|
|
700
|
+
track = nil
|
|
701
|
+
code = nil
|
|
702
|
+
%w[production beta alpha internal].each do |t|
|
|
703
|
+
codes = begin
|
|
704
|
+
google_play_track_version_codes(track: t, json_key: json_key, package_name: package)
|
|
705
|
+
rescue StandardError => e
|
|
706
|
+
UI.important("Could not fetch version codes for the '#{t}' track: #{e.message}")
|
|
707
|
+
[]
|
|
708
|
+
end
|
|
709
|
+
next if codes.empty?
|
|
710
|
+
|
|
711
|
+
track = t
|
|
712
|
+
code = codes.max
|
|
713
|
+
break
|
|
714
|
+
end
|
|
715
|
+
UI.user_error!("No release on any Play track: upload a build with `kit release android` before pushing the listing.") unless track
|
|
716
|
+
|
|
717
|
+
upload_to_play_store(
|
|
718
|
+
package_name: package,
|
|
719
|
+
json_key: json_key,
|
|
720
|
+
metadata_path: metadata,
|
|
721
|
+
track: track,
|
|
722
|
+
version_code: code,
|
|
723
|
+
**kit_supply_listing_options(parts)
|
|
724
|
+
)
|
|
725
|
+
UI.success("Updated the Play #{kit_listing_summary(parts, 'images and screenshots')}.")
|
|
726
|
+
end
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
# ------------------------------------------- status, promote, rollout ---
|
|
730
|
+
# `kit release status|promote|rollout`: no lane here builds or uploads a binary.
|
|
731
|
+
# The selection helpers (which build, which release, which group) are plain
|
|
732
|
+
# methods over the API objects so `test/fastlane` can run them against stubs.
|
|
733
|
+
|
|
734
|
+
# A track that cannot be read is reported, not fatal: kit shows it as unknown.
|
|
735
|
+
def kit_status_error(key, error)
|
|
736
|
+
message = error.message.to_s.lines.first.to_s.strip
|
|
737
|
+
UI.important("Could not read #{key.downcase}: #{message}")
|
|
738
|
+
kit_emit("STATUS_#{key}_ERROR", message)
|
|
739
|
+
end
|
|
740
|
+
|
|
741
|
+
# Spaceship calls outside an action (groups, builds, the phased release) need the token set.
|
|
742
|
+
def kit_asc_login
|
|
743
|
+
require "spaceship"
|
|
744
|
+
Spaceship::ConnectAPI.token = Spaceship::ConnectAPI::Token.from(hash: kit_asc_api_key)
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
def kit_ios_app
|
|
748
|
+
app = Spaceship::ConnectAPI::App.find(kit_ios_bundle_id)
|
|
749
|
+
UI.user_error!("No app with bundle id #{kit_ios_bundle_id} in App Store Connect") unless app
|
|
750
|
+
app
|
|
751
|
+
end
|
|
752
|
+
|
|
753
|
+
# nil when the version has no phased release: Spaceship raises a bare
|
|
754
|
+
# RuntimeError "No data" for that answer. Anything else (auth, network) is a
|
|
755
|
+
# real failure and must not read as "no phased release".
|
|
756
|
+
def kit_ios_phased_release(version)
|
|
757
|
+
version.fetch_app_store_version_phased_release
|
|
758
|
+
rescue RuntimeError => e
|
|
759
|
+
raise unless e.instance_of?(RuntimeError) && e.message == "No data"
|
|
760
|
+
|
|
761
|
+
nil
|
|
762
|
+
end
|
|
763
|
+
|
|
764
|
+
# Group names (or ids) -> the app's TestFlight groups. pilot skips a name it
|
|
765
|
+
# cannot match and still reports success, so a miss fails here.
|
|
766
|
+
def kit_ios_resolve_groups(all_groups, names)
|
|
767
|
+
names.map do |name|
|
|
768
|
+
all_groups.find { |g| g.name == name || g.id == name } ||
|
|
769
|
+
UI.user_error!("No TestFlight group '#{name}' for this app (groups: #{all_groups.map(&:name).join(', ')})")
|
|
770
|
+
end
|
|
771
|
+
end
|
|
772
|
+
|
|
773
|
+
# Builds of one version that were distributed to one TestFlight group.
|
|
774
|
+
def kit_ios_group_builds(app, group, version)
|
|
775
|
+
Spaceship::ConnectAPI.get_builds(
|
|
776
|
+
filter: { app: app.id, betaGroups: group.id, "preReleaseVersion.version" => version, expired: "false" },
|
|
777
|
+
includes: "preReleaseVersion",
|
|
778
|
+
sort: "-uploadedDate",
|
|
779
|
+
limit: 200
|
|
780
|
+
).all_pages.flat_map(&:to_models)
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
# A source group must receive its builds explicitly (the groups
|
|
784
|
+
# `kit release ios --track alpha|beta` distributes to). A group with automatic
|
|
785
|
+
# distribution (hasAccessToAllBuilds, App Store Connect's default for an
|
|
786
|
+
# internal group) holds every upload, `--track internal` builds included, and
|
|
787
|
+
# kit cannot tell those apart there.
|
|
788
|
+
def kit_ios_require_explicit_group(group)
|
|
789
|
+
all_builds = group.has_access_to_all_builds
|
|
790
|
+
# No answer for an internal group counts as "all builds": that is App Store
|
|
791
|
+
# Connect's default for them, and promoting an internal build is the worse error.
|
|
792
|
+
all_builds = true if all_builds.nil? && group.is_internal_group
|
|
793
|
+
return group unless all_builds
|
|
794
|
+
|
|
795
|
+
UI.user_error!(
|
|
796
|
+
"The TestFlight group '#{group.name}' receives every build automatically, internal (KIT_INTERNAL) builds " \
|
|
797
|
+
"included, so kit cannot tell which of its builds may be promoted. Promotion needs a source group that " \
|
|
798
|
+
"receives builds explicitly: the one `kit release ios --track alpha|beta` distributes to " \
|
|
799
|
+
"(release.ios.testflightGroups), with automatic distribution off."
|
|
800
|
+
)
|
|
801
|
+
end
|
|
802
|
+
|
|
803
|
+
# The build to promote, from the source group's builds only: `number` when
|
|
804
|
+
# given, else the highest build number. An internal build (compiled with
|
|
805
|
+
# KIT_INTERNAL, sent to no group) is not among them, as long as the group
|
|
806
|
+
# receives builds explicitly (kit_ios_require_explicit_group).
|
|
807
|
+
def kit_ios_select_build(builds, number, version, group_name)
|
|
808
|
+
if number
|
|
809
|
+
builds.find { |b| b.version.to_s == number.to_s } ||
|
|
810
|
+
UI.user_error!("Build #{number} of #{version} is not in the TestFlight group '#{group_name}': only a build " \
|
|
811
|
+
"released to that group can be promoted (internal builds are never promoted)")
|
|
812
|
+
else
|
|
813
|
+
builds.max_by { |b| b.version.to_i } ||
|
|
814
|
+
UI.user_error!("No build of #{version} in the TestFlight group '#{group_name}': nothing to promote")
|
|
815
|
+
end
|
|
816
|
+
end
|
|
817
|
+
|
|
818
|
+
# [app, build]: looked up and checked against the source group before anything is changed.
|
|
819
|
+
def kit_ios_promote_build
|
|
820
|
+
kit_asc_login
|
|
821
|
+
app = kit_ios_app
|
|
822
|
+
version = kit_env("KIT_IOS_VERSION")
|
|
823
|
+
group = kit_ios_resolve_groups(app.get_beta_groups, [kit_env("KIT_TESTFLIGHT_FROM_GROUP")]).first
|
|
824
|
+
kit_ios_require_explicit_group(group)
|
|
825
|
+
builds = kit_ios_group_builds(app, group, version)
|
|
826
|
+
[app, kit_ios_select_build(builds, kit_env_opt("KIT_IOS_BUILD"), version, group.name)]
|
|
827
|
+
end
|
|
828
|
+
|
|
829
|
+
platform :ios do
|
|
830
|
+
desc "Print the latest TestFlight build and the live App Store build."
|
|
831
|
+
desc "In: KIT_IOS_BUNDLE_ID, KIT_IOS_VERSION (optional: TestFlight builds of this version only), ASC_*. " \
|
|
832
|
+
"Out: KIT_STATUS_TESTFLIGHT_BUILD=, KIT_STATUS_TESTFLIGHT_VERSION=, KIT_STATUS_APPSTORE_BUILD=, " \
|
|
833
|
+
"KIT_STATUS_APPSTORE_VERSION=, KIT_STATUS_APPSTORE_PHASED= (or KIT_STATUS_APPSTORE_PHASED_ERROR=), " \
|
|
834
|
+
"KIT_STATUS_<TRACK>_ERROR= (empty BUILD = no build)."
|
|
835
|
+
lane :status do
|
|
836
|
+
api_key = kit_asc_api_key
|
|
837
|
+
bundle_id = kit_ios_bundle_id
|
|
838
|
+
begin
|
|
839
|
+
params = { api_key: api_key, app_identifier: bundle_id, initial_build_number: 0 }
|
|
840
|
+
version = kit_env_opt("KIT_IOS_VERSION")
|
|
841
|
+
params[:version] = version if version
|
|
842
|
+
build = latest_testflight_build_number(params).to_i
|
|
843
|
+
kit_emit("STATUS_TESTFLIGHT_BUILD", build.zero? ? "" : build)
|
|
844
|
+
kit_emit("STATUS_TESTFLIGHT_VERSION", lane_context[SharedValues::LATEST_TESTFLIGHT_VERSION]) unless build.zero?
|
|
845
|
+
rescue StandardError => e
|
|
846
|
+
kit_status_error("TESTFLIGHT", e)
|
|
847
|
+
end
|
|
848
|
+
begin
|
|
849
|
+
build = app_store_build_number(api_key: api_key, app_identifier: bundle_id, live: true)
|
|
850
|
+
kit_emit("STATUS_APPSTORE_BUILD", build)
|
|
851
|
+
kit_emit("STATUS_APPSTORE_VERSION", lane_context[SharedValues::LATEST_VERSION])
|
|
852
|
+
rescue StandardError => e
|
|
853
|
+
# An app that was never released has no live version: empty, not unknown.
|
|
854
|
+
if e.message.include?("Could not find a live-version")
|
|
855
|
+
kit_emit("STATUS_APPSTORE_BUILD", "")
|
|
856
|
+
else
|
|
857
|
+
kit_status_error("APPSTORE", e)
|
|
858
|
+
end
|
|
859
|
+
end
|
|
860
|
+
begin
|
|
861
|
+
kit_asc_login
|
|
862
|
+
live = kit_ios_app.get_live_app_store_version
|
|
863
|
+
phased = live && kit_ios_phased_release(live)
|
|
864
|
+
kit_emit("STATUS_APPSTORE_PHASED", phased.phased_release_state) if phased
|
|
865
|
+
rescue StandardError => e
|
|
866
|
+
# Not the same as "no phased release": kit shows the phased state as unknown.
|
|
867
|
+
UI.important("Could not read the phased release: #{e.message}")
|
|
868
|
+
kit_emit("STATUS_APPSTORE_PHASED_ERROR", e.message.to_s.lines.first.to_s.strip)
|
|
869
|
+
end
|
|
870
|
+
end
|
|
871
|
+
|
|
872
|
+
desc "Print the build a promotion would move: it must be in the source TestFlight group."
|
|
873
|
+
desc "In: KIT_IOS_BUNDLE_ID, KIT_IOS_VERSION, KIT_TESTFLIGHT_FROM_GROUP, KIT_IOS_BUILD (optional: check this " \
|
|
874
|
+
"build; default the highest build number in the group), ASC_*. Out: KIT_PROMOTE_BUILD=<n>."
|
|
875
|
+
lane :promote_build do
|
|
876
|
+
_app, build = kit_ios_promote_build
|
|
877
|
+
kit_emit("PROMOTE_BUILD", build.version)
|
|
878
|
+
end
|
|
879
|
+
|
|
880
|
+
desc "Distribute a build from one TestFlight group to others (no upload)."
|
|
881
|
+
desc "In: KIT_IOS_BUNDLE_ID, KIT_IOS_VERSION, KIT_TESTFLIGHT_FROM_GROUP, KIT_IOS_BUILD (optional), " \
|
|
882
|
+
"KIT_TESTFLIGHT_GROUPS (comma list: the destination groups), KIT_RELEASE_NOTES (optional: replaces What " \
|
|
883
|
+
"to Test), KIT_TESTFLIGHT_WAIT_TIMEOUT (seconds, default 900), ASC_*."
|
|
884
|
+
lane :promote_testflight do
|
|
885
|
+
names = kit_list("KIT_TESTFLIGHT_GROUPS")
|
|
886
|
+
UI.user_error!("KIT_TESTFLIGHT_GROUPS is empty: a promotion needs the destination tester group") if names.empty?
|
|
887
|
+
app, build = kit_ios_promote_build
|
|
888
|
+
groups = kit_ios_resolve_groups(app.get_beta_groups, names).map(&:name)
|
|
889
|
+
params = {
|
|
890
|
+
api_key: kit_asc_api_key,
|
|
891
|
+
app_identifier: kit_ios_bundle_id,
|
|
892
|
+
distribute_only: true,
|
|
893
|
+
app_version: kit_env("KIT_IOS_VERSION"),
|
|
894
|
+
build_number: build.version.to_s,
|
|
895
|
+
distribute_external: true,
|
|
896
|
+
groups: groups,
|
|
897
|
+
# The build exists (looked up above); never poll without an end for one still processing.
|
|
898
|
+
wait_processing_timeout_duration: kit_env_opt("KIT_TESTFLIGHT_WAIT_TIMEOUT", "900").to_i
|
|
899
|
+
}
|
|
900
|
+
notes = kit_env_opt("KIT_RELEASE_NOTES")
|
|
901
|
+
params[:changelog] = notes if notes
|
|
902
|
+
upload_to_testflight(params)
|
|
903
|
+
UI.success("Distributed build #{build.version} to TestFlight groups: #{groups.join(', ')}.")
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
desc "Submit a build from a TestFlight group for App Store review (no upload)."
|
|
907
|
+
desc "In: KIT_IOS_BUNDLE_ID, KIT_IOS_VERSION, KIT_TESTFLIGHT_FROM_GROUP, KIT_IOS_BUILD (optional), " \
|
|
908
|
+
"KIT_RELEASE_NOTES (What's New, en-US), KIT_APPSTORE_PHASED (default 1), KIT_APPSTORE_SUBMIT (default 1), ASC_*."
|
|
909
|
+
lane :promote_appstore do
|
|
910
|
+
whats_new = kit_env_opt("KIT_RELEASE_NOTES", "")
|
|
911
|
+
UI.user_error!("KIT_RELEASE_NOTES is empty: App Store Connect will not submit an update without What's New.") if whats_new.empty?
|
|
912
|
+
_app, build = kit_ios_promote_build
|
|
913
|
+
|
|
914
|
+
# Same submit, phased and What's New rules as upload_appstore, and the same
|
|
915
|
+
# empty metadata dir: deliver must not load the repo's listing.
|
|
916
|
+
Dir.mktmpdir("kit-deliver") do |empty|
|
|
917
|
+
upload_to_app_store(
|
|
918
|
+
api_key: kit_asc_api_key,
|
|
919
|
+
app_identifier: kit_ios_bundle_id,
|
|
920
|
+
app_version: kit_env("KIT_IOS_VERSION"),
|
|
921
|
+
build_number: build.version.to_s,
|
|
922
|
+
skip_binary_upload: true,
|
|
923
|
+
submit_for_review: kit_flag?("KIT_APPSTORE_SUBMIT", default: true),
|
|
924
|
+
automatic_release: false,
|
|
925
|
+
phased_release: kit_flag?("KIT_APPSTORE_PHASED", default: true),
|
|
926
|
+
precheck_include_in_app_purchases: false,
|
|
927
|
+
release_notes: { "en-US" => whats_new },
|
|
928
|
+
metadata_path: File.join(empty, "metadata"),
|
|
929
|
+
screenshots_path: File.join(empty, "screenshots"),
|
|
930
|
+
skip_screenshots: true,
|
|
931
|
+
force: true
|
|
932
|
+
)
|
|
933
|
+
end
|
|
934
|
+
UI.success("Submitted build #{build.version} to the App Store for review.")
|
|
935
|
+
end
|
|
936
|
+
|
|
937
|
+
# The App Store has no rollout percentage: a phased release follows Apple's
|
|
938
|
+
# fixed 7-day schedule and can only be paused, resumed or completed.
|
|
939
|
+
desc "Pause, resume or complete the phased release of the live App Store version."
|
|
940
|
+
desc "In: KIT_ROLLOUT_ACTION (halt|resume|complete), KIT_IOS_BUNDLE_ID, ASC_*. " \
|
|
941
|
+
"Out: KIT_ROLLOUT_VERSION=, KIT_ROLLOUT_STATE=."
|
|
942
|
+
lane :rollout do
|
|
943
|
+
action = kit_env("KIT_ROLLOUT_ACTION")
|
|
944
|
+
UI.user_error!("KIT_ROLLOUT_ACTION must be halt, resume or complete, got '#{action}'") unless %w[halt resume complete].include?(action)
|
|
945
|
+
|
|
946
|
+
kit_asc_login
|
|
947
|
+
live = kit_ios_app.get_live_app_store_version
|
|
948
|
+
UI.user_error!("No live App Store version for #{kit_ios_bundle_id}") unless live
|
|
949
|
+
phased = kit_ios_phased_release(live)
|
|
950
|
+
UI.user_error!("#{live.version_string} has no phased release (it was released to everyone at once)") unless phased
|
|
951
|
+
|
|
952
|
+
state = phased.phased_release_state
|
|
953
|
+
allowed = { "halt" => %w[ACTIVE], "resume" => %w[PAUSED], "complete" => %w[ACTIVE PAUSED] }.fetch(action)
|
|
954
|
+
UI.user_error!("Cannot #{action} the phased release of #{live.version_string}: it is #{state}") unless allowed.include?(state)
|
|
955
|
+
|
|
956
|
+
updated = case action
|
|
957
|
+
when "halt" then phased.pause
|
|
958
|
+
when "resume" then phased.resume
|
|
959
|
+
else phased.complete
|
|
960
|
+
end
|
|
961
|
+
kit_emit("ROLLOUT_VERSION", live.version_string)
|
|
962
|
+
kit_emit("ROLLOUT_STATE", updated ? updated.phased_release_state : state)
|
|
963
|
+
end
|
|
964
|
+
end
|
|
965
|
+
|
|
966
|
+
# kit track name (or Play track name) -> Play track name.
|
|
967
|
+
def kit_play_track_name(track)
|
|
968
|
+
tracks = { "internal" => "internal", "alpha" => "alpha", "beta" => "beta",
|
|
969
|
+
"prod" => "production", "production" => "production" }
|
|
970
|
+
tracks.fetch(track) { UI.user_error!("Unknown Play track '#{track}' (#{tracks.keys.join(', ')})") }
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
def kit_play_no_upload
|
|
974
|
+
{ skip_upload_apk: true, skip_upload_aab: true, skip_upload_metadata: true,
|
|
975
|
+
skip_upload_images: true, skip_upload_screenshots: true, skip_upload_changelogs: true }
|
|
976
|
+
end
|
|
977
|
+
|
|
978
|
+
# The production release a rollout change applies to: the one staged rollout
|
|
979
|
+
# in progress, or the halted one for `resume`. Never a draft (supply's own
|
|
980
|
+
# rollout update would publish it) and never a guess between two.
|
|
981
|
+
def kit_play_rollout_release(releases, action, code)
|
|
982
|
+
want = action == "resume" ? "halted" : "inProgress"
|
|
983
|
+
found = (releases || []).select { |r| r.status == want }
|
|
984
|
+
found = found.select { |r| (r.version_codes || []).map(&:to_s).include?(code.to_s) } if code
|
|
985
|
+
if found.empty?
|
|
986
|
+
why = want == "halted" ? "there is no halted rollout to resume" : "no staged rollout is in progress (resume a halted one first)"
|
|
987
|
+
UI.user_error!("No #{want} release on the production track#{code ? " with version code #{code}" : ''}: #{why}")
|
|
988
|
+
end
|
|
989
|
+
if found.size > 1
|
|
990
|
+
codes = found.flat_map { |r| r.version_codes || [] }.join(", ")
|
|
991
|
+
UI.user_error!("More than one #{want} release on the production track (version codes #{codes}): pass --build <version code>")
|
|
992
|
+
end
|
|
993
|
+
found.first
|
|
994
|
+
end
|
|
995
|
+
|
|
996
|
+
# Set the release's status and user fraction for the action. Halt and resume
|
|
997
|
+
# keep the fraction the rollout had. A release halted with no fraction was at
|
|
998
|
+
# 100%: Play rejects it as inProgress, and completing it is the user's call.
|
|
999
|
+
def kit_play_apply_rollout(release, action, fraction)
|
|
1000
|
+
case action
|
|
1001
|
+
when "percent"
|
|
1002
|
+
value = fraction.to_f
|
|
1003
|
+
UI.user_error!("KIT_PLAY_ROLLOUT must be in (0, 1], got '#{fraction}'") unless value.positive? && value <= 1
|
|
1004
|
+
release.status = value >= 1 ? "completed" : "inProgress"
|
|
1005
|
+
release.user_fraction = value >= 1 ? nil : value
|
|
1006
|
+
when "complete"
|
|
1007
|
+
release.status = "completed"
|
|
1008
|
+
release.user_fraction = nil
|
|
1009
|
+
when "halt"
|
|
1010
|
+
release.status = "halted"
|
|
1011
|
+
when "resume"
|
|
1012
|
+
if release.user_fraction.nil?
|
|
1013
|
+
codes = (release.version_codes || []).join(", ")
|
|
1014
|
+
UI.user_error!("The halted release (version code #{codes}) was halted at 100%, so there is no staged rollout " \
|
|
1015
|
+
"to resume. Release it to everyone with `kit release rollout android --complete`.")
|
|
1016
|
+
end
|
|
1017
|
+
release.status = "inProgress"
|
|
1018
|
+
else
|
|
1019
|
+
UI.user_error!("KIT_ROLLOUT_ACTION must be percent, halt, resume or complete, got '#{action}'")
|
|
1020
|
+
end
|
|
1021
|
+
release
|
|
1022
|
+
end
|
|
1023
|
+
|
|
1024
|
+
# One Play edit: pick the release, change it, commit. Not the supply action:
|
|
1025
|
+
# its rollout update also matches draft releases, cannot find a halted one and
|
|
1026
|
+
# overwrites the user fraction.
|
|
1027
|
+
def kit_play_update_rollout(action, fraction, code)
|
|
1028
|
+
require "supply"
|
|
1029
|
+
package = kit_env("KIT_ANDROID_PACKAGE")
|
|
1030
|
+
Supply.config = FastlaneCore::Configuration.create(
|
|
1031
|
+
Supply::Options.available_options,
|
|
1032
|
+
{ json_key: kit_play_json_key, package_name: package, track: "production" }
|
|
1033
|
+
)
|
|
1034
|
+
client = Supply::Client.make_from_config
|
|
1035
|
+
client.begin_edit(package_name: package)
|
|
1036
|
+
begin
|
|
1037
|
+
track = client.tracks("production").first
|
|
1038
|
+
UI.user_error!("The app has no production track") unless track
|
|
1039
|
+
release = kit_play_apply_rollout(kit_play_rollout_release(track.releases, action, code), action, fraction)
|
|
1040
|
+
# Play keeps the track's other releases when the update names only this one.
|
|
1041
|
+
track.releases = [release]
|
|
1042
|
+
client.update_track("production", track)
|
|
1043
|
+
client.commit_current_edit!
|
|
1044
|
+
release
|
|
1045
|
+
rescue StandardError
|
|
1046
|
+
begin
|
|
1047
|
+
client.abort_current_edit
|
|
1048
|
+
rescue StandardError
|
|
1049
|
+
nil
|
|
1050
|
+
end
|
|
1051
|
+
raise
|
|
1052
|
+
end
|
|
1053
|
+
end
|
|
1054
|
+
|
|
1055
|
+
platform :android do
|
|
1056
|
+
desc "Print the version codes and release names on each Play track."
|
|
1057
|
+
desc "In: KIT_ANDROID_PACKAGE, KIT_PLAY_JSON_KEY, KIT_STATUS_TRACKS (comma list, default every track). " \
|
|
1058
|
+
"Out per track: KIT_STATUS_<TRACK>_CODES=<a,b>, KIT_STATUS_<TRACK>_NAMES=<json array>, KIT_STATUS_<TRACK>_ERROR=."
|
|
1059
|
+
lane :status do
|
|
1060
|
+
json_key = kit_play_json_key
|
|
1061
|
+
package = kit_env("KIT_ANDROID_PACKAGE")
|
|
1062
|
+
tracks = kit_list("KIT_STATUS_TRACKS").map { |t| kit_play_track_name(t) }
|
|
1063
|
+
tracks = %w[internal alpha beta production] if tracks.empty?
|
|
1064
|
+
tracks.each do |t|
|
|
1065
|
+
key = t.upcase
|
|
1066
|
+
begin
|
|
1067
|
+
codes = google_play_track_version_codes(track: t, json_key: json_key, package_name: package)
|
|
1068
|
+
kit_emit("STATUS_#{key}_CODES", codes.sort.join(","))
|
|
1069
|
+
rescue StandardError => e
|
|
1070
|
+
kit_status_error(key, e)
|
|
1071
|
+
next
|
|
1072
|
+
end
|
|
1073
|
+
begin
|
|
1074
|
+
names = google_play_track_release_names(track: t, json_key: json_key, package_name: package)
|
|
1075
|
+
kit_emit("STATUS_#{key}_NAMES", names.compact.to_json)
|
|
1076
|
+
rescue StandardError => e
|
|
1077
|
+
UI.important("Could not fetch release names for the '#{t}' track: #{e.message}")
|
|
1078
|
+
end
|
|
1079
|
+
end
|
|
1080
|
+
end
|
|
1081
|
+
|
|
1082
|
+
# Internal builds are compiled with KIT_INTERNAL set and are never promoted.
|
|
1083
|
+
desc "Promote a release from one Play track to a later one (no upload, no rebuild)."
|
|
1084
|
+
desc "In: KIT_ANDROID_PACKAGE, KIT_PLAY_JSON_KEY, KIT_PLAY_TRACK (from: alpha|beta), KIT_PLAY_PROMOTE_TO " \
|
|
1085
|
+
"(beta|prod), KIT_ANDROID_CODE (optional: the version code to promote), KIT_PLAY_ROLLOUT (production, " \
|
|
1086
|
+
"default 0.1), KIT_PLAY_DRAFT, KIT_RELEASE_NOTES (changelog; not for production)."
|
|
1087
|
+
lane :promote do
|
|
1088
|
+
from = kit_play_track
|
|
1089
|
+
to = kit_play_track_name(kit_env("KIT_PLAY_PROMOTE_TO"))
|
|
1090
|
+
UI.user_error!("Internal builds are never promoted (they are built with KIT_INTERNAL): rebuild for #{to}") if from == "internal"
|
|
1091
|
+
|
|
1092
|
+
draft = kit_flag?("KIT_PLAY_DRAFT")
|
|
1093
|
+
code = kit_env_opt("KIT_ANDROID_CODE")
|
|
1094
|
+
params = kit_play_no_upload.merge(
|
|
1095
|
+
package_name: kit_env("KIT_ANDROID_PACKAGE"),
|
|
1096
|
+
json_key: kit_play_json_key,
|
|
1097
|
+
track: from,
|
|
1098
|
+
track_promote_to: to
|
|
1099
|
+
)
|
|
1100
|
+
params[:version_code] = code.to_i if code
|
|
1101
|
+
|
|
1102
|
+
# Same staged default and draft handling as upload_play.
|
|
1103
|
+
if draft
|
|
1104
|
+
params[:track_promote_release_status] = "draft"
|
|
1105
|
+
elsif to == "production"
|
|
1106
|
+
rollout = kit_env_opt("KIT_PLAY_ROLLOUT", "0.1")
|
|
1107
|
+
if rollout.to_f >= 1
|
|
1108
|
+
params[:track_promote_release_status] = "completed"
|
|
1109
|
+
else
|
|
1110
|
+
params[:track_promote_release_status] = "inProgress"
|
|
1111
|
+
params[:rollout] = rollout
|
|
1112
|
+
end
|
|
1113
|
+
else
|
|
1114
|
+
params[:track_promote_release_status] = "completed"
|
|
1115
|
+
end
|
|
1116
|
+
|
|
1117
|
+
notes = kit_env_opt("KIT_RELEASE_NOTES", "")
|
|
1118
|
+
Dir.mktmpdir("kit-play-metadata") do |metadata|
|
|
1119
|
+
if to != "production" && !notes.empty? && code
|
|
1120
|
+
locale = kit_env_opt("KIT_PLAY_LOCALE", "en-US")
|
|
1121
|
+
dir = File.join(metadata, locale, "changelogs")
|
|
1122
|
+
FileUtils.mkdir_p(dir)
|
|
1123
|
+
File.write(File.join(dir, "#{code}.txt"), notes[0, 500])
|
|
1124
|
+
params[:metadata_path] = metadata
|
|
1125
|
+
params[:skip_upload_changelogs] = false
|
|
1126
|
+
end
|
|
1127
|
+
upload_to_play_store(params)
|
|
1128
|
+
end
|
|
1129
|
+
UI.success("Promoted #{code ? "version code #{code}" : 'the release'} from '#{from}' to '#{to}'#{draft ? ' as a draft' : ''}.")
|
|
1130
|
+
end
|
|
1131
|
+
|
|
1132
|
+
desc "Change the production staged rollout: set the fraction, halt, resume or complete it."
|
|
1133
|
+
desc "In: KIT_ROLLOUT_ACTION (percent|halt|resume|complete), KIT_PLAY_ROLLOUT (percent: fraction in (0, 1]), " \
|
|
1134
|
+
"KIT_ANDROID_CODE (optional: the release's version code), KIT_ANDROID_PACKAGE, KIT_PLAY_JSON_KEY. " \
|
|
1135
|
+
"Out: KIT_ROLLOUT_STATE=, KIT_ROLLOUT_FRACTION=, KIT_ROLLOUT_CODE=."
|
|
1136
|
+
lane :rollout do
|
|
1137
|
+
action = kit_env("KIT_ROLLOUT_ACTION")
|
|
1138
|
+
UI.user_error!("KIT_ROLLOUT_ACTION must be percent, halt, resume or complete, got '#{action}'") unless %w[percent halt resume complete].include?(action)
|
|
1139
|
+
|
|
1140
|
+
fraction = action == "percent" ? kit_env("KIT_PLAY_ROLLOUT") : nil
|
|
1141
|
+
release = kit_play_update_rollout(action, fraction, kit_env_opt("KIT_ANDROID_CODE"))
|
|
1142
|
+
kit_emit("ROLLOUT_STATE", release.status)
|
|
1143
|
+
kit_emit("ROLLOUT_FRACTION", release.user_fraction) if release.user_fraction
|
|
1144
|
+
kit_emit("ROLLOUT_CODE", (release.version_codes || []).map(&:to_i).max)
|
|
1145
|
+
end
|
|
413
1146
|
end
|