Rebrand from Casera/MyCrib to honeyDue

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>
This commit is contained in:
Trey t
2026-03-07 06:33:57 -06:00
parent 9c574c4343
commit 1e2adf7660
450 changed files with 1730 additions and 1788 deletions

View File

@@ -1,13 +1,13 @@
# Environment Configuration Guide
This guide explains how to easily switch between local development and the dev server when developing the MyCrib iOS and Android apps.
This guide explains how to easily switch between local development and the dev server when developing the HoneyDue iOS and Android apps.
## Quick Start
**To switch environments, change ONE line in `ApiConfig.kt`:**
```kotlin
// File: composeApp/src/commonMain/kotlin/com/mycrib/shared/network/ApiConfig.kt
// File: composeApp/src/commonMain/kotlin/com/honeydue/shared/network/ApiConfig.kt
object ApiConfig {
// ⚠️ CHANGE THIS LINE ⚠️
@@ -45,7 +45,7 @@ val CURRENT_ENV = Environment.LOCAL
- Testing with real data
**Connects to:**
- **Both platforms**: `https://mycrib.treytartt.com/api`
- **Both platforms**: `https://honeyDue.treytartt.com/api`
**Setup:**
```kotlin
@@ -62,7 +62,7 @@ val CURRENT_ENV = Environment.DEV
1. **Start your local API:**
```bash
cd myCribAPI
cd honeyDueAPI
./dev.sh
```
@@ -96,8 +96,8 @@ val CURRENT_ENV = Environment.DEV
3. **Verify in logs:**
```
🌐 API Client initialized
📍 Environment: Dev Server (mycrib.treytartt.com)
🔗 Base URL: https://mycrib.treytartt.com/api
📍 Environment: Dev Server (honeyDue.treytartt.com)
🔗 Base URL: https://honeyDue.treytartt.com/api
```
## Platform-Specific Localhost Addresses
@@ -139,20 +139,20 @@ If you need to test on a physical device with local API:
4. **Update Django's `ALLOWED_HOSTS`:**
```python
# myCribAPI/myCrib/settings.py
# honeyDueAPI/honeyDue/settings.py
ALLOWED_HOSTS = ['localhost', '127.0.0.1', '192.168.1.xxx']
```
## File Structure
```
MyCribKMM/composeApp/src/
├── commonMain/kotlin/com/mycrib/shared/network/
HoneyDueKMM/composeApp/src/
├── commonMain/kotlin/com/honeydue/shared/network/
│ ├── ApiConfig.kt # ⭐ TOGGLE ENVIRONMENT HERE
│ └── ApiClient.kt # Uses ApiConfig
├── androidMain/kotlin/com/mycrib/shared/network/
├── androidMain/kotlin/com/honeydue/shared/network/
│ └── ApiClient.android.kt # Android localhost: 10.0.2.2
└── iosMain/kotlin/com/mycrib/shared/network/
└── iosMain/kotlin/com/honeydue/shared/network/
└── ApiClient.ios.kt # iOS localhost: 127.0.0.1
```
@@ -182,7 +182,7 @@ MyCribKMM/composeApp/src/
**Problem:** HTTPS connection issues
**Solutions:**
1. Verify server is accessible: `curl https://mycrib.treytartt.com/api`
1. Verify server is accessible: `curl https://honeyDue.treytartt.com/api`
2. Check that SSL certificate is valid
3. Make sure you're using `https://` not `http://`
@@ -216,10 +216,10 @@ MyCribKMM/composeApp/src/
| Action | Command/File |
|--------|--------------|
| Toggle environment | Edit `ApiConfig.kt` → `CURRENT_ENV` |
| Start local API | `cd myCribAPI && ./dev.sh` |
| Start local API | `cd honeyDueAPI && ./dev.sh` |
| Android localhost | `10.0.2.2:8000` |
| iOS localhost | `127.0.0.1:8000` |
| Dev server | `https://mycrib.treytartt.com` |
| Dev server | `https://honeyDue.treytartt.com` |
| View current env | Check app logs for `🌐` emoji |
## Example Workflow
@@ -230,7 +230,7 @@ MyCribKMM/composeApp/src/
val CURRENT_ENV = Environment.LOCAL // ✅ Use local API
```
```bash
cd myCribAPI
cd honeyDueAPI
./dev.sh # Start local server
# Work on features...
```