You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/test-and-publish/test/test-on-mobile-device.md
+58-1Lines changed: 58 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,4 +63,61 @@ Once downloaded, open the project in your preferred IDE and run your app on eith
63
63
64
64
:::info
65
65
If you encounter a version compatibility issue with Flutter, you can resolve it by upgrading to the latest version. Simply execute the `flutter upgrade` command in your terminal. To verify your current Flutter version, use the `flutter --version` command.
66
-
:::
66
+
:::
67
+
68
+
## Building APK Files
69
+
70
+
You can build APK files locally to test your app on Android devices or prepare it for release on the Google Play Store.
71
+
72
+
:::info[Prerequisites]
73
+
74
+
Before building an APK, make sure your [**Android setup**](#android-setup) is complete and the [**app runs**](#download-code-and-run) successfully.
75
+
76
+
:::
77
+
78
+
#### Building a Debug APK (for Local Testing)
79
+
80
+
Debug APKs are useful for quickly installing your app on a device without signing or optimization. To build a debug APK:
81
+
82
+
1. Open a terminal in your project root.
83
+
2. Run the following command.
84
+
```jsx
85
+
flutter build apk --debug
86
+
```
87
+
88
+
3. The APK will be generated at:
89
+
90
+
```jsx
91
+
build/app/outputs/flutter-apk/app-debug.apk
92
+
```
93
+
94
+
4. Now, you can either directly install it on your device:
95
+
96
+
```jsx
97
+
flutter install
98
+
```
99
+
or manually copy the APK to any device and install it.
100
+
101
+
102
+
:::warning
103
+
104
+
Debug APKs are not optimized and should not be uploaded to the Play Store.
105
+
106
+
:::
107
+
108
+
#### Build App for Release
109
+
110
+
Dreamflow lets you [deploy apps directly to the Google Play Store](../publish/google-playstore-deployment.md) from within the platform. If you prefer to publish manually, you’ll first need to **sign your app**with a keystore and then **build a release APK or App Bundle**. Release builds are fully optimized, securely signed, and ready for distribution on the Play Store.
111
+
112
+
You can follow the official Flutter documentation for detailed steps:
113
+
114
+
- [Sign the app](https://docs.flutter.dev/deployment/android#sign-the-app)
115
+
- [Build the app for release](https://docs.flutter.dev/deployment/android#build-the-app-for-release)
116
+
117
+
## Building an IPAFile
118
+
119
+
You can’t generate a debug `.ipa`file. Debug builds are only for local development and testing, and once your [iOS setup](#ios-setup) is complete, you can [run](#download-code-and-run) them directly on your device.
120
+
121
+
#### Build App for Release
122
+
123
+
Dreamflow lets you [deploy apps directly to the App Store](../publish/apple-app-store-deployment.md) from within the platform. If you prefer to create an IPA file for manual distribution (e.g., via TestFlight or the App Store), you’ll need to build a release IPA. This requires proper **code signing**with your Apple Developer account. Follow the official guide for detailed steps on [build and release for iOS](https://docs.flutter.dev/deployment/ios).
0 commit comments