Skip to content

Commit

Permalink
App: Supplement the documentation description for App development
Browse files Browse the repository at this point in the history
  • Loading branch information
dafengzhen committed Aug 18, 2024
1 parent 890910c commit ba9fbcb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
16 changes: 13 additions & 3 deletions docs/guide/android-development.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,17 @@ Install the dependencies.
flutter pub get
```

**2. Configure the API Service**
**3. Change the Icon**

Replace the resource at the path ```assets/images/icon.png```.

Then, run the following command to update:

```sh
flutter pub run flutter_launcher_icons
```

**3. Configure the API Service**

Open the file ```lib/configs/configs.dart```.

Expand All @@ -38,7 +48,7 @@ Modify the backend request URL accordingly.
const appApiServer = 'http://10.0.2.2:8080';
```

**3. Launch the Application**
**4. Launch the Application**

Using Android Studio as an example, start an Android emulator (Device Manager) and run the application (Run 'main.dart').

Expand All @@ -65,7 +75,7 @@ Please refer to the [official documentation](https://docs.flutter.dev/deployment
**1. Run the Command**

```sh
flutter build apk
flutter build apk --release
```

**2. Check the Output**
Expand Down
16 changes: 13 additions & 3 deletions docs/zh/guide/android-development.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,17 @@ git clone https://github.com/dafengzhen/youdeyiwu
flutter pub get
```

**2. 配置 Api 服务**
**2. 修改图标**

替换资源路径 ```assets/images/icon.png```

然后运行如下命令更新:

```sh
flutter pub run flutter_launcher_icons
```

**3. 配置 Api 服务**

打开 ```lib/configs/configs.dart``` 文件

Expand All @@ -38,7 +48,7 @@ flutter pub get
const appApiServer = 'http://10.0.2.2:8080';
```

**3. 启动应用**
**4. 启动应用**

以 Android Studio 编辑器为例,启动一个安卓模拟器(Device Manager),并运行(Run 'main.dart')

Expand All @@ -65,7 +75,7 @@ keytool -genkey -v -keystore $env:USERPROFILE\upload-keystore.jks -storetype JKS
**1. 运行命令**

```sh
flutter build apk
flutter build apk --release
```

**2. 查看输出**
Expand Down

0 comments on commit ba9fbcb

Please sign in to comment.