Skip to content

Commit

Permalink
[feat] 合并mislock的google play适配,并修复google依赖库自动升级导致的编译失败
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingyueyixi committed Jun 9, 2024
1 parent 58f16d2 commit f206554
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 10 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand All @@ -34,6 +34,7 @@ jobs:
echo "GIT_COMMIT=$GIT_COMMIT$">> $GITHUB_ENV
echo "GITHUB_RUN_URL=$github_run_url">> $GITHUB_ENV
echo "GIT_BRANCH=`git branch --show-current`" >> $GITHUB_ENV
chmod +x robot.py
# debug
- name: Dump Env
Expand Down Expand Up @@ -63,13 +64,13 @@ jobs:
debugArtifactName=`ls app/build/outputs/apk/debug/*.apk | grep -Po "(?<=debug/).*(?=\.apk)"` && echo "debugArtifactName=$debugArtifactName" >> $GITHUB_OUTPUT
- name: Upload Archive Release-Apk
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.prepareArtifact.outputs.releaseArtifactName }}
path: app/build/outputs/apk/release/*.apk

- name: Upload Archive Debug-Apk
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.prepareArtifact.outputs.debugArtifactName }}
path: ./app/build/outputs/apk/debug/*.apk
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
python-version: [ "3.10" ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down
17 changes: 14 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,28 @@ android {

}

configurations.all {
resolutionStrategy {
force 'androidx.core:core:1.13.1'
// force 'androidx.arch.core:core-runtime:2.2.0'
}
}



dependencies {
implementation(fileTree(dir: "libs", include: ["*.jar", "*.aar"]))
implementation(deps['com.github.Mingyueyixi.frame-base-utils:core'])
implementation(deps['com.github.Mingyueyixi.frame-ui:ui-appcompat'])
// implementation('com.github.Mingyueyixi.frame-ui:ui-appcompat:1.0')

implementation(deps['com.github.Mingyueyixi.frame-ui:ui-appcompat']){
// exclude(group:'androidx.core', module:'core')
}
implementation(deps['com.github.Mingyueyixi.lposed:xposed-api2'])
implementation(deps['com.github.Mingyueyixi.lposed:plugin'])

implementation(deps['com.google.code.gson:gson'])
implementation(deps['androidx.appcompat:appcompat'])
// implementation 'androidx.core:core:1.3.1'

implementation(project(":lib-donate"))
compileOnly(deps['de.robv.android.xposed:api'])
compileOnly('com.tencent.wcdb:wcdb-android:1.1-19')
Expand Down
13 changes: 11 additions & 2 deletions app/src/main/java/com/lu/wxmask/plugin/ui/DBInfoListUI.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import com.lu.wxmask.util.ConfigUtil
import com.lu.wxmask.util.WxSQLiteManager
import com.lu.wxmask.util.ext.dp
import com.lu.wxmask.util.ext.toJson
import java.io.File

class DBInfoListUI(val context: Context) : IConfigManagerUI {
private lateinit var listView: ListView
Expand Down Expand Up @@ -112,11 +113,18 @@ class DBInfoListUI(val context: Context) : IConfigManagerUI {
override fun onBindViewHolder(vh: Holder, position: Int, parent: ViewGroup) {
val item = dataList[position]
vh.textLeft.text = item.name
vh.textRight.text = item.password.toElseEmptyString()

val dbFile = File(item.name)
val rightText = item.password.toElseEmptyString() + if (dbFile.exists()) {
"\n${dbFile.length() / 1024L}KB"
} else {
""
}
vh.textRight.text = rightText
vh.itemView.setOnClickListener {
val text = "数据库:${item.name}\n密码:${item.password}"
if (ClipboardUtil.copy(text)) {
// ToastUtil.show("数据库路径和密码已复制")
ToastUtil.show("数据库路径和密码已复制")
ToastUtil.show(WxSQLiteManager.getAllTables(item.name, item.password).toJson())

}
Expand All @@ -131,6 +139,7 @@ class DBInfoListUI(val context: Context) : IConfigManagerUI {

init {
itemView.addView(LinearLayout(itemView.context).apply {
orientation = LinearLayout.HORIZONTAL
addView(TextView(context).apply {
textLeft = this
textSize = 16f
Expand Down
8 changes: 8 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
pluginManagement {
repositories {
maven {
allowInsecureProtocol = true
url "http://127.0.0.1:10072"
}
maven { url 'https://repo.huaweicloud.com/repository/maven' }
//central有的,public聚合仓不一定有,奇葩
maven { url 'https://maven.aliyun.com/repository/central' }
Expand All @@ -17,6 +21,10 @@ pluginManagement {
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
maven {
allowInsecureProtocol = true
url "http://127.0.0.1:10072"
}
// maven {
// url = uri("https://maven.pkg.github.com/mingyueyixi/frame-ui")
// credentials {
Expand Down

0 comments on commit f206554

Please sign in to comment.