Build & run
FoxTalk is a standard Flutter project — one Dart codebase that builds for both iOS and Android. This page is the shortest path from clone to running on a real device.
Verified on the following toolchain:
Clone and install dependencies
git clone https://github.com/TangSengDaoDao/TangSengDaoDaoFlutter.git
cd TangSengDaoDaoFlutter
flutter pub getAndroid device install
Use a debug APK + adb install — more reliable than flutter run. Get DEVICE_ID from adb devices.
flutter build apk --debug
ADB="$HOME/Library/Android/sdk/platform-tools/adb"
"$ADB" -s <DEVICE_ID> install -r build/app/outputs/flutter-apk/app-debug.apk
"$ADB" -s <DEVICE_ID> shell monkey -p com.example.app 1iOS device install
Prefer flutter build + xcrun devicectl over flutter run on iOS — avoids occasional hangs over wireless. Release mode picks up the signing team already configured in Runner.xcodeproj.
flutter build ios --release
xcrun devicectl device install app \
--device <DEVICE_UDID> \
build/ios/iphoneos/Runner.appFind the device UDID with flutter devices. The signing team and CODE_SIGN_STYLE=Automatic are written into ios/Runner.xcodeproj/project.pbxproj, so no --team-id flag is needed.
free vs pro entry points
lib/main.dart is the default entry with all modules. Two extra flavor entries — main_free.dart and main_pro.dart — reference module_profile_free.dart / module_profile_pro.dart to ship different module combinations for commercial builds.
# Default entry (all modules via app_modules.dart)
flutter run -t lib/main.dart
# Open-source flavor (core modules only)
flutter run -t lib/main_free.dart