Skip to content

Commit

Permalink
[feat] Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
smileShirely committed Jul 20, 2021
0 parents commit 73da7fe
Show file tree
Hide file tree
Showing 299 changed files with 18,752 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/1_usage_support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: I have a problem with UME usage. 我对 UME 的使用有疑问。
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 的实现原理感兴趣。
title: ''
labels: ''
assignees: ''
---

## What's your question 你遇到了什么问题

<!--
Please describe your problem here.
请在这里描述你的问题。
-->

## Environmental info 环境信息

### Flutter doctor

<!--
Please paste the output of running `flutter doctor -v` here.
请将 `flutter doctor -v` 的执行结果贴到下面。
-->

``` bash

```

### UME and kits version UME 及插件包版本

<!--
Please list the version of UME and related packages here.
You can also paste `pubspec.yaml` directly.
请将 UME 及相关 package 的版本列到下面。直接粘贴 `pubspec.yaml` 也可以。
-->

``` bash

```
59 changes: 59 additions & 0 deletions .github/ISSUE_TEMPLATE/2_bug_and_exception.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
name: I found a bug or an exception. 我发现了一个 bug 或异常。
about: When using UME, the application did not run as expected, or an exception was throwed. 在使用 UME 时,应用程序没有按照预期运行,或报了一个异常。
title: ''
labels: ''
assignees: ''
---

## Steps to Reproduce 复现步骤

<!--
You must include full steps to reproduce so that we can reproduce the problem.
It would be better if there is a reproducible code example.
请务必包含完整复现步骤以便于定位问题。如果有演示代码就更好了。
-->

1. ... <!-- describe how to reproduce the problem 描述如何复现问题-->
2. ... <!-- describe how to reproduce the problem 描述如何复现问题-->
3. ... <!-- describe how to reproduce the problem 描述如何复现问题-->

**Expected results 期望结果:** <!-- what did you want to see? 你期望看到什么结果?-->

**Actual results 实际结果:** <!-- what did you see? 实际看到的结果?-->

## Error log 错误日志

<!--
Please paste the error log here.
请将错误日志贴在下面。
-->

``` bash

```

## Environmental info 环境信息

### Flutter doctor

<!--
Please paste the output of running `flutter doctor -v` here.
请将 `flutter doctor -v` 的执行结果贴到下面。
-->

``` bash

```

### UME and kits version UME 及插件包版本

<!--
Please list the version of UME and related packages here.
You can also paste `pubspec.yaml` directly.
请将 UME 及相关 package 的版本列到下面。直接粘贴 `pubspec.yaml` 也可以。
-->

``` bash

```
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/3_feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Feature request 功能建议
about: Suggest a new idea for UME. 为 UME 提出新的点子。
title: ''
labels: ''
assignees: ''
---

## Use case 建议

<!--
Please describe what features you need? Or what do you want the existing features to become?
请描述你需要什么样的功能?或希望现有的功能变成什么样子?
-->

## Scenes 使用场景

<!--
Please describe the circumstances in which the new feature or the change of feature is needed.
请描述在什么情况下,需要这个新功能,或需要功能的变更。
-->
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Join the ByteDance Flutter Exchange Group. 加入字节跳动 Flutter 技术交流群
url: https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=b07u55bb-68f0-4a4b-871d-687637766a68
about: The topic of communication is not limited to UME, everything about Flutter can be spoken. 话题不局限于 UME,关于 Flutter 的一切均可畅所欲言。
19 changes: 19 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

Describe what problem this pull request solves and how to solve it. If there is an issue associated with it, please attach a link.

请描述这个 pull request 解决了什么问题,以及解决方式。如果有与之关联的 issue,请附链接。

## Pull Request Checklist

- [ ] I have read the [UME contribution document](../CONTRIBUTING.md) and understand how to contribute, commit the code according to the rules. 我已阅读过 UME 贡献文档,并了解如何进行贡献,按照规则提交了代码
- [ ] I have added the necessary comments in code to ensure that other contributors can understand the reason for the change. 我在修改中已经添加了必要的注释,以确保便于其他贡献者理解修改原因
- [ ] The code has been formatted by dartfmt before push. 代码在提交前已经经过 dartfmt 进行了格式化
- [ ] Change does not involve the adjustment of test cases. Or all existing and new tests are passing. 改动不涉及测试用例调整,或 example 工程与单元测试已经完全跑通

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).

