Skip to content

Commit

Permalink
Update code-format and README (#103)
Browse files Browse the repository at this point in the history
Co-authored-by: kevingpqi <[email protected]>
  • Loading branch information
kevingpqi123 and kevingpqi123 authored Feb 11, 2022
1 parent 7cb116e commit 874dff2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/code_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ jobs:
chmod +x codeformat.sh
./codeformat.sh
shell: bash
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply code format changes
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<img src="resources/readme/logo.png" alt="PAG Logo" width="474"/>

[![license](https://img.shields.io/badge/license-Apache%202-blue)](https://github.com/Tencent/libpag/blob/master/LICENSE.txt) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/Tencent/libpag/pulls) [![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/Tencent/libpag)](https://github.com/Tencent/libpag/releases)
[![license](https://img.shields.io/badge/license-Apache%202-blue)](https://github.com/Tencent/libpag/blob/master/LICENSE.txt)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/Tencent/libpag/pulls)
[![codecov](https://codecov.io/gh/Tencent/libpag/branch/main/graph/badge.svg)](https://codecov.io/gh/Tencent/libpag)
[![Actions Status](https://github.com/Tencent/libpag/workflows/autotest/badge.svg?branch=main)](https://github.com/Tencent/libpag/actions)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/Tencent/libpag)](https://github.com/Tencent/libpag/releases)

English | [简体中文](./README.zh_CN.md) | [Homepage](https://pag.io)

Expand Down Expand Up @@ -96,12 +100,12 @@ After installing the cocoapod into your project import libpag with

You can use the aar downloaded from the release page, or add libpag to your project by Maven:

Edit the `build.gradle` file in the root of your project, add `jcenter()` to `repositories`:
Edit the `build.gradle` file in the root of your project, add `mavenCentral()` to `repositories`:

```
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
Expand Down
6 changes: 5 additions & 1 deletion README.zh_CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<img src="resources/readme/logo.png" alt="PAG Logo" width="474"/>

[![license](https://img.shields.io/badge/license-Apache%202-blue)](https://github.com/tencent/libpag/blob/master/LICENSE.txt) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/tencent/libpag/pulls) [![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/tencent/libpag)](https://github.com/tencent/libpag/releases)
[![license](https://img.shields.io/badge/license-Apache%202-blue)](https://github.com/Tencent/libpag/blob/master/LICENSE.txt)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/Tencent/libpag/pulls)
[![codecov](https://codecov.io/gh/Tencent/libpag/branch/main/graph/badge.svg)](https://codecov.io/gh/Tencent/libpag)
[![Actions Status](https://github.com/Tencent/libpag/workflows/autotest/badge.svg?branch=main)](https://github.com/Tencent/libpag/actions)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/Tencent/libpag)](https://github.com/Tencent/libpag/releases)

[English](./README.md) | 简体中文 | [官网](https://pag.io)
| [QQ群:893379574](https://qm.qq.com/cgi-bin/qm/qr?k=Wa65DTnEKo2hnPsvY-1EgJOF8tvKQ-ZT&jump_from=webapi)
Expand Down
9 changes: 0 additions & 9 deletions codeformat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,5 @@ find src -name "*.cpp" -print -o -name "*.h" -print -o -name "*.mm" -print -o
# shellcheck disable=SC2038
find test \( -path test/framework/lzma \) -prune -o -name "*.cpp" -print -o -name "*.h" -print | xargs clang-format -i

git diff
result=`git diff`
if [[ $result =~ "diff" ]]
then
echo "----Failed----"
exit 1
else
echo "----Success----"
fi
echo "----Complete the scan code format-----"

0 comments on commit 874dff2

Please sign in to comment.