Total rebrand across KMM project: - Kotlin package: com.example.casera -> com.tt.honeyDue (dirs + declarations) - Gradle: rootProject.name, namespace, applicationId - Android: manifest, strings.xml (all languages), widget resources - iOS: pbxproj bundle IDs, Info.plist, entitlements, xcconfig - iOS directories: Casera/ -> HoneyDue/, CaseraTests/ -> HoneyDueTests/, etc. - Swift source: all class/struct/enum renames - Deep links: casera:// -> honeydue://, .casera -> .honeydue - App icons replaced with honeyDue honeycomb icon - Domains: casera.treytartt.com -> honeyDue.treytartt.com - Bundle IDs: com.tt.casera -> com.tt.honeyDue - Database table names preserved Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
65 lines
1.2 KiB
Markdown
65 lines
1.2 KiB
Markdown
# HoneyDue KMM - Quick Start
|
|
|
|
## 🚀 Switch API Environment
|
|
|
|
**File:** `composeApp/src/commonMain/kotlin/com/honeydue/shared/network/ApiConfig.kt`
|
|
|
|
```kotlin
|
|
object ApiConfig {
|
|
val CURRENT_ENV = Environment.LOCAL // ⬅️ CHANGE THIS
|
|
}
|
|
```
|
|
|
|
### Options:
|
|
- **`Environment.LOCAL`** → Your local API (localhost)
|
|
- **`Environment.DEV`** → Dev server (https://honeyDue.treytartt.com)
|
|
|
|
### After Changing:
|
|
1. **Android**: Sync Gradle and run
|
|
2. **iOS**: Clean Build Folder (⇧⌘K) and run
|
|
|
|
### Verify in Logs:
|
|
```
|
|
🌐 API Client initialized
|
|
📍 Environment: Local (10.0.2.2:8000)
|
|
🔗 Base URL: http://10.0.2.2:8000/api
|
|
```
|
|
|
|
---
|
|
|
|
## 📱 Run the Apps
|
|
|
|
### Android
|
|
```bash
|
|
cd HoneyDueKMM
|
|
./gradlew :composeApp:installDebug
|
|
```
|
|
|
|
### iOS
|
|
```bash
|
|
cd HoneyDueKMM/iosApp
|
|
open iosApp.xcodeproj
|
|
# Run in Xcode
|
|
```
|
|
|
|
---
|
|
|
|
## 🔧 Start Local API
|
|
|
|
```bash
|
|
cd honeyDueAPI
|
|
./dev.sh # Auto-reload on code changes
|
|
```
|
|
|
|
---
|
|
|
|
## 📚 Full Guides
|
|
|
|
- **Environment Setup**: `ENVIRONMENT_SETUP.md`
|
|
- **Workspace Overview**: `../WORKSPACE_OVERVIEW.md`
|
|
- **API Deployment**: `../honeyDueAPI/DOKKU_SETUP_GUIDE.md`
|
|
|
|
---
|
|
|
|
**That's it!** Change one line to toggle between local and remote development. ✨
|