Upload to Google Drive
Automatically upload your Flutter app builds to Google Drive after each release, then share the download link and QR code — all with a single command.
Setup Required
You'll need OAuth 2.0 credentials from Google Cloud Console. See the Google Drive Setup Guide for step-by-step instructions.
Prerequisites
- Google Cloud project with the Google Drive API enabled
- OAuth 2.0 credentials (
client_idandclient_secret) - FRX installed (
dart pub global activate flutter_release_x)
Step 1: Configure config.yaml
# Optional: Path to Flutter binary (if flutter isn't in your system PATH)
flutter_path: FLUTTER/BINARY/PATH
upload_options:
google_drive:
enabled: true
client_id: YOUR_CLIENT_ID # From Google Cloud Console
client_secret: YOUR_CLIENT_SECRET # From Google Cloud Console
qr_code:
enabled: true
save_file: true
show_in_command: true
size: 256
error_correction_level: low
save_path: "./release-qr-code.png"
On first run, FRX will open a browser window to authenticate your Google account. After that, credentials are cached locally in
gdcredentials.json.
Step 2: Build and Upload
frx build
FRX will:
- Build the release APK
- Authenticate with Google Drive (browser prompt on first run)
- Upload the APK to your Google Drive
- Generate a sharable download link and QR code
Step 3: Verify the Upload
- Open Google Drive
- Find the uploaded file in your root or a designated folder
- Confirm the file is accessible and the link is shareable
Security
Add both config.yaml and gdcredentials.json to your .gitignore to prevent leaking credentials.
config.yaml
gdcredentials.json
See the gitignore Guide.
What's Next?
- Combine Drive uploads with Slack notifications → Slack Cookbook
- Upload to GitHub Releases as well → GitHub Cookbook
- Build a full CI/CD pipeline → Advanced Pipeline Cookbook