Skip to content

Commit 48a766f

Browse files
authored
Revert "Victorai (#56)" (#57)
This reverts commit 20fc24a.
1 parent 20fc24a commit 48a766f

File tree

123 files changed

+7318
-7451
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+7318
-7451
lines changed

.github/workflows/android.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,30 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v4
17-
- name: set up JDK 21
18-
uses: actions/setup-java@v4
19-
with:
20-
java-version: '21'
21-
distribution: 'temurin'
22-
cache: gradle
16+
- uses: actions/checkout@v4
17+
- name: set up JDK 21
18+
uses: actions/setup-java@v4
19+
with:
20+
java-version: '21'
21+
distribution: 'temurin'
22+
cache: gradle
2323

24-
- name: Grant execute permission for gradlew
25-
run: chmod +x gradlew
26-
- name: Build with Gradle
27-
run: ./gradlew assembleRelease -x lint
28-
- name: Sign app APK
29-
uses: ilharp/sign-android-release@v1.0.4
30-
with:
31-
releaseDir: app/build/outputs/apk/release
32-
signingKey: ${{ secrets.ANDROID_SIGNING_KEY }}
33-
keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }}
34-
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
35-
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
36-
buildToolsVersion: 34.0.0
37-
- name: move apk
38-
run: mv app/build/outputs/apk/release/app-release-unsigned-signed.apk woahelper.apk
39-
- uses: actions/upload-artifact@v4
40-
with:
41-
name: woahelper
42-
path: woahelper.apk
24+
- name: Grant execute permission for gradlew
25+
run: chmod +x gradlew
26+
- name: Build with Gradle
27+
run: ./gradlew assembleRelease -x lint
28+
- name: Sign app APK
29+
uses: ilharp/sign-android-release@v1.0.4
30+
with:
31+
releaseDir: app/build/outputs/apk/release
32+
signingKey: ${{ secrets.ANDROID_SIGNING_KEY }}
33+
keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }}
34+
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
35+
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
36+
buildToolsVersion: 34.0.0
37+
- name: move apk
38+
run: mv app/build/outputs/apk/release/app-release-unsigned-signed.apk woahelper.apk
39+
- uses: actions/upload-artifact@v4
40+
with:
41+
name: woahelper
42+
path: woahelper.apk

Helper-dark.png

-13.7 KB
Loading

Helper-light.png

-12.9 KB
Loading

app/build.gradle.kts

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
11
plugins {
22
alias(libs.plugins.agp.app)
3-
alias(libs.plugins.kotlin.android)
43
}
54

65
android {
7-
namespace = "com.woa.helper"
8-
compileSdk = 35
6+
namespace = "id.kuato.woahelper"
7+
compileSdk = 34
98

109
defaultConfig {
11-
applicationId = "com.woa.helper"
12-
minSdk = 25
13-
targetSdk = 35
14-
versionCode = 5
15-
versionName = "1.8.4_BETA42"
16-
17-
val locales = listOf(
18-
"ar", "az", "be", "cs", "de", "en", "es", "fa", "fr", "in", "ja", "ka", "ko", "ms", "nl", "pl", "pt", "ru", "ro", "ro-rMD", "th", "tr", "uk", "vi", "zh", "zh-rCN", "zh-rHK", "zh-rMO", "zh-rSG", "zh-rTW"
10+
applicationId = "id.kuato.woahelper"
11+
minSdk = 24
12+
targetSdk = 34
13+
versionCode = 3
14+
versionName = "1.8.4_BETA41"
15+
16+
val locales =listOf(
17+
"ar", "az", "be", "cs", "de", "en", "es", "fa", "fr", "in", "ja", "ka", "ko", "ms", "nl", "pl", "pt", "ru", "ro","ro-rMD", "th", "tr", "uk", "vi", "zh", "zh-rCN", "zh-rHK", "zh-rMO", "zh-rSG", "zh-rTW"
1918
)
20-
buildConfigField("String[]", "LOCALES", "{\"${locales.toString().trim('[').trim(']').replace(", ", "\",\"").replace("zh-", "zh-Hans-").replace("-r", "-")}\"}")
21-
resourceConfigurations += locales
19+
buildConfigField("String[]","LOCALES","{\"${locales.toString().trim('[').trim(']').replace(", ","\",\"").replace("zh-","zh-Hans-").replace("-r","-")}\"}");
20+
resourceConfigurations +=locales;
2221
}
2322

