Skip to content

Commit a694e51

Browse files
committed
Merge branch 'main' of https://github.com/FlutterFlow/flutterflow-documentation into pinkesh/library-values
2 parents c4c52e3 + c7fd0b8 commit a694e51

File tree

7 files changed

+133
-291
lines changed

7 files changed

+133
-291
lines changed
Binary file not shown.
360 KB
Loading
Binary file not shown.
Binary file not shown.

docs/testing-deployment-publishing/publishing/apple-appstore-deployment.md

Lines changed: 54 additions & 213 deletions
Large diffs are not rendered by default.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
slug: /deployment/deploy-from-github
3+
title: Deploy from GitHub
4+
description: Learn how to deploy your apps directly from GitHub branch.
5+
tags: [Apple App Store, Google Play Store, Deployment, GitHub]
6+
sidebar_position: 5
7+
keywords: [Apple App Store, Google Play Store, Deployment, GitHub]
8+
---
9+
10+
If your FlutterFlow project is connected to a GitHub repository, the generated code can be pushed to GitHub, giving you full control over your project’s code. Then, you can deploy your app directly from the same repository, rather than deploying through FlutterFlow.
11+
12+
Deploying from GitHub is particularly beneficial when:
13+
14+
- You have written custom code that cannot be managed directly in FlutterFlow, such as features that require advanced Flutter functionality.
15+
- You want to manage the source code in an external GitHub repository for better version control.
16+
- You want to automate the process of deploying your app directly from GitHub to the Play Store or App Store after modifying the code.
17+
- You want to deploy from a specific branch of your GitHub repository.
18+
19+
## Steps to Deploy
20+
21+
To deploy from a GitHub repository:
22+
23+
1. If you haven't already added your project to the GitHub repository, follow the instructions provided [here](../exporting-code/push-to-github.md#connect-a-github-repo).
24+
2. In FlutterFlow, go to **Settings & Integrations > App Settings > Mobile Deployment.**
25+
3. Locate the **Deployment Source** section and click the arrow icon on the right to expand it.
26+
4. Turn on the toggle for **Use GitHub repo: [your repo URL]**.
27+
5. Enter the branch name of your repository that contains the code you want to deploy. Ensure the branch name is correct.
28+
6. Click the **Deploy to App Store** or **Deploy to Play Store** button, depending on your desired platform for deployment.
29+
30+
![deploy-from-github](../imgs/deploy-from-github.png)
31+
32+
:::info[important]
33+
34+
When deploying from your GitHub branch, you will need to manage the app versioning manually. This is done through the `pubspec.yaml` file. For example, to set the version to **1.1.0** and the build number to **2**, you can use the format: `version: 1.1.0+2`.
35+
36+
![update-version.avif](../imgs/update-version.avif)
37+
38+
:::
39+
40+
## FAQs
41+
42+
<details>
43+
<summary>I am having an issue while Deploying from a GitHub branch. Error: *You uploaded an APK or Android App Bundle that was signed in debug mode. You need to sign your APK or Android App Bundle in release mode.*</summary>
44+
<p>
45+
46+
If you are experiencing problems deploying or uploading to the Google Play Store from a Github branch, check to make sure your `build.gradle` file is correct.
47+
48+
1. Open your `android/app/build.gradle` file.
49+
2. Ensure your file has these lines of code:
50+
51+
```
52+
def keystoreProperties = new Properties()
53+
def keystorePropertiesFile = rootProject.file('key.properties')
54+
if (keystorePropertiesFile.exists()) {
55+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
56+
}
57+
signingConfigs {
58+
release {
59+
keyAlias keystoreProperties['keyAlias']
60+
keyPassword keystoreProperties['keyPassword']
61+
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
62+
storePassword keystoreProperties['storePassword']
63+
}
64+
}
65+
```
66+
67+
3. Newer Flutterflow code will automatically have these lines added. If yours doesn't, you can push it to your `flutterflow` branch on GitHub and merge in the changes or add them like so:
68+
69+
![deploy-github-issue](../imgs/deploy-github-issue.avif)
70+
71+
72+
4. Lastly, change `debug` (shown in the red box above) to `release` before deploying.
73+
</p>
74+
</details>

docs/testing-deployment-publishing/publishing/google-playstore-deployment.md

Lines changed: 5 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -314,57 +314,19 @@ You can now deploy directly from FlutterFlow or from your GitHub repository.
314314

315315
:::info
316316

