-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
227 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{kt, kts}] | ||
ij_kotlin_imports_layout = * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Android CI | ||
name: build | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
JAVA_VERSION: 11 | ||
PYTHON_VERSION: 3.x | ||
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false" | ||
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
pages: write | ||
|
||
jobs: | ||
docs: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/master' | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ env.JAVA_VERSION }} | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Install MkDocs Material | ||
run: pip install mkdocs-material | ||
|
||
- name: Generate Docs | ||
run: ./build_docs.sh | ||
|
||
- name: Upload to GitHub Pages | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: site | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## 版本日志 | ||
|
||
#### v2.1.0 :2023-09-24 | ||
* 简化集成步骤 | ||
* 优化细节(统一结果判定) | ||
|
||
#### v2.0.0 :2023-09-17 | ||
* 迁移发布至 MavenCentral | ||
* 新增子库UnionPay(银联支付) | ||
* 更新支付宝支付SDK依赖至v15.8.16(支付宝支付从AAR依赖更新为从Maven依赖) | ||
* 更新微信支付SDK依赖至v6.8.24 | ||
* 更新Gradle至v7.3.3 | ||
* 更新compileSdk至32 | ||
|
||
#### v1.0.1 :2019-11-14 (之前发布的版本是在JCenter) | ||
* 移除support:appcompat-v7依赖 | ||
* 更新微信支付SDK依赖至v5.4.0 | ||
* 更新支付宝支付SDK依赖至v15.6.8(alipaySdk-15.6.8-20191021122514) | ||
|
||
#### v1.0.0 :2019-3-21 | ||
* AppPay初始版本 | ||
* AliPay 依赖AlipaySdk版本(alipaySdk-15.6.0-20190226104053) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
# Generate the API docs | ||
./gradlew dokkaHtmlMultiModule | ||
|
||
mkdir -p docs/api | ||
mv build/dokka/htmlMultiModule/* docs/api | ||
|
||
# Copy in special files that GitHub wants in the project root. | ||
GITHUB_URL=https://github.com/jenly1314/AppPay/ | ||
echo $GITHUB_URL | ||
sed "/<!-- end -->/q" README.md > docs/index.md | ||
sed -i "s|app/src/main/ic_launcher-web.png|ic_logo.png|g" docs/index.md | ||
sed -i "s|](app|](${GITHUB_URL}blob/master/app|g" docs/index.md | ||
sed -i "s|](doc|](${GITHUB_URL}blob/master/doc|g" docs/index.md | ||
sed -i "s|](alipay|](${GITHUB_URL}blob/master/alipay|g" docs/index.md | ||
sed -i "s|](wxpay|](${GITHUB_URL}blob/master/wxpay|g" docs/index.md | ||
sed -i "s|](unionpay|](${GITHUB_URL}blob/master/unionpay|g" docs/index.md | ||
cat CHANGELOG.md | grep -v '## 版本日志' > docs/changelog.md | ||
|
||
cp -r art docs/art | ||
cp app/src/main/ic_launcher-web.png docs/ic_logo.png | ||
|
||
# Build the site locally | ||
mkdocs build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# Project information | ||
site_name: AppPay | ||
site_url: https://jenly1314.github.io/AppPay/ | ||
site_description: "AppPay for Android" | ||
site_author: Jenly | ||
remote_branch: gh-pages | ||
edit_uri: "" | ||
|
||
# Repository | ||
repo_name: AppPay | ||
repo_url: https://github.com/jenly1314/AppPay | ||
|
||
# Copyright | ||
copyright: 'Copyright © 2016 - 2024 Jenly' | ||
|
||
# Configuration | ||
theme: | ||
name: 'material' | ||
favicon: https://jenly1314.github.io/favicon.png | ||
logo: https://jenly1314.github.io/medias/logo.png | ||
icon: | ||
repo: fontawesome/brands/github | ||
language: zh | ||
palette: | ||
- media: "(prefers-color-scheme: light)" | ||
scheme: default | ||
primary: teal | ||
accent: blue | ||
toggle: | ||
icon: octicons/sun-24 | ||
name: "切换到深色模式" | ||
- media: "(prefers-color-scheme: dark)" | ||
scheme: slate | ||
primary: teal | ||
accent: blue | ||
toggle: | ||
icon: octicons/moon-24 | ||
name: "切换到浅色模式" | ||
features: | ||
- navigation.instant | ||
- navigation.instant.progress | ||
- navigation.tabs | ||
- content.code.copy | ||
|
||
extra: | ||
social: | ||
- icon: material/home-circle | ||
link: https://jenly1314.github.io/ | ||
- icon: simple/github | ||
link: https://github.com/jenly1314/ | ||
- icon: simple/gitee | ||
link: https://gitee.com/jenly1314/ | ||
- icon: fontawesome/solid/paper-plane | ||
link: mailto:[email protected] | ||
|
||
markdown_extensions: | ||
- smarty | ||
- footnotes | ||
- meta | ||
- toc: | ||
permalink: true | ||
- attr_list | ||
- pymdownx.betterem: | ||
smart_enable: all | ||
- pymdownx.caret | ||
- pymdownx.emoji: | ||
emoji_index: !!python/name:materialx.emoji.twemoji | ||
emoji_generator: !!python/name:materialx.emoji.to_svg | ||
- pymdownx.inlinehilite | ||
- pymdownx.magiclink | ||
- pymdownx.smartsymbols | ||
- pymdownx.superfences | ||
- pymdownx.tilde | ||
- pymdownx.tabbed: | ||
alternate_style: true | ||
- tables | ||
|
||
# Plugins | ||
plugins: | ||
- search | ||
|
||
nav: | ||
- '概览': index.md | ||
- 'API文档': api/index.html | ||
- '版本日志': changelog.md | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters