refactor: packages, classes and Res under mobi.giza (fork, Phase 3b)

docs/scripts/giza-rename.sh, run over the moves of Phase 3a:

- com.machankura.bennu.{compose,android,desktop} -> mobi.giza.{...}, in
  package lines, imports, fully qualified references, the manifest, mainClass,
  the Android namespace (one value with applicationId again), the m3Audit
  source path, the six docs/scripts tools, and the source links in docs/;
- Res moves from bennu.composeapp.generated.resources to
  mobi.giza.compose.resources, now pinned with packageOfResClass so a later
  rename of the root project leaves the imports alone;
- BennuDatabase, BennuTheme and the other eleven Bennu identifiers are Giza*.

The script's search is now the same pattern as its sed expressions, so on a
renamed tree it finds nothing and changes nothing.

Checked against the Phase 0 baseline: jvmTest 1643 run (1642 + AppDirJvmTest),
0 failed, 2 skipped; compileDebugKotlinAndroid passes; m3-audit prints the
baseline report line for line. iOS is not compiled on this Linux host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-11-18 10:40:27 +02:00
1 parent 30d5feaf87
commit 34e802ce6f
921 files changed
+7627 -7613

No files matched your search

+3 -3
View File
@@ -17,7 +17,7 @@ Usage:
"""
import os, re, sys, io, collections
UI = 'composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/ui'
UI = 'composeApp/src/commonMain/kotlin/mobi/giza/compose/ui'
STRINGS = 'composeApp/src/commonMain/composeResources/values/strings.xml'
DRY = '--apply' not in sys.argv
@@ -243,7 +243,7 @@ def main():
for start, end, value in reversed(found):
src = src[:start] + f'stringResource(Res.string.{names[value]})' + src[end:]
if changed:
for imp in ('import bennu.composeapp.generated.resources.Res',
for imp in ('import mobi.giza.compose.resources.Res',
'import org.jetbrains.compose.resources.stringResource'):
if not has_import(src, imp):
lines = src.split('\n')
@@ -256,7 +256,7 @@ def main():
lines = src.split('\n')
idx = max(i for i, l in enumerate(lines) if l.startswith('import '))
for nm in reversed(need):
imp = f'import bennu.composeapp.generated.resources.{nm}'
imp = f'import mobi.giza.compose.resources.{nm}'
if not has_import(src, imp):
lines.insert(idx + 1, imp)
src = '\n'.join(lines)