Clean-room Android business and retail calculator prototype built with Kotlin, Jetpack Compose, and a pure Kotlin calculation core.
Target GitHub repository: FlintsLabs/flintcalc-android.
core: calculator engine, formatting, tax, memory, grand total, and cost/sell/margin logic.app: Android Compose UI that depends oncore.
JAVA_HOME=/opt/homebrew/opt/java ./gradlew :core:test :app:assembleDebugRelease bundle:
JAVA_HOME=/opt/homebrew/opt/java ./gradlew :app:bundleReleaseThe local Android SDK path is configured in local.properties for this machine:
sdk.dir=/Users/kanokpichasonsmacbookair/Library/Developer/Xamarin/android-sdk-macosxCore unit tests cover:
- Running-total behavior:
1 + 2 x 3 = 9 - Context percent:
100 + 10 % = 110,100 - 10 % = 90,100 x 10 % = 10 - Tax add/remove at 7%
- Cost/Sell/Margin calculations
- Memory, grand total, square root, backspace, and sign change