Skip to content

Commit 23c275c

Browse files
committed
Add docs for testing and publish on Google Play Store
1 parent 4687fd4 commit 23c275c

14 files changed

+468
-2417
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Discover additional tools and references to enhance your Dreamflow development e
151151

152152
If you're still experiencing issues or need additional help, here are some resources to get you back on track:
153153

154-
- **[Submit Bug Report](/misc/submit-bug-report)** - Report bugs or issues you've encountered
154+
- **[Submit Bug Report](#)** - Report bugs or issues you've encountered
155155
- **[Community Forum](https://community.flutterflow.io)** - Ask questions and get help from the community
156156
- **[Reddit Community](https://www.reddit.com/r/FlutterFlow/)** - Join discussions on Reddit
157157
- **[Documentation Bug](https://github.com/FlutterFlow/flutterflow-documentation/issues)** - Report documentation issues
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Publish",
3+
"position": 2
4+
}
Lines changed: 344 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,344 @@
1+
---
2+
slug: /deployment/google-playstore-deployment
3+
title: Google Play Store Deployment
4+
description: Learn how to deploy your apps to the Google Play Store using DreamFlow.
5+
tags: [Google Play Store, Deployment, DreamFlow, Android]
6+
sidebar_position: 3
7+
toc_max_heading_level: 4
8+
keywords: [Google Play Store, Deployment, DreamFlow, Android]
9+
---
10+
11+
# Google Play Store Deployment
12+
13+
DreamFlow allows you to deploy your apps directly to the Google Play Store from within the platform. This guide covers all the necessary prerequisites, a step-by-step deployment process, and common troubleshooting tips.
14+
15+
:::info[Prerequisites]
16+
17+
- Register for a [**Google Play Developer account**](https://play.google.com/console/signup).
18+
- Ensure you have set an app launcher icon. If not, add an app icon to the DreamFlow assets, then use the [**flutter_launcher_icons**](https://pub.dev/packages/flutter_launcher_icons) package or ask the AI agent to set it up for you.
19+
- Ensure your app package name is correct, as it cannot be changed after deployment. To verify it, open `android/app/build.gradle` and check the `applicationId`. To update the package name, you can use the [**change_app_package_name**](https://pub.dev/packages/change_app_package_name) package or simply ask the AI agent.
20+
- It's recommended to [**test your app on a real device**](../test/test-on-mobile-device.md) before deployment.
21+
22+
:::
23+
24+
## 1. Creating app on Google Play Store
25+
26+
To create a new app in the Google Play Store, start by opening the [Google Play Console](https://play.google.com/console) and clicking the **Create app** button. Enter the **App name**, select the app type, and choose whether the app will be **Free** or **Paid**. After that, accept the **Declarations**, and finally click **Create app** to proceed.
27+
28+
<div style={{
29+
position: 'relative',
30+
paddingBottom: 'calc(50.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
31+
height: 0,
32+
width: '100%'}}>
33+
<iframe
34+
src="https://demo.arcade.software/364L2UfaOKcHiJH5GIAv?embed&show_copy_link=true"
35+
title=""
36+
style={{
37+
position: 'absolute',
38+
top: 0,
39+
left: 0,
40+
width: '100%',
41+
height: '100%',
42+
colorScheme: 'light'
43+
}}
44+
frameborder="0"
45+
loading="lazy"
46+
webkitAllowFullScreen
47+
mozAllowFullScreen
48+
allowFullScreen
49+
allow="clipboard-write">
50+
</iframe>
51+
</div>
52+
<p></p>
53+
54+
## 2. Set up your app
55+
56+
To provide the app details required by the Google Play Store, go to the **Set up your app** section within your newly created app. Expand the **View tasks** list, then click on each task and complete the required information step by step.
57+
58+
![setup-android-app-in-play-console.avif](imgs/setup-android-app-in-play-console.avif)
59+
60+
## 3. Adding service account credentials
61+
62+
To enable DreamFlow to deploy your app to the Google Play Store, you need to add service account credentials.
63+
64+
### 3.1 Creating a Service Account
65+
66+
To create the Service Account, you can follow the instructions from [here](https://developers.google.com/android-publisher/getting_started). To help you get started quickly, here are the exact steps you need to follow:
67+
68+
1. If you haven't set up Firebase in your app, you'll need to [create a Google Cloud Project](https://developers.google.com/android-publisher/getting_started#creating).
69+
2. Then, head over to the [Google Play Developer API page](https://console.developers.google.com/apis/api/androidpublisher.googleapis.com/) in Google Cloud Console and click **Enable**.
70+
71+
![enable-play-api](imgs/enble-play-developer-api.avif)
72+
73+
3. In Google Cloud Console, go to [Service Accounts](https://console.cloud.google.com/iam-admin/serviceaccounts), click + **CREATE SERVICE ACCOUNT,** and follow the steps as shown below.
74+
75+
<div style={{
76+
position: 'relative',
77+
paddingBottom: 'calc(50.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
78+
height: 0,
79+
width: '100%'}}>
80+
<iframe
81+
src="https://demo.arcade.software/v4qg6mfKvbKGKISqJZg8?embed&show_copy_link=true"
82+
title=""
83+
style={{
84+
position: 'absolute',
85+
top: 0,
86+
left: 0,
87+
width: '100%',
88+
height: '100%',
89+
colorScheme: 'light'
90+
}}
91+
frameborder="0"
92+
loading="lazy"
93+
webkitAllowFullScreen
94+
mozAllowFullScreen
95+
allowFullScreen
96+
allow="clipboard-write">
97+
</iframe>
98+
</div>
99+
<p></p>
100+
101+
102+
4. Now, download the JSON key file by clicking **ADD Key > Create new key > select JSON > CREATE**. Keep this file secure.
103+
104+
<div style={{
105+
position: 'relative',
106+
paddingBottom: 'calc(50.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
107+
height: 0,
108+
width: '100%'}}>
109+
<iframe
110+
src="https://demo.arcade.software/ZMZFspS0ZI3xIc0bSago?embed&show_copy_link=true"
111+
title=""
112+
style={{
113+
position: 'absolute',
114+
top: 0,
115+
left: 0,
116+
width: '100%',
117+
height: '100%',
118+
colorScheme: 'light'
119+
}}
120+
frameborder="0"
121+
loading="lazy"
122+
webkitAllowFullScreen
123+
mozAllowFullScreen
124+
allowFullScreen
125+
allow="clipboard-write">
126+
</iframe>
127+
</div>
128+
<p></p>
129+
130+
5. In **Google Play Console**, go to [Users & Permissions](https://play.google.com/console), click **Invite new users**, and add your service account email with these permissions:
131+
- "Edit and delete draft apps"
132+
- "Release to production..."
133+
- "Release apps to testing tracks"
134+
- "Manage testing tracks and edit tester lists"
135+
136+
<div style={{
137+
position: 'relative',
138+
paddingBottom: 'calc(50.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
139+
height: 0,
140+
width: '100%'}}>
141+
<iframe
142+
src="https://demo.arcade.software/PLVogskcfVTMqJk4nfig?embed&show_copy_link=true"
143+
title=""
144+
style={{
145+
position: 'absolute',
146+
top: 0,
147+
left: 0,
148+
width: '100%',
149+
height: '100%',
150+
colorScheme: 'light'
151+
}}
152+
frameborder="0"
153+
loading="lazy"
154+
webkitAllowFullScreen
155+
mozAllowFullScreen
156+
allowFullScreen
157+
allow="clipboard-write">
158+
</iframe>
159+
</div>
160+
<p></p>
161+
162+
### 3.2 Uploading service account credentials to DreamFlow
163+
164+
To upload your service account credentials in DreamFlow, go to **Publish > Android**. Under **Google Play Credentials**, click **Upload .json** and select the `.json` file you downloaded in step 4.
165+
166+
![upload-json-file.avif](imgs/upload-json-file.avif)
167+
168+
## 4. Deploy to Google Play Store
169+
170+
For first-time deployment, you need to create an initial release manually in Google Play Console. After that, DreamFlow can handle all subsequent deployments.
171+
172+
### 4.1 First-time setup
173+
174+
1. In DreamFlow, set the **Google Play Track** to **Internal** and click **Submit Build to Google Play**.
175+
2. Once the build is complete, download the [**.aab**](https://chatgpt.com/share/6f5714c1-eb13-428b-b9ee-9772f2810284) file.
176+
3. In Google Play Console, create an **Internal Testing** track and upload the **.aab** file.
177+
178+
:::info
179+
180+
- After the internal testing track is set up, DreamFlow can handle all future deployments directly.
181+
- Even if the build status appears as FAILURE, you can still download the AAB file.
182+
183+
:::
184+
185+
186+
<div style={{
187+
position: 'relative',
188+
paddingBottom: 'calc(50.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
189+
height: 0,
190+
width: '100%'}}>
191+
<iframe
192+
src="https://demo.arcade.software/pBlnRQnHLQRjSFWJTtHw?embed&show_copy_link=true"
193+
title=""
194+
style={{
195+
position: 'absolute',
196+
top: 0,
197+
left: 0,
198+
width: '100%',
199+
height: '100%',
200+
colorScheme: 'light'
201+
}}
202+
frameborder="0"
203+
loading="lazy"
204+
webkitAllowFullScreen
205+
mozAllowFullScreen
206+
allowFullScreen
207+
allow="clipboard-write">
208+
</iframe>
209+
</div>
210+
<p></p>
211+
212+
### 4.2 Deploy from DreamFlow
213+
214+
To deploy your app from DreamFlow, navigate to **Publish > Android**, set the **Track** to Internal, and update the **version code.** If your app is still in draft mode (not yet available on the Play Store), set **Submit as Draft** (under **Deployment Flags)** to **True**, and then click **Deploy to Play Store**.
215+
216+
<div style={{
217+
position: 'relative',
218+
paddingBottom: 'calc(50.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
219+
height: 0,
220+
width: '100%'}}>
221+
<iframe
222+
src="https://demo.arcade.software/lryE56z4DG52mIeJLwhn?embed&show_copy_link=true"
223+
title=""
224+
style={{
225+
position: 'absolute',
226+
top: 0,
227+
left: 0,
228+
width: '100%',
229+
height: '100%',
230+
colorScheme: 'light'
231+
}}
232+
frameborder="0"
233+
loading="lazy"
234+
webkitAllowFullScreen
235+
mozAllowFullScreen
236+
allowFullScreen
237+
allow="clipboard-write">
238+
</iframe>
239+
</div>
240+
<p></p>
241+
242+
:::info
243+
244+
- If another deployment is already in progress, deploying a new build will cancel the previous one.
245+
- It may take a few minutes for the request to process. Once completed, you will get a pop-up saying *Your app is being deployed to Google Play.*
246+
247+
:::
248+
249+
### 4.3 Verify deployment
250+
251+
To verify that the app is deployed to Play Console:
252+
253+
1. Open the **Internal testing** in [Google Play Console](https://play.google.com/console).
254+
2. Under the **Releases** section, find your release and click on the **Show Summary** button.
255+
3. See the **Version Codes** number is increased.
256+
257+
![verify-deployment.avif](imgs/verify-deployment.avif)
258+
259+
### 4.4 Deploy to production
260+
261+
To promote your app to production, open your **Internal testing** track in Google Play Console and complete the release. Once the internal release is finalized, click **Promote Release > Production**.
262+
263+
<div style={{
264+
position: 'relative',
265+
paddingBottom: 'calc(50.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
266+
height: 0,
267+
width: '100%'}}>
268+
<iframe
269+
src="https://demo.arcade.software/8TQoQjPZEetKsEptLJ2w?embed&show_copy_link=true"
270+
title=""
271+
style={{
272+
position: 'absolute',
273+
top: 0,
274+
left: 0,
275+
width: '100%',
276+
height: '100%',
277+
colorScheme: 'light'
278+
}}
279+
frameborder="0"
280+
loading="lazy"
281+
webkitAllowFullScreen
282+
mozAllowFullScreen
283+
allowFullScreen
284+
allow="clipboard-write">
285+
</iframe>
286+
</div>
287+
<p></p>
288+
289+
For all future deployments, set the **Google Play Track** to **Prod** in DreamFlow and deploy directly from there.
290+
291+
![deploy-to-prod-from-dreamflow.avif](imgs/deploy-to-prod-from-dreamflow.avif)
292+
293+
## Deployment Flags
294+
295+
### Submit as draft
296+
297+
While deploying, if your app is still in draft mode, meaning it is not available on the Play Store yet, you may encounter an error message stating, 'Only releases with the status draft may be created on a draft app.'
298+
299+
To resolve this, enable this option, and you'll see that the release will be created as a draft. You'll then need to manually roll out the app.
300+
301+
### Changes not sent for review
302+
303+
If you face an error that says '*Changes cannot be sent for review automatically*', enable this option and retry deployment.
304+
305+
## FAQs
306+
307+
<details>
308+
<summary>
309+
Why am I getting an "Invalid Package Name" error?
310+
</summary>
311+
<p>
312+
This happens when your package name already exists or doesn’t meet validation requirements. Make sure your package name is unique and not already used by another app on Google Play Store. Note that the package name cannot be changed after deployment.
313+
</p>
314+
</details>
315+
316+
<details>
317+
<summary>
318+
What should I do if I see "The service account does not have permission to perform this action"?
319+
</summary>
320+
<p>
321+
This means your service account doesn’t have the correct permissions. In Google Play Console, ensure the account has these permissions:
322+
323+
- *Edit and delete draft apps*
324+
- *Release to production...*
325+
- *Release apps to testing tracks*
326+
- *Manage testing tracks and edit tester lists*
327+
</p>
328+
</details>
329+
330+
331+
332+
333+
334+
<details>
335+
<summary>
336+
Why does my first upload fail with a message like "You need to use a different package name"?
337+
338+
</summary>
339+
<p>
340+
For the initial deployment, you must manually upload the **.aab** file to Google Play Console to create the first release track. Once the initial track is set up, DreamFlow will handle all subsequent deployments automatically.
341+
</p>
342+
</details>
343+
344+
Binary file not shown.
34.7 KB
Binary file not shown.
Binary file not shown.
30 KB
Binary file not shown.
28.4 KB
Binary file not shown.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
slug: /publish/pre-checks-before-publishing
3+
title: Pre-checks Before Publishing
4+
description: Ensure your app is ready for launch with this detailed guide on essential pre-publishing checks.
5+
tags: [Pre-checks, Publishing, Deployment]
6+
sidebar_position: 1
7+
keywords: [Pre-checks, Publishing, Deployment, DreamFlow]
8+
---
9+
10+
# Pre-checks Before Publishing
11+
Before publishing your app, it’s important to run through a checklist to ensure quality, compliance, and readiness for release. These pre-checks help confirm that your app works as expected, meets platform requirements, and provides a smooth user experience.
12+
13+
Here’s a comprehensive list of these prechecks:
14+
15+
1. **Functionality Testing**: [Test the app manually](../test/test-on-mobile-device.md) across devices to verify that every feature behaves correctly, user interactions respond as intended, and no crashes or unexpected errors occur.
16+
2. **Get Feedback**: Gather feedback from users or testers to receive valuable insights and potential areas of improvement before the public release.
17+
3. **Optimizations & Enhancements**: Review your app’s overall performance and make sure all assets are optimized. This includes, but is not limited to:
18+
- Making sure images are properly sized and compressed to reduce load times.
19+
- Minimizing large files, unused assets, or unnecessary dependencies.
20+
- Checking that animations and transitions run smoothly without lag.
21+
- Enable caching strategies where appropriate.
22+
4. **User Interface (UI)**: Review UI consistency across different devices, screen sizes, and resolutions.
23+
5. **Accessibility Checks**: Use Flutter’s [`Semantics`](https://api.flutter.dev/flutter/widgets/Semantics-class.html) widget on images and buttons to provide meaningful descriptions for assistive technologies. Verify that TalkBack (Android) and VoiceOver (iOS) correctly interpret UI elements. Check color contrast with Flutter’s theming system and ensure that navigation using gestures or keyboard input remains accessible across all screens.
24+
6. **Security Measures**: Safeguard user data by using HTTPS for all network requests, encrypting sensitive information, and following best practices for authentication and storage. Ensure compliance with legal standards like GDPR or CCPA, if applicable.
25+
7. **Compliance with Store Guidelines**: Carefully review submission policies for both [Apple’s App Store](https://developer.apple.com/app-store/review/guidelines/) and [Google Play Store](https://play.google/developer-content-policy/). Pay attention to metadata, privacy policies, restricted content rules, and minimum functionality requirements.
26+
8. **Localization and Internationalization**: If your app targets users in multiple countries, consider [adding multi-language](https://docs.flutter.dev/ui/accessibility-and-internationalization/internationalization) support.
27+
9. **License and Third-Party Attributions**: Adhere to licenses and include necessary attributions for third-party libraries and assets.
28+
10. **Prepare Marketing Assets**: Prepare all the necessary marketing assets, such as screenshots, app icons, and promotional text.
29+
11. **Error Logging & Monitoring**: Integrate crash reporting and analytics (e.g., Firebase Crashlytics, Sentry) before release. Try triggering test crashes in debug or staging builds to confirm reports are collected correctly.
30+
12. **Offline & Poor Network Support**: Validate app behavior with no connectivity and high-latency/packet-loss scenarios. Provide cached content, retry/backoff for API calls, and clear offline states.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Test",
3+
"position": 1
4+
}

0 commit comments

Comments
 (0)