2423
buildTypes {
25-
release {
24+
getByName("release") {
2625
isShrinkResources = true
2726
isMinifyEnabled = true
28-
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"))
27+
proguardFiles(
28+
getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
29+
)
2930
isDebuggable = false
3031
isJniDebuggable = false
3132
}
32-
debug {
33+
getByName("debug") {
3334
isDebuggable = true
3435
}
3536
}
@@ -43,14 +44,9 @@ android {
4344
sourceCompatibility = JavaVersion.VERSION_21
4445
targetCompatibility = JavaVersion.VERSION_21
4546
}
46-
kotlinOptions {
47-
48-
jvmTarget = "21"
49-
}
5047

5148
buildFeatures {
5249
viewBinding = true
53-
buildConfig = true
5450
}
5551
}
5652

@@ -59,9 +55,9 @@ dependencies {
5955
implementation(libs.material)
6056
implementation(libs.androidx.preference.preference)
6157
implementation(libs.com.intuit.sdp.sdp.android)
62-
implementation(libs.com.intuit.ssp.ssp.android)
6358
implementation(libs.com.github.topjohnwu.libsu.core)
6459
implementation(libs.com.github.topjohnwu.libsu.service)
6560
implementation(libs.com.github.topjohnwu.libsu.nio)
6661
implementation(libs.realtimeblurview)
62+
//implementation(libs.blurry)
6763
}

app/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile

app/src/main/AndroidManifest.xml

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,26 @@
88
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
99

1010
<application
11-
android:hardwareAccelerated="true"
1211
android:allowBackup="true"
1312
android:icon="@mipmap/ic_launcher"
1413
android:label="@string/app_name"
14+
android:localeConfig="@xml/languages"
1515
android:roundIcon="@mipmap/ic_launcher_round"
1616
android:supportsRtl="false"
1717
android:theme="@style/Theme.MyApplication"
18-
android:enableOnBackInvokedCallback="true"
1918
tools:targetApi="tiramisu">
20-
<receiver
21-
android:name=".widgets.MountWidget"
22-
android:exported="true">
19+
<receiver android:name=".widgets.WidgetProvider" android:exported="true">
2320
<intent-filter>
2421
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
25-
<action android:name="android.appwidget.action.ACTION_CLICK" />
26-
<action android:name="android.appwidget.action.UPDATE" />
22+
<action android:name="id.kuato.woahelper.ACTION_SET"/>
23+
<action android:name="id.kuato.woahelper.ACTION_CLICK"/>
2724
</intent-filter>
2825
<meta-data
2926
android:name="android.appwidget.provider"
30-
android:resource="@xml/mount_widget_info" />
27+
android:resource="@xml/widget_info" />
3128
</receiver>
3229
<receiver
33-
android:name=".widgets.QuickBootWidget"
34-
android:exported="true">
35-
<intent-filter>
36-
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
37-
<action android:name="android.appwidget.action.ACTION_CLICK" />
38-
<action android:name="android.appwidget.action.UPDATE" />
39-
</intent-filter>
40-
<meta-data
41-
android:name="android.appwidget.provider"
42-
android:resource="@xml/quickboot_widget_info" />
43-
</receiver>
44-
<receiver
45-
android:name=".main.AutoMount"
30+
android:name=".main.automount"
4631
android:enabled="true"
4732
android:exported="true">
4833
<intent-filter>
@@ -51,19 +36,19 @@
5136
<category android:name="android.intent.category.DEFAULT" />
5237
</intent-filter>
5338
</receiver>
54-
39+
5540
<service
56-
android:name=".main.QuickBootTile"
41+
android:name=".main.quickboot_tile"
5742
android:exported="true"
5843
android:icon="@drawable/qs_tile"
59-
android:label="QuickBoot"
44+
android:label="Quickboot"
6045
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
6146
<intent-filter>
6247
<action android:name="android.service.quicksettings.action.QS_TILE" />
6348
</intent-filter>
6449
</service>
6550
<service
66-
android:name=".main.MountTile"
51+
android:name=".main.mount_tile"
6752
android:exported="true"
6853
android:icon="@drawable/mnt2"
6954
android:label="Mount win"
@@ -80,15 +65,18 @@
8065
android:name="autoStoreLocales"
8166
android:value="true" />
8267
</service>
83-
8468
<activity
8569
android:name=".widgets.WidgetActivity"
86-
android:theme="@style/TransparentTheme"
70+
android:theme="@style/Theme.AppCompat.Dialog.Alert"
8771
android:exported="true"
8872
android:taskAffinity=""
8973
android:excludeFromRecents="true"
9074
android:noHistory="true"
9175
android:launchMode="singleInstance" />
76+
<activity
77+
android:name=".main.WidgetConfigActivity"
78+
android:exported="true">
79+
</activity>
9280
<activity
9381
android:name=".main.MainActivity"
9482
android:configChanges="orientation|screenSize"
159 KB
Binary file not shown.

app/src/main/java/com/woa/helper/main/AutoMount.kt

Lines changed: 0 additions & 25 deletions
This file was deleted.

app/src/main/java/com/woa/helper/main/Button.kt

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)