如有任何问题,可以[加入字节跳动 Flutter 交流群](https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=67au2f75-3783-41b0-8868-0fc0178f1fd8)

Or contact [author](mailto:[email protected]).

或随时[联系开发者](mailto:[email protected])
30 changes: 30 additions & 0 deletions .github/workflows/build_eaxmple.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build_eaxmple

on:
push:
tags:
- "v*"

jobs:
release-to-gitHub:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- name: Flutter action
uses: subosito/[email protected]
with:
flutter-version: '2.2.x'
channel: stable
- run: flutter pub get
working-directory: example
- run: flutter build apk --debug
working-directory: example
- uses: softprops/action-gh-release@v1
with:
files: example/build/app/outputs/apk/debug/app-debug.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60 changes: 60 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: coverage

on:
push:
branches:
- master
- develop
paths:
- 'lib/**'
- 'kits/flutter_ume_kit_console/lib/**'
- 'kits/flutter_ume_kit_device/lib/**'
- 'kits/flutter_ume_kit_perf/lib/**'
- 'kits/flutter_ume_kit_show_code/lib/**'
- 'kits/flutter_ume_kit_ui/lib/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ env.GITHUB_REF }}
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- name: Flutter action
uses: subosito/[email protected]
with:
flutter-version: '2.2.x'
channel: stable
- run: |
flutter pub get
flutter pub run flutter_coverage_badge
- run: |
flutter pub get
flutter pub run flutter_coverage_badge
working-directory: kits/flutter_ume_kit_device
- run: |
flutter pub get
flutter pub run flutter_coverage_badge
working-directory: kits/flutter_ume_kit_perf
- run: |
flutter pub get
flutter pub run flutter_coverage_badge
working-directory: kits/flutter_ume_kit_show_code
- run: |
flutter pub get
flutter pub run flutter_coverage_badge
working-directory: kits/flutter_ume_kit_ui
- run: |
flutter pub get
flutter pub run flutter_coverage_badge
working-directory: kits/flutter_ume_kit_console
- name: Commit badges
run: |
git config --global user.name smileShirely
git config --global user.email [email protected]
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
git commit -m "Automated report coverage"
git push
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: test

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- name: Flutter action
uses: subosito/[email protected]
with:
flutter-version: '2.2.x'
channel: stable
- run: flutter test --enable-vmservice
- run: flutter test --enable-vmservice
working-directory: kits/flutter_ume_kit_device
- run: flutter test --enable-vmservice
working-directory: kits/flutter_ume_kit_perf
- run: flutter test --enable-vmservice
working-directory: kits/flutter_ume_kit_show_code
- run: flutter test --enable-vmservice
working-directory: kits/flutter_ume_kit_ui
- run: flutter test --enable-vmservice
working-directory: kits/flutter_ume_kit_console
79 changes: 79 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
build/

# Android related
**/android/**/gradle-wrapper.jar
**/android/.gradle
**/android/captures/
**/android/gradlew
**/android/gradlew.bat
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java

# iOS/XCode related
**/ios/**/*.mode1v3
**/ios/**/*.mode2v3
**/ios/**/*.moved-aside
**/ios/**/*.pbxuser
**/ios/**/*.perspectivev3
**/ios/**/*sync/
**/ios/**/.sconsign.dblite
**/ios/**/.tags*
**/ios/**/.vagrant/
**/ios/**/DerivedData/
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Flutter.podspec
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/Flutter/flutter_export_environment.sh
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

# Coverage
**/coverage/output/
**/coverage/new_lcov.info
10 changes: 10 additions & 0 deletions .metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: 02c026b03cd31dd3f867e5faeb7e104cce174c5f
channel: unknown

project_type: package
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

[English](./CHANGELOG_en.md)

## [0.1.0]

* 开源
7 changes: 7 additions & 0 deletions CHANGELOG_en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

[简体中文](./CHANGELOG.md)

## [0.1.0]

* Open source.
Loading

0 comments on commit 73da7fe

Please sign in to comment.