Skip to content

Commit 73da7fe

Browse files
committed
[feat] Initial commit
0 parents  commit 73da7fe

File tree

299 files changed

+18752
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

299 files changed

+18752
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: I have a problem with UME usage. 我对 UME 的使用有疑问。
3+
about: You are putting UME to a Flutter application, have questions about how to use UME, or are interested in how UME is implemented. 你正在将 UME 接入一个 Flutter 应用,对 UME 的使用方式有疑问,或对 UME 的实现原理感兴趣。
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
## What's your question 你遇到了什么问题
10+
11+
<!--
12+
Please describe your problem here.
13+
请在这里描述你的问题。
14+
-->
15+
16+
## Environmental info 环境信息
17+
18+
### Flutter doctor
19+
20+
<!--
21+
Please paste the output of running `flutter doctor -v` here.
22+
请将 `flutter doctor -v` 的执行结果贴到下面。
23+
-->
24+
25+
``` bash
26+
27+
```
28+
29+
### UME and kits version UME 及插件包版本
30+
31+
<!--
32+
Please list the version of UME and related packages here.
33+
You can also paste `pubspec.yaml` directly.
34+
请将 UME 及相关 package 的版本列到下面。直接粘贴 `pubspec.yaml` 也可以。
35+
-->
36+
37+
``` bash
38+
39+
```
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
name: I found a bug or an exception. 我发现了一个 bug 或异常。
3+
about: When using UME, the application did not run as expected, or an exception was throwed. 在使用 UME 时,应用程序没有按照预期运行,或报了一个异常。
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
## Steps to Reproduce 复现步骤
10+
11+
<!--
12+
You must include full steps to reproduce so that we can reproduce the problem.
13+
It would be better if there is a reproducible code example.
14+
请务必包含完整复现步骤以便于定位问题。如果有演示代码就更好了。
15+
-->
16+
17+
1. ... <!-- describe how to reproduce the problem 描述如何复现问题-->
18+
2. ... <!-- describe how to reproduce the problem 描述如何复现问题-->
19+
3. ... <!-- describe how to reproduce the problem 描述如何复现问题-->
20+
21+
**Expected results 期望结果:** <!-- what did you want to see? 你期望看到什么结果?-->
22+
23+
**Actual results 实际结果:** <!-- what did you see? 实际看到的结果?-->
24+
25+
## Error log 错误日志
26+
27+
<!--
28+
Please paste the error log here.
29+
请将错误日志贴在下面。
30+
-->
31+
32+
``` bash
33+
34+
```
35+
36+
## Environmental info 环境信息
37+
38+
### Flutter doctor
39+
40+
<!--
41+
Please paste the output of running `flutter doctor -v` here.
42+
请将 `flutter doctor -v` 的执行结果贴到下面。
43+
-->
44+
45+
``` bash
46+
47+
```
48+
49+
### UME and kits version UME 及插件包版本
50+
51+
<!--
52+
Please list the version of UME and related packages here.
53+
You can also paste `pubspec.yaml` directly.
54+
请将 UME 及相关 package 的版本列到下面。直接粘贴 `pubspec.yaml` 也可以。
55+
-->
56+
57+
``` bash
58+
59+
```
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Feature request 功能建议
3+
about: Suggest a new idea for UME. 为 UME 提出新的点子。
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
## Use case 建议
10+
11+
<!--
12+
Please describe what features you need? Or what do you want the existing features to become?
13+
请描述你需要什么样的功能?或希望现有的功能变成什么样子?
14+
-->
15+
16+
## Scenes 使用场景
17+
18+
<!--
19+
Please describe the circumstances in which the new feature or the change of feature is needed.
20+
请描述在什么情况下,需要这个新功能,或需要功能的变更。
21+
-->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Join the ByteDance Flutter Exchange Group. 加入字节跳动 Flutter 技术交流群
4+
url: https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=b07u55bb-68f0-4a4b-871d-687637766a68
5+
about: The topic of communication is not limited to UME, everything about Flutter can be spoken. 话题不局限于 UME,关于 Flutter 的一切均可畅所欲言。

