Skip to content

Conversation

@cristhianescobar
Copy link
Member

@cristhianescobar cristhianescobar commented Jan 24, 2026

Summary

  • Migrate core resources, theme, and UI utilities from android/core/* modules to sharedfeatures/* to enable Compose Multiplatform sharing across Android, iOS, Desktop, and Web targets
  • Create sharedfeatures/core-resources with drawable and string resources
  • Create sharedfeatures/ui-utils with theme, buttons, text fields, and utilities
  • Update all module dependencies to use new shared module paths
  • Preserve original app launcher icons (WebP format) in app-newm
  • Fix investment portfolio title font size (h1 -> h4)
  • Remove stale android:core:theme module reference from settings

Test plan

  • Run ./gradlew spotlessApply - passes
  • Run ./gradlew :sharedfeatures:test :shared:test - passes
  • Run ./gradlew :sharedfeatures:verifyPaparazziDebug - passes
  • Build and run Android app to verify UI renders correctly
  • Verify app launcher icon displays correctly

🤖 Generated with Claude Code

@cristhianescobar cristhianescobar requested a review from a team as a code owner January 24, 2026 01:21
Cristhian Escobar and others added 6 commits January 24, 2026 14:34
Move core resources, theme, and UI utilities from android/core/* modules
to sharedfeatures/* to enable Compose Multiplatform sharing across
Android, iOS, Desktop, and Web targets.

- Create sharedfeatures/core-resources with drawable and string resources
- Create sharedfeatures/ui-utils with theme, buttons, text fields, and utilities
- Update all module dependencies to use new shared module paths
- Preserve original app launcher icons (WebP format) in app-newm
- Fix investment portfolio title font size (h1 -> h4)
- Remove stale android:core:theme module reference from settings

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Update imports to use new sharedfeatures module paths:
- ToastSideEffect, PrimaryButton -> io.newm.sharedfeatures.ui
- TextFieldWithLabel, TextFieldWithLabelDefaults -> io.newm.sharedfeatures.ui.text
- Theme colors -> io.newm.sharedfeatures.theme
- Resources R -> io.newm.sharedfeatures.core.resources.R
- Replace inter font with FontFamily.Default

Co-Authored-By: Claude Opus 4.5 <[email protected]>
The original Typography had custom h1 (32sp), h2 (26sp), h3 (22sp), h4 (20sp)
definitions. Without these, the default Material h1 (96sp) was being used,
causing oversized text on password/reset screens.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Restore original typography appearance by adding custom font files
and font family definitions. This fixes the "text too high" issue
on the forgot password screen caused by different font metrics
between system default fonts and the original custom fonts.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
LoadingScreen was in androidMain but is used by commonMain code,
causing desktop and wasm builds to fail. The composable only uses
standard Compose APIs so it can be shared across all platforms.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Moved sharedfeatures/core-resources to :core-resources
- Moved sharedfeatures/ui-utils to :core-ui
- Updated all imports to use new package names:
  - io.newm.core.resources.* for resources
  - io.newm.core.ui.* for UI components
  - io.newm.core.ui.theme.* for theme
- Updated snapshot baselines for CreateAccountUi and ResetPasswordUi

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@newmskywalker newmskywalker merged commit 1b63926 into development Jan 24, 2026
7 checks passed
@newmskywalker newmskywalker deleted the cristhian/migrate-resources-to-cmp branch January 24, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants