Added: - Groq AI provider (free, fast with llama-3.3-70b-versatile) - Timezone setting (22 timezones) - Journal context: include previous journals (3/7/14/30 days) - Test connection button for AI providers - Per-provider settings (API key, model, base URL remembered) - Detailed task logging (full prompts and responses) - Tasks page with expandable details - Progress modal with steps and AI output details Fixed: - Groq API endpoint (https://api.groq.com/openai/v1/chat/completions) - Ollama baseUrl leaking to other providers - Database schema references - Proper Prisma migrations (data-safe) Changed: - Default AI: OpenAI → Groq - Project renamed: TotalRecall → DearDiary - Strict anti-hallucination prompt - Docker uses prisma migrate deploy (non-destructive)
74 lines
1.5 KiB
Markdown
74 lines
1.5 KiB
Markdown
# Android App
|
|
|
|
Native Android app using Kotlin and Jetpack Compose that connects to the same DearDiary API.
|
|
|
|
## Requirements
|
|
|
|
- Android Studio Hedgehog or newer
|
|
- Android SDK 34
|
|
- Kotlin 1.9+
|
|
- Java 17
|
|
|
|
## Building
|
|
|
|
1. Open Android Studio
|
|
2. File > Open > select the `android` folder
|
|
3. Wait for Gradle sync to complete
|
|
4. Build > Build APK
|
|
|
|
Or from command line:
|
|
|
|
```bash
|
|
cd android
|
|
./gradlew assembleDebug
|
|
```
|
|
|
|
The APK will be at: `app/build/outputs/apk/debug/app-debug.apk`
|
|
|
|
## Configuration
|
|
|
|
By default, the app connects to `http://10.0.2.2:3000/api/v1/` (localhost for Android emulator).
|
|
|
|
To change the API URL, edit `app/build.gradle.kts`:
|
|
|
|
```kotlin
|
|
buildConfigField("String", "API_BASE_URL", "\"http://your-server:3000/api/v1/\"")
|
|
```
|
|
|
|
## Features
|
|
|
|
- User registration and login
|
|
- Create text entries
|
|
- Voice memos
|
|
- Health check-ins
|
|
- View history by day
|
|
- Generate AI journal
|
|
- Configure AI provider (OpenAI, Anthropic, Ollama, LM Studio)
|
|
|
|
## Project Structure
|
|
|
|
```
|
|
android/
|
|
├── app/src/main/java/com/deardiary/
|
|
│ ├── api/ # API client
|
|
│ ├── model/ # Data models
|
|
│ ├── repository/ # Repository pattern
|
|
│ ├── viewmodel/ # ViewModels
|
|
│ └── ui/ # Compose UI screens
|
|
│ ├── auth/
|
|
│ ├── home/
|
|
│ ├── history/
|
|
│ ├── journal/
|
|
│ └── settings/
|
|
├── build.gradle.kts
|
|
└── settings.gradle.kts
|
|
```
|
|
|
|
## Screenshots
|
|
|
|
Coming soon...
|
|
|
|
## License
|
|
|
|
MIT
|