317-
- Every time you deploy, we'll auto increment the 'Build Number' (i.e., version code in Android). If needed, you can update the **App Version** and **Build Number** yourself.
317+
- Every time you deploy, we'll auto increment the **Build Number** (i.e., version code in Android) to ensure that each release is identifiable. If needed, you can update the *App Version* and *Build Number* yourself.
318318
- We'll [**auto-generate**](https://developer.android.com/studio/publish/app-signing#generate-key) and [**sign**](https://developer.android.com/studio/publish/app-signing#sign_release) your app for the release with the Keystore (i.e., upload key). If you wish to download the keystore, click the orange key button.
319319

320320
:::
321321

322-
<Tabs>
323-
<TabItem value="FF" label="Deploy From FlutterFlow" default>
324-
Ensure the **Google Play Track** is set to **Internal** and hit the **Deloy to Play Store** again. On successful deployment, you will see the status as 'finished'.
322+
Ensure the **Google Play Track** is set to **Internal** and hit the **Deloy to Play Store** again. On successful deployment, you will see the status as 'finished'.
325323

326324
![deploy-flutterflow](../imgs/deploy-flutterflow.avif)
327325

328-
</TabItem>
329-
<TabItem value="GitHub" label="Deploy From Github">
330-
331-
[Connecting the Github](../exporting-code/push-to-github.md) repo allows you to introduce the custom code into your FlutterFlow project. You may want to deploy the modified code directly from your Github repo to Play Store.
332-
333-
To deploy from Github repo:
334-
335-
1. If you haven't added the Github repo yet, you can do so using the instructions [here](../exporting-code/push-to-github.md).
336-
2. Navigate to **Settings & Integrations > App Settings >** **Mobile** **Deployment**.
337-
3. Find the **Deployment Settings** section and click on the arrow icon on the right to open it.
338-
4. Under the **Deployment Source**, enable the **Use Github repo**.
339-
5. Enter the **Branch Name** of your repo, from which you want to deploy the code. Make sure to enter the correct branch name.
340-
341-
<div style={{
342-
position: 'relative',
343-
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
344-
height: 0,
345-
width: '100%'}}>
346-
<iframe
347-
src="https://www.loom.com/embed/402bba6f50a24f388930b192cce7f554?sid=3d572cc0-0296-45fd-b981-f580cee591ff"
348-
title="Sharing a Project with a User"
349-
style={{
350-
position: 'absolute',
351-
top: 0,
352-
left: 0,
353-
width: '100%',
354-
height: '100%',
355-
colorScheme: 'light'
356-
}}
357-
frameborder="0"
358-
loading="lazy"
359-
webkitAllowFullScreen
360-
mozAllowFullScreen
361-
allowFullScreen
362-
allow="clipboard-write">
363-
</iframe>
364-
</div>
365326

366-
</TabItem>
367-
</Tabs>
327+
:::tip
328+
If you prefer to manage your deployment process outside of FlutterFlow, such as integrating with your own CI/CD pipeline, or if you want more control over versioning and custom code management directly on GitHub. You also have the option to [**Deploy apps from your GitHub repository**](deploy-from-github.md).
329+
:::
368330

369331

370332
#### 4.4 Verify deployment
@@ -445,38 +407,3 @@ Watch this video if you prefer watching a video tutorial.
445407
</iframe>
446408
</div>
447409

448-
## FAQs
449-
450-
<details>
451-
<summary>I am having an issue while Deploying from a GitHub branch</summary>
452-
<p>
453-
454-
If you are experiencing problems deploying or uploading to the Google Play Store and are deploying from a Github branch, check to make sure your `build.gradle` file is correct.
455-
456-
1. Open your `android/app/build.gradle` file.
457-
2. Ensure your file has these lines of code:
458-
459-
```
460-
def keystoreProperties = new Properties()
461-
def keystorePropertiesFile = rootProject.file('key.properties')
462-
if (keystorePropertiesFile.exists()) {
463-
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
464-
}
465-
signingConfigs {
466-
release {
467-
keyAlias keystoreProperties['keyAlias']
468-
keyPassword keystoreProperties['keyPassword']
469-
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
470-
storePassword keystoreProperties['storePassword']
471-
}
472-
}
473-
```
474-
475-
3. Newer Flutterflow code will automatically have these lines added. If yours doesn't, you can push it to your `flutterflow` branch on GitHub and merge in the changes or add them like so:
476-
477-
![deploy-github-issue](../imgs/deploy-github-issue.avif)
478-
479-
480-
4. Lastly, change `debug` (shown in the red box above) to `release` before deploying.
481-
</p>
482-
</details>

0 commit comments

Comments
 (0)