Skip to content

Commit a278d2d

Browse files
committed
修复仓库
1 parent bced817 commit a278d2d

24 files changed

+2393
-34
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bugreport.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Bug Report
2+
description: A template for Bur Reporting
3+
body:
4+
- type: dropdown
5+
id: version
6+
attributes:
7+
label: FTC RIC version
8+
options:
9+
- 0.1.0
10+
- 0.1.1
11+
- 0.2.0
12+
- 0.3.0
13+
- 0.4.0
14+
validations:
15+
required: true
16+
- type: textarea
17+
attributes:
18+
label: Bug description
19+
value: |
20+
Entre the way to find the bug.
21+
- type: textarea
22+
attributes:
23+
label: Annex

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Feature Request
2+
description: Suggest an idea for this project
3+
body:
4+
- type: textarea
5+
id: BugBase
6+
attributes:
7+
label: Correlated Issues
8+
value: |
9+
If the report is not base on an issue, you don't need to change the value here.
10+
- type: textarea
11+
id: Suggestion
12+
attributes:
13+
label: Your Suggestion
14+
- type: dropdown
15+
id: versionBase
16+
attributes:
17+
label: Version Base On
18+
options:
19+
- 0.1.0
20+
- 0.1.1
21+
- 0.2.0
22+
- 0.3.0
23+
- 0.4.0

.github/workflows/android.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-22.04.4
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: set up JDK 17
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '17'
20+
distribution: 'temurin'
21+
cache: gradle
22+
23+
- name: Grant execute permission for gradlew
24+
run: chmod +x gradlew
25+
- name: Build with Gradle
26+
run: ./gradlew build

.github/workflows/gradle-publish.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
6+
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle
7+
8+
name: Gradle Package
9+
10+
on:
11+
release:
12+
types: [创建]
13+
14+
jobs:
15+
build:
16+
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
packages: write
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Set up JDK 17
25+
uses: actions/setup-java@v4
26+
with:
27+
java-version: '17'
28+
distribution: 'temurin'
29+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
30+
settings-path: ${{ github.workspace }} # location for the settings.xml file
31+
32+
- name: Setup Gradle
33+
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
34+
35+
- name: Build with Gradle
36+
run: ./gradlew build
37+
38+
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
39+
# the publishing section of your build.gradle
40+
- name: Publish to GitHub Packages
41+
run: ./gradlew publish
42+
env:
43+
USERNAME: ${{ github.actor }}
44+
TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/zipper.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Zipper
2+
on:
3+
push:
4+
branches: ["master"]
5+
jobs:
6+
zip:
7+
permissions:
8+
contents: write # for git push
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: run Zipper.sh to update RIC.zip
13+
run: |
14+
/bin/bash ./Zipper.sh
15+
16+
if [ -n "$(git status --porcelain)" ]; then
17+
git config --global user.name "Github Actions"
18+
git config --global user.email "actions@github.com"
19+
git add RIC.zip
20+
git commit --allow-empty -m "自动更新RIC.zip"
21+
git push
22+
fi
23+
- name: run UpgradeZipper to upgrade RIC_Upgrade.zip
24+
run: |
25+
/bin/bash ./UpgradeZipper.sh
26+
if [ -n "$(git status --porcelain)" ]; then
27+
git config --global user.name "Github Actions"
28+
git config --global user.email "actions@github.com"
29+
git add RIC_Upgrade.zip
30+
git commit --allow-empty -m "自动更新RIC_Upgrade.zip"
31+
git push
32+
fi

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ build/
2626

2727
# Local configuration file (sdk path, etc)
2828
local.properties
29+
build/wrapper/gradle-wrapper.properties
2930

3031
# Proguard folder generated by Eclipse
3132
proguard/

CODE_OF_CONDUCT.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at
63+
bennyli2011@163.com.
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.0, available at
119+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
125+
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at
128+
https://www.contributor-covenant.org/translations.

