Delivered remotely for a business based in Portland, United States. Names withheld by agreement.
Project Overview
Commercial equipment dealerships depend on established Dealer Management Systems housing decades of accounting, warranty, and multi-branch inventory rules. Replacing that core is rarely practical, yet locking it to desktop terminals forces service writers, parts runners, yard inspectors, and fleet buyers into phone calls, clipboards, and manual re-keying.
We shipped a dual mobile platform extending the existing DMS into the field without modifying its transactional core. Fleet customers gained a React Native and TypeScript portal for repairs, backorders, and rentals, while dealership staff gained a Kotlin and Java Android client built for rugged handhelds and offline yard inspections.
Business Bottleneck
Dealership workflows break at the physical edges of the lot. When a rental excavator returns on a flatbed trailer, a yard inspector walking the machine in a concrete lot outside Wi-Fi range used to scribble damage notes on paper, walk back to a terminal, and type them into the DMS hours later—often after billing had already closed the contract.
On the customer side, commercial fleet managers overseeing dozens of units across multiple job sites had no self-service view into repair bay progress or parts availability. Every status check became an inbound call to a service advisor, interrupting shop dispatchers and delaying estimate approvals that held up bay throughput.
Architectural Strategy
Rather than coupling mobile screens directly to brittle legacy DMS endpoints, we introduced an anti-corruption integration boundary and split the client architecture along operational lines:
- Dual-client specialization. Fleet customers operate across personal iOS and Android devices and need clean contract, invoice, and approval workflows; React Native with TypeScript and Redux delivered parity across both platforms from one codebase. Dealership staff operate company-issued Android terminals with integrated laser scanners and unreliable bay connectivity; Kotlin and Java with Retrofit gave direct access to peripheral SDKs and deterministic background sync.
- Offline-by-default mutations. Both mobile clients persist active work queues and reference lookups in embedded SQLite so network drops in steel-framed parts warehouses never discard technician labor or inspection photos.
- Contract-isolated DMS adaptation. Legacy flat-file and multi-table DMS conventions stay behind a normalization service that exposes typed, paginated JSON resources to mobile apps.
Core Capabilities
Customer Self-Service Portal (React Native & TypeScript)
- Live Fleet & Rental Visibility: Equipment owners view active rentals, scheduled preventative maintenance windows, hour-meter histories, and branch locations from a normalized Redux store.
- Estimate & Repair Approvals: Service writers push itemized labor and parts estimates straight to the customer's device, capturing timestamped digital sign-off that flows back into the DMS repair order.
- Parts Order & Backorder Tracking: Customers search dealer parts availability by part number or equipment serial, submit replenishment requests, and track special-order fulfillment stages.
Dealership Staff Companion (Kotlin, Java & Retrofit)
- Rental Check-In / Check-Out Inspections: Guided walk-around checklists capture condition ratings, fuel/hour readings, and annotated defect photos directly in SQLite before syncing to the branch contract.
- Warehouse Parts Picking & Bin Verification: Hardware barcode scans validate picked SKUs against open shop tickets and highlight bin discrepancies before inventory moves.
- Mobile Service Bay Updates: Technicians clock onto labor operations, attach diagnostic notes, and flag needed parts from beside the vehicle rather than queuing at shared shop kiosks.
Technical Architecture
The customer application organizes domain state into Redux slices keyed by branch, unit, and work-order ID, backed by an embedded SQLite cache for fast cold starts and read resilience when visiting remote job sites. Requests pass through a typed TypeScript API client that enforces schema validation at runtime before hydrating UI components.
The staff Android application pairs existing Java peripheral/scanner utilities with Kotlin feature modules structured around Repository and ViewModel boundaries. Retrofit and OkHttp interceptors manage short-lived branch tokens, attach per-request idempotency keys, and serialize outbound SQLite mutation queues once connectivity stabilizes.
Flow: React Native Customer App (Redux + SQLite) & Native Android Staff App (Kotlin/Java + Retrofit + SQLite) → Typed REST Integration Gateway → Legacy DMS Adapter & Concurrency Guard → On-Premise Dealer Management System.
Technology Stack
| Category | Technology |
|---|---|
| Customer Mobile UI | React Native with React and strict TypeScript view models |
| Customer State Layer | Redux store with normalized entity slices and optimistic request tracking |
| Staff Native Client | Kotlin for new feature modules interoperating with legacy Java services |
| Networking (Android) | Retrofit with OkHttp interceptors, token refresh authenticators, and typed converters |
| Local Persistence | Embedded SQLite on both clients for offline mutation queues and catalog caches |
| DMS Integration Bridge | Anti-corruption adapter layer translating legacy DMS record schemas into JSON DTOs |
| Media & Evidence | Chunked photo upload pipeline with EXIF stripping and local retry state |
| Device Capabilities | Hardware barcode scanning for parts bins and VIN/serial plates on Android terminals |
| Conflict Handling | Version-stamped work-order locks and idempotency keys on mutating endpoints |
| Security & Auth | Branch-scoped RBAC tokens with encrypted local credential storage |
Engineering Trade-offs & Solutions
| Challenge | Architectural Solution |
|---|---|
| Desktop DMS locks a repair order whenever a service advisor opens it on a terminal | Implemented non-blocking staging tables in the integration gateway: mobile technician notes and inspection photos commit immediately to staging, then merge into the DMS work order once the desktop lock clears, alerting advisors if a manual review is required. |
| Yard staff lose Wi-Fi behind metal equipment sheds mid-inspection | Stored every checklist step, signature stroke, and photo URI in SQLite as an ordered mutation log; a background sync worker drains the queue sequentially via Retrofit and retains failed items with diagnostic codes rather than dropping data. |
| Parts catalogs contain hundreds of thousands of SKUs that overwhelm mobile memory | Replaced full-catalog downloads with branch-scoped incremental delta syncs into indexed SQLite tables, keeping keyword and barcode lookups responsive without bloating device storage. |
| Legacy Java scanner libraries lacked null-safety and clashed with modern Kotlin coroutines | Wrapped the vendor Java SDK behind narrow Kotlin adapter interfaces with explicit @Nullable annotations and single-threaded dispatcher boundaries, isolating hardware quirks from UI state. |
| Customer estimate approvals required legal auditability across time zones | Recorded server-verified UTC timestamps, device identifiers, customer user IDs, and immutable line-item snapshots at approval time, passing a signed confirmation reference into the DMS notes log. |
Security & Reliability
Dealership networks span regional branches with strict financial boundaries. Authentication issues branch-scoped tokens enforced at the gateway so customer accounts cannot probe unrelated fleets and parts clerks cannot alter inventory at neighboring branches.
On-device SQLite avoids storing payment credentials; session tokens reside in platform-encrypted storage (EncryptedSharedPreferences on Android and Keychain on iOS). Mutating Retrofit and TypeScript calls carry deterministic UUID idempotency keys so unstable cellular handoffs never duplicate rental check-ins or parts requisitions.
Performance & Scale
Legacy DMS engines target localized terminal queries rather than concurrent mobile polling. The integration gateway shields the DMS by caching read-mostly catalog and unit metadata, coalescing duplicate branch queries, and enforcing paginated updated_since delta endpoints instead of full-table pulls.
On mobile, Redux selectors memoize derived fleet views to keep React Native scrolling smooth across large equipment rosters, while Android inspection media resizes and compresses locally before entering the Retrofit queue.
Operational Outcomes
Extending the DMS to mobile devices eliminated the transcription lag between physical yard events and back-office billing. Inspection photos, meter readings, and damage signatures enter the repair and rental pipeline directly at the machine rather than hours later at a counter terminal.
Service advisors regained shop-floor focus because fleet customers inspect unit status, verify parts backorders, and approve repair estimates directly from their phones—modernizing field operations without a disruptive core DMS migration.