.github/pull_request_template.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
Describe what problem this pull request solves and how to solve it. If there is an issue associated with it, please attach a link.
3+
4+
请描述这个 pull request 解决了什么问题,以及解决方式。如果有与之关联的 issue,请附链接。
5+
6+
## Pull Request Checklist
7+
8+
- [ ] I have read the [UME contribution document](../CONTRIBUTING.md) and understand how to contribute, commit the code according to the rules. 我已阅读过 UME 贡献文档,并了解如何进行贡献,按照规则提交了代码
9+
- [ ] I have added the necessary comments in code to ensure that other contributors can understand the reason for the change. 我在修改中已经添加了必要的注释,以确保便于其他贡献者理解修改原因
10+
- [ ] The code has been formatted by dartfmt before push. 代码在提交前已经经过 dartfmt 进行了格式化
11+
- [ ] Change does not involve the adjustment of test cases. Or all existing and new tests are passing. 改动不涉及测试用例调整,或 example 工程与单元测试已经完全跑通
12+
13+
If you need help, consider [Join ing the ByteDance Flutter Exchange Group](https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=67au2f75-3783-41b0-8868-0fc0178f1fd8).
14+
15+
如有任何问题,可以[加入字节跳动 Flutter 交流群](https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=67au2f75-3783-41b0-8868-0fc0178f1fd8)
16+
17+
Or contact [author](mailto:zhaorui.dev@bytedance.com).
18+
19+
或随时[联系开发者](mailto:zhaorui.dev@bytedance.com)

.github/workflows/build_eaxmple.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: build_eaxmple
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
release-to-gitHub:
10+
name: release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-java@v1
15+
with:
16+
java-version: "12.x"
17+
- name: Flutter action
18+
uses: subosito/flutter-action@v1.5.3
19+
with:
20+
flutter-version: '2.2.x'
21+
channel: stable
22+
- run: flutter pub get
23+
working-directory: example
24+
- run: flutter build apk --debug
25+
working-directory: example
26+
- uses: softprops/action-gh-release@v1
27+
with:
28+
files: example/build/app/outputs/apk/debug/app-debug.apk
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/coverage.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
paths:
9+
- 'lib/**'
10+
- 'kits/flutter_ume_kit_console/lib/**'
11+
- 'kits/flutter_ume_kit_device/lib/**'
12+
- 'kits/flutter_ume_kit_perf/lib/**'
13+
- 'kits/flutter_ume_kit_show_code/lib/**'
14+
- 'kits/flutter_ume_kit_ui/lib/**'
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
with:
22+
ref: ${{ env.GITHUB_REF }}
23+
- uses: actions/setup-java@v1
24+
with:
25+
java-version: '12.x'
26+
- name: Flutter action
27+
uses: subosito/flutter-action@v1.5.3
28+
with:
29+
flutter-version: '2.2.x'
30+
channel: stable
31+
- run: |
32+
flutter pub get
33+
flutter pub run flutter_coverage_badge
34+
- run: |
35+
flutter pub get
36+
flutter pub run flutter_coverage_badge
37+
working-directory: kits/flutter_ume_kit_device
38+
- run: |
39+
flutter pub get
40+
flutter pub run flutter_coverage_badge
41+
working-directory: kits/flutter_ume_kit_perf
42+
- run: |
43+
flutter pub get
44+
flutter pub run flutter_coverage_badge
45+
working-directory: kits/flutter_ume_kit_show_code
46+
- run: |
47+
flutter pub get
48+
flutter pub run flutter_coverage_badge
49+
working-directory: kits/flutter_ume_kit_ui
50+
- run: |
51+
flutter pub get
52+
flutter pub run flutter_coverage_badge
53+
working-directory: kits/flutter_ume_kit_console
54+
- name: Commit badges
55+
run: |
56+
git config --global user.name smileShirely
57+
git config --global user.email smileShirely@users.noreply.github.com
58+
git add coverage_badge.svg kits/flutter_ume_kit_device/coverage_badge.svg kits/flutter_ume_kit_perf/coverage_badge.svg kits/flutter_ume_kit_show_code/coverage_badge.svg kits/flutter_ume_kit_ui/coverage_badge.svg kits/flutter_ume_kit_console/coverage_badge.svg
59+
git commit -m "Automated report coverage"
60+
git push

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-java@v1
11+
with:
12+
java-version: '12.x'
13+
- name: Flutter action
14+
uses: subosito/flutter-action@v1.5.3
15+
with:
16+
flutter-version: '2.2.x'
17+
channel: stable
18+
- run: flutter test --enable-vmservice
19+
- run: flutter test --enable-vmservice
20+
working-directory: kits/flutter_ume_kit_device
21+
- run: flutter test --enable-vmservice
22+
working-directory: kits/flutter_ume_kit_perf
23+
- run: flutter test --enable-vmservice
24+
working-directory: kits/flutter_ume_kit_show_code
25+
- run: flutter test --enable-vmservice
26+
working-directory: kits/flutter_ume_kit_ui
27+
- run: flutter test --enable-vmservice
28+
working-directory: kits/flutter_ume_kit_console

