Skip to content

Commit

Permalink
修改签名,action中下载的分支, saf根目录名称
Browse files Browse the repository at this point in the history
签名使用原gradle中的签名
action中指定分支为extra-feature
修复mt左侧显示根目录名称为files的bug
  • Loading branch information
ewt45 committed Apr 12, 2024
1 parent ba03960 commit 9ab86ab
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/debug_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
workflow_dispatch:
push:
branches:
- master
- extra-feature #指定分支
pull_request:
branches:
- master
- extra-feature

jobs:
build:
Expand All @@ -20,6 +20,8 @@ jobs:
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
ref: extra-feature #指定分支

- name: Build APKs
shell: bash {0}
Expand Down
10 changes: 6 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id "com.android.application"
id "com.android.application"
}

ext {
Expand Down Expand Up @@ -77,13 +77,15 @@ android {

signingConfigs {
debug {
storeFile file('no_trust.jks')
storeFile file('testkey_untrusted.jks')
keyAlias 'alias'
storePassword '&TdLbu2Y'//'xrj45yWGLbsO7W0v'
keyPassword '&TdLbu2Y'//'xrj45yWGLbsO7W0v'
storePassword 'xrj45yWGLbsO7W0v'//'xrj45yWGLbsO7W0v'
keyPassword 'xrj45yWGLbsO7W0v'//'xrj45yWGLbsO7W0v'
}
}



buildTypes {
release {
minifyEnabled true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ public Cursor querySearchDocuments(String rootId, String query, String[] project
final File file = pending.removeFirst();
// Avoid directories outside the $HOME directory linked with symlinks (to avoid e.g. search
// through the whole SD card).
boolean isInsideFiles;
boolean isInsideHome;
try {
isInsideFiles = file.getCanonicalPath().startsWith(TermuxConstants.TERMUX_FILES_DIR_PATH);
isInsideHome = file.getCanonicalPath().startsWith(TermuxConstants.TERMUX_FILES_DIR_PATH);
} catch (IOException e) {
isInsideFiles = true;
isInsideHome = true;
}
if (isInsideFiles) {
if (isInsideHome) {
if (file.isDirectory()) {
Collections.addAll(pending, file.listFiles());
} else {
Expand Down Expand Up @@ -257,7 +257,10 @@ private void includeFile(MatrixCursor result, String docId, File file)

final MatrixCursor.RowBuilder row = result.newRow();
row.add(Document.COLUMN_DOCUMENT_ID, docId);
row.add(Document.COLUMN_DISPLAY_NAME, displayName);
row.add(Document.COLUMN_DISPLAY_NAME,
file.getAbsolutePath().equals(BASE_DIR.getAbsolutePath())
? getContext().getString(R.string.application_name)
: displayName);//修复mt左侧显示根目录名称为files的bug
row.add(Document.COLUMN_SIZE, file.length());
row.add(Document.COLUMN_MIME_TYPE, mimeType);
row.add(Document.COLUMN_LAST_MODIFIED, file.lastModified());
Expand Down

0 comments on commit 9ab86ab

Please sign in to comment.