CODE_OF_CONDUCT_CN.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# 参与者公约行为准则
2+
3+
## 我们的承诺
4+
5+
作为成员、贡献者和领导者,我们承诺使我们的社区成为每个人都能无骚扰地参与的地方,无论年龄、体型、可见或不可见的残疾、种族、性别特征、性别认同和表达、经验水平、教育、社会经济地位、国籍、个人外貌、种族、宗教或性取向。
6+
7+
我们承诺以促进开放、欢迎、多样化、包容和健康的社区的方式行事和互动。
8+
9+
## 我们的标准
10+
11+
有助于为我们的社区创造积极环境的行为示例包括:
12+
13+
- 对其他人表现出同情心和善意
14+
- 尊重不同的意见、观点和经历
15+
- 提供并优雅地接受建设性反馈
16+
- 接受责任,向我们的错误影响的人道歉,并从中学习经验
17+
- 关注的不仅仅是我们个人的最佳利益,而是整个社区的最佳利益
18+
19+
不可接受的行为示例包括:
20+
21+
- 使用性化的语言或图像,以及任何形式的性注意或性进展
22+
- 恶意挑衅、侮辱或贬损性评论以及个人或政治攻击
23+
- 公开或私下骚扰
24+
- 未经他人明确许可,发布他人的私人信息,如物理或电子邮件地址
25+
- 其他在专业环境中可能被认为不恰当的行为
26+
27+
## 执行责任
28+
29+
社区领导者负责澄清和执行我们可接受行为的标准,并将在他们认为不适当、威胁、冒犯或有害的任何行为上采取适当和公平的纠正措施。
30+
31+
社区领导者有权并负责删除、编辑或拒绝与本行为准则不一致的评论、提交、代码、维基编辑、问题以及其他贡献,并将在适当时沟通版主决定的原因。
32+
33+
## 范围
34+
35+
本行为准则适用于所有社区空间,并且当个人在公共空间正式代表社区时也适用。代表我们社区的例子包括使用官方电子邮件地址、通过官方社交媒体账户发布或作为在线或离线活动的指定代表。
36+
37+
## 执行
38+
39+
滥用、骚扰或任何其他不可接受的行为的实例可以报告给负责执行的社区领导者,电子邮件地址为:bennyli2011@163.com。所有投诉都将被及时且公正地审查和调查。
40+
41+
所有社区领导者都有义务尊重任何事件报告人的隐私和安全。
42+
43+
## 执行指南
44+
45+
社区领导者将遵循以下社区影响指南来确定他们认为违反本行为准则的任何行为的后果:
46+
47+
1. 纠正
48+
- 社区影响:使用不适当的语言或在社区中被认为不专业或不受欢迎的其他行为。
49+
- 后果:社区领导者将发出私人书面警告,阐明违规性质和行为为何不适当。可能会要求公开道歉。
50+
51+
2. 警告
52+
- 社区影响:通过单一事件或一系列行为违反。
53+
- 后果:警告并继续行为的后果。在指定时间内不与涉及人员互动,包括与执行行为准则的人进行非请求性互动。这包括避免在社区空间以及外部渠道如社交媒体上的互动。违反这些条款可能导致临时或永久禁止。
54+
55+
3. 临时禁止
56+
- 社区影响:严重违反社区标准,包括持续的不当行为。
57+
- 后果:在指定时间内禁止与社区进行任何形式的互动或公开沟通。在此期间不允许与涉及人员进行公开或私下互动,包括与执行行为准则的人进行非请求性互动。违反这些条款可能导致永久禁止。
58+
59+
4. 永久禁止
60+
- 社区影响:表现出违反社区标准的模式,包括持续的不当行为、对个人的骚扰或对个人类别的攻击或诽谤。
61+
- 后果:永久禁止在社区内进行任何形式的公开互动。
62+
63+
## 归属
64+
65+
本行为准则改编自参与者公约,版本 2.0,可在 https://www.contributor-covenant.org/version/2/0/code_of_conduct.html 查看。
66+
67+
社区影响指南受到 Mozilla 行为准则执行阶梯的启发。
68+
69+
有关本行为准则的常见问题,请参见 FAQ https://www.contributor-covenant.org/faq。翻译可在 https://www.contributor-covenant.org/translations 查看。

0 commit comments

Comments
 (0)