mirror of
https://github.com/Dvorinka/1356.git
synced 2026-06-03 19:42:57 +00:00
37ffb93923
Version: 1.1.0 Major changes: - Implemented complete Flutter app structure with all core features - Added comprehensive UI screens for auth, countdown, goals, profile, settings, and social features - Integrated Supabase backend with authentication and data repositories - Added offline support with Hive caching and local storage - Implemented comprehensive routing with go_router - Added location services with Google Maps integration - Implemented notifications and home widget support - Added voice recording capabilities and AI chat features - Created comprehensive test suite and documentation - Added Android and iOS platform configurations - Implemented achievements system and social features - Added calendar integration and bucket list functionality This represents a complete Phase 1 milestone with 3,775 additions across 31 files.
3.6 KiB
3.6 KiB
APK Build Guide for LifeTimer Flutter App
Current Status
❌ Build Issue: The sign_in_with_apple plugin (version 5.0.0) has compilation errors with the current Flutter/Gradle setup.
Root Cause
The sign_in_with_apple plugin uses deprecated Flutter Android embedding APIs that are incompatible with the current Flutter version (3.38.5).
Solutions
Option 1: Quick Fix (Recommended for Testing)
-
Temporarily disable Apple Sign-In:
cd lifetimer # Edit pubspec.yaml and comment out sign_in_with_apple sed -i 's/^ sign_in_with_apple:/ # sign_in_with_apple:/' pubspec.yaml # Clean and rebuild flutter clean flutter pub get flutter build apk --debug -
Install the APK:
adb install build/app/outputs/flutter-apk/app-debug.apk
Option 2: Update Dependencies (Recommended for Production)
Update the problematic dependencies to compatible versions:
-
Update pubspec.yaml:
# Replace these versions sign_in_with_apple: ^6.0.0 # Updated version supabase_flutter: ^2.0.0 # Updated version -
Run update commands:
flutter pub upgrade flutter pub get flutter build apk --release
Option 3: Manual Build Commands
Debug APK (for testing)
cd lifetimer
flutter clean
flutter pub get
flutter build apk --debug --target-platform android-arm64
Release APK (for production)
cd lifetimer
flutter clean
flutter pub get
flutter build apk --release --shrink
APK Location
After successful build, the APK will be located at:
- Debug:
lifetimer/build/app/outputs/flutter-apk/app-debug.apk - Release:
lifetimer/build/app/outputs/flutter-apk/app-release.apk
Installation Commands
Install via ADB
# Debug APK
adb install lifetimer/build/app/outputs/flutter-apk/app-debug.apk
# Release APK (requires uninstalling debug version first)
adb uninstall com.example.lifetimer
adb install lifetimer/build/app/outputs/flutter-apk/app-release.apk
Install via File Transfer
- Copy the APK file to your Android device
- Enable "Install from unknown sources" in device settings
- Tap on the APK file to install
Troubleshooting
Common Issues
- "sign_in_with_apple" compilation error: Use Option 1 to disable it temporarily
- "google-services.json missing": Comment out Google services plugin in
android/app/build.gradle.kts - Gradle version conflicts: Update Flutter and Gradle versions
Environment Setup
Ensure you have:
- Flutter SDK installed and in PATH
- Android SDK with API level 34+
- Java 17 installed
- Android Studio or VS Code with Flutter extensions
Verification Commands
# Check Flutter setup
flutter doctor -v
# Check connected devices
flutter devices
# Check Android SDK
flutter doctor --android-licenses
Build Variants
Development Build
flutter build apk --debug --no-shrink
Production Build
flutter build apk --release --obfuscate --split-debug-info=build/debug-info/
Specific Architecture
flutter build apk --release --target-platform android-arm64
Next Steps
- For immediate testing: Use Option 1 to build a debug APK without Apple Sign-In
- For production: Update dependencies using Option 2
- For long-term: Consider migrating to newer plugin versions that support current Flutter APIs
Support
If you continue to experience issues:
- Check the Flutter documentation: https://flutter.dev/docs/deployment/android
- Review plugin-specific documentation for updated APIs
- Consider creating a minimal reproduction case for the plugin maintainers