Skip to content

Commit bb4340b

Browse files
committed
+ support Magisk module update
+ 4.5.0
1 parent 2ba8707 commit bb4340b

20 files changed

+112
-21
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog
2+
3+
### v4.5.0 (2022-12-07)
4+
5+
+ 适配微信8.0.30(2240)版本

app/build.gradle

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ android {
88
applicationId "com.surcumference.fingerprintpay"
99
minSdkVersion 14
1010
targetSdkVersion 30
11-
versionCode 21
12-
versionName "4.4.1"
11+
versionCode 22
12+
versionName "4.5.0"
1313
buildConfigField "String", "APP_PRODUCT_NAME", "\"FingerprintPay\""
1414
}
1515

@@ -51,9 +51,16 @@ android {
5151
buildTypes.release.signingConfig signingConfigs.release
5252
}
5353
}
54+
project.ext.appInfo = [
55+
Alipay: "com.eg.android.AlipayGphone",
56+
Taobao: "com.taobao.taobao",
57+
QQ: "com.tencent.mobileqq",
58+
WeChat: "com.tencent.mm",
59+
UnionPay: "com.unionpay",
60+
]
5461

5562
apply from: 'debug.gradle'
56-
63+
apply from: 'update-json.gradle'
5764
dependencies {
5865
implementation 'com.wei.android.lib:fingerprintidentify:1.2.6'
5966
implementation 'com.google.code.gson:gson:2.8.6'

app/debug.gradle

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
def ADB_PATH = "${android.getSdkDirectory()}/platform-tools/adb"
2-
def appInfo = [
3-
Alipay: "com.eg.android.AlipayGphone",
4-
Taobao: "com.taobao.taobao",
5-
QQ: "com.tencent.mobileqq",
6-
WeChat: "com.tencent.mm",
7-
UnionPay: "com.unionpay",
8-
]
9-
appInfo.each {entry ->
2+
project.ext.appInfo.each {entry ->
103
def name = entry.key
114
def packageName = entry.value
125
def stopTask = tasks.create(name: "stop$name", type: Exec) {

app/update-json.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import groovy.json.JsonOutput
2+
project.ext.appInfo.each { entry ->
3+
['zygisk', 'riru'].each {pluginType ->
4+
def name = entry.key.toLowerCase()
5+
def versionName = android.defaultConfig.versionName
6+
def info = [
7+
version: "${versionName}",
8+
versionCode: "${android.defaultConfig.versionCode}",
9+
zipUrl: "https://github.com/eritpchy/FingerprintPay/releases/download/$versionName-ci/$pluginType-module-xfingerprint-pay-$name-v$versionName-release.zip",
10+
changelog: "https://raw.githubusercontent.com/eritpchy/FingerprintPay/main/CHANGELOG.md",
11+
]
12+
13+
def json_str = JsonOutput.toJson(info)
14+
def json_beauty = JsonOutput.prettyPrint(json_str)
15+
File file = rootProject.file("release/update_${pluginType}_${name}.json")
16+
file.write(json_beauty)
17+
}
18+
}

release/update_riru_alipay.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": "4.5.0",
3+
"versionCode": "22",
4+
"zipUrl": "https://github.com/eritpchy/FingerprintPay/releases/download/4.5.0-ci/riru-module-xfingerprint-pay-alipay-v4.5.0-release.zip",
5+
"changelog": "https://raw.githubusercontent.com/eritpchy/FingerprintPay/main/CHANGELOG.md"
6+
}

release/update_riru_qq.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": "4.5.0",
3+
"versionCode": "22",
4+
"zipUrl": "https://github.com/eritpchy/FingerprintPay/releases/download/4.5.0-ci/riru-module-xfingerprint-pay-qq-v4.5.0-release.zip",
5+
"changelog": "https://raw.githubusercontent.com/eritpchy/FingerprintPay/main/CHANGELOG.md"
6+
}

release/update_riru_taobao.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": "4.5.0",
3+
"versionCode": "22",
4+
"zipUrl": "https://github.com/eritpchy/FingerprintPay/releases/download/4.5.0-ci/riru-module-xfingerprint-pay-taobao-v4.5.0-release.zip",
5+
"changelog": "https://raw.githubusercontent.com/eritpchy/FingerprintPay/main/CHANGELOG.md"
6+
}

release/update_riru_unionpay.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": "4.5.0",
3+
"versionCode": "22",
4+
"zipUrl": "https://github.com/eritpchy/FingerprintPay/releases/download/4.5.0-ci/riru-module-xfingerprint-pay-unionpay-v4.5.0-release.zip",
5+
"changelog": "https://raw.githubusercontent.com/eritpchy/FingerprintPay/main/CHANGELOG.md"
6+
}

release/update_riru_wechat.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": "4.5.0",
3+
"versionCode": "22",
4+
"zipUrl": "https://github.com/eritpchy/FingerprintPay/releases/download/4.5.0-ci/riru-module-xfingerprint-pay-wechat-v4.5.0-release.zip",
5+
"changelog": "https://raw.githubusercontent.com/eritpchy/FingerprintPay/main/CHANGELOG.md"
6+
}

release/update_zygisk_alipay.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": "4.5.0",
3+
"versionCode": "22",
4+
"zipUrl": "https://github.com/eritpchy/FingerprintPay/releases/download/4.5.0-ci/zygisk-module-xfingerprint-pay-alipay-v4.5.0-release.zip",
5+
"changelog": "https://raw.githubusercontent.com/eritpchy/FingerprintPay/main/CHANGELOG.md"
6+
}

0 commit comments

Comments
 (0)