.gitignore

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
#.vscode/
22+
23+
# Flutter/Dart/Pub related
24+
**/doc/api/
25+
.dart_tool/
26+
.flutter-plugins
27+
.flutter-plugins-dependencies
28+
.packages
29+
.pub-cache/
30+
.pub/
31+
build/
32+
33+
# Android related
34+
**/android/**/gradle-wrapper.jar
35+
**/android/.gradle
36+
**/android/captures/
37+
**/android/gradlew
38+
**/android/gradlew.bat
39+
**/android/local.properties
40+
**/android/**/GeneratedPluginRegistrant.java
41+
42+
# iOS/XCode related
43+
**/ios/**/*.mode1v3
44+
**/ios/**/*.mode2v3
45+
**/ios/**/*.moved-aside
46+
**/ios/**/*.pbxuser
47+
**/ios/**/*.perspectivev3
48+
**/ios/**/*sync/
49+
**/ios/**/.sconsign.dblite
50+
**/ios/**/.tags*
51+
**/ios/**/.vagrant/
52+
**/ios/**/DerivedData/
53+
**/ios/**/Icon?
54+
**/ios/**/Pods/
55+
**/ios/**/.symlinks/
56+
**/ios/**/profile
57+
**/ios/**/xcuserdata
58+
**/ios/.generated/
59+
**/ios/Flutter/App.framework
60+
**/ios/Flutter/Flutter.framework
61+
**/ios/Flutter/Flutter.podspec
62+
**/ios/Flutter/Generated.xcconfig
63+
**/ios/Flutter/app.flx
64+
**/ios/Flutter/app.zip
65+
**/ios/Flutter/flutter_assets/
66+
**/ios/Flutter/flutter_export_environment.sh
67+
**/ios/ServiceDefinitions.json
68+
**/ios/Runner/GeneratedPluginRegistrant.*
69+
70+
# Exceptions to above rules.
71+
!**/ios/**/default.mode1v3
72+
!**/ios/**/default.mode2v3
73+
!**/ios/**/default.pbxuser
74+
!**/ios/**/default.perspectivev3
75+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
76+
77+
# Coverage
78+
**/coverage/output/
79+
**/coverage/new_lcov.info

.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: 02c026b03cd31dd3f867e5faeb7e104cce174c5f
8+
channel: unknown
9+
10+
project_type: package

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
[English](./CHANGELOG_en.md)
4+
5+
## [0.1.0]
6+
7+
* 开源

CHANGELOG_en.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
[简体中文](./CHANGELOG.md)
4+
5+
## [0.1.0]
6+
7+
* Open source.

0 commit comments

Comments
 (0)