Skip to content

Commit 53de790

Browse files
authored
Merge pull request #61 from n00b69/victorai
Victorai - lord have mercy if this shows all commits
2 parents 48a766f + 157e439 commit 53de790

File tree

132 files changed

+7559
-7387
lines changed

Some content is hidden

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

132 files changed

+7559
-7387
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: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
plugins {
22
alias(libs.plugins.agp.app)
3+
alias(libs.plugins.kotlin.android)
34
}
45

56
android {
6-
namespace = "id.kuato.woahelper"
7-
compileSdk = 34
7+
namespace = "com.woa.helper"
8+
compileSdk = 36
89

910
defaultConfig {
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"
11+
applicationId = "com.woa.helper"
12+
minSdk = 25
13+
targetSdk = 36
14+
versionCode = 5
15+
versionName = "1.8.4_BETA44"
16+
17+
val locales = listOf(
18+
"ar", "az", "be", "cs", "de", "en", "es", "fa", "fr", "ind", "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"
1819
)
19-
buildConfigField("String[]","LOCALES","{\"${locales.toString().trim('[').trim(']').replace(", ","\",\"").replace("zh-","zh-Hans-").replace("-r","-")}\"}");
20-
resourceConfigurations +=locales;
20+
buildConfigField("String[]", "LOCALES", "{\"${locales.toString().trim('[').trim(']').replace(", ", "\",\"").replace("zh-", "zh-Hans-").replace("-r", "-")}\"}")
21+
androidResources.localeFilters += locales
2122
}
2223

2324
buildTypes {
24-
getByName("release") {
25+
release {
2526
isShrinkResources = true
2627
isMinifyEnabled = true
27-
proguardFiles(
28-
getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
29-
)
28+
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"))
3029
isDebuggable = false
3130
isJniDebuggable = false
3231
}
33-
getByName("debug") {
32+
debug {
3433
isDebuggable = true
3534
}
3635
}
@@ -44,9 +43,13 @@ android {
4443
sourceCompatibility = JavaVersion.VERSION_21
4544
targetCompatibility = JavaVersion.VERSION_21
4645
}
46+
kotlin {
47+
jvmToolchain(21)
48+
}
4749

4850
buildFeatures {
4951
viewBinding = true
52+
buildConfig = true
5053
}
5154
}
5255

@@ -55,9 +58,9 @@ dependencies {
5558
implementation(libs.material)
5659
implementation(libs.androidx.preference.preference)
5760
implementation(libs.com.intuit.sdp.sdp.android)
61+
implementation(libs.com.intuit.ssp.ssp.android)
5862
implementation(libs.com.github.topjohnwu.libsu.core)
5963
implementation(libs.com.github.topjohnwu.libsu.service)
6064
implementation(libs.com.github.topjohnwu.libsu.nio)
6165
implementation(libs.realtimeblurview)
62-
//implementation(libs.blurry)
6366
}

app/proguard-rules.pro

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

app/src/main/AndroidManifest.xml

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,48 @@
77
<uses-permission android:name="android.permission.INTERNET" />
88
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
99

10+
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
11+
android:minSdkVersion="22"/>
12+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
13+
android:maxSdkVersion="21"/>
14+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
15+
android:maxSdkVersion="21"/>
1016
<application
1117
android:allowBackup="true"
18+
android:enableOnBackInvokedCallback="true"
19+
android:hardwareAccelerated="true"
1220
android:icon="@mipmap/ic_launcher"
1321
android:label="@string/app_name"
14-
android:localeConfig="@xml/languages"
1522
android:roundIcon="@mipmap/ic_launcher_round"
1623
android:supportsRtl="false"
1724
android:theme="@style/Theme.MyApplication"
1825
tools:targetApi="tiramisu">
19-
<receiver android:name=".widgets.WidgetProvider" android:exported="true">
26+
<receiver
27+
android:name=".widgets.MountWidget"
28+
android:exported="true">
29+
<intent-filter>
30+
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
31+
<action android:name="android.appwidget.action.ACTION_CLICK" />
32+
<action android:name="android.appwidget.action.UPDATE" />
33+
</intent-filter>
34+
<meta-data
35+
android:name="android.appwidget.provider"
36+
android:resource="@xml/mount_widget_info" />
37+
</receiver>
38+
<receiver
39+
android:name=".widgets.QuickBootWidget"
40+
android:exported="true">
2041
<intent-filter>
2142
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
22-
<action android:name="id.kuato.woahelper.ACTION_SET"/>
23-
<action android:name="id.kuato.woahelper.ACTION_CLICK"/>
43+
<action android:name="android.appwidget.action.ACTION_CLICK" />
44+
<action android:name="android.appwidget.action.UPDATE" />
2445
</intent-filter>
2546
<meta-data
2647
android:name="android.appwidget.provider"
27-
android:resource="@xml/widget_info" />
48+
android:resource="@xml/quickboot_widget_info" />
2849
</receiver>
2950
<receiver
30-
android:name=".main.automount"
51+
android:name=".main.AutoMount"
3152
android:enabled="true"
3253
android:exported="true">
3354
<intent-filter>
@@ -36,19 +57,19 @@
3657
<category android:name="android.intent.category.DEFAULT" />
3758
</intent-filter>
3859
</receiver>
39-
60+
4061
<service
41-
android:name=".main.quickboot_tile"
62+
android:name=".main.QuickBootTile"
4263
android:exported="true"
4364
android:icon="@drawable/qs_tile"
44-
android:label="Quickboot"
65+
android:label="QuickBoot"
4566
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
4667
<intent-filter>
4768
<action android:name="android.service.quicksettings.action.QS_TILE" />
4869
</intent-filter>
4970
</service>
5071
<service
51-
android:name=".main.mount_tile"
72+
android:name=".main.MountTile"
5273
android:exported="true"
5374
android:icon="@drawable/mnt2"
5475
android:label="Mount win"
@@ -65,18 +86,15 @@
6586
android:name="autoStoreLocales"
6687
android:value="true" />
6788
</service>
89+
6890
<activity
6991
android:name=".widgets.WidgetActivity"
70-
android:theme="@style/Theme.AppCompat.Dialog.Alert"
71-
android:exported="true"
72-
android:taskAffinity=""
7392
android:excludeFromRecents="true"
93+
android:exported="true"
94+
android:launchMode="singleInstance"
7495
android:noHistory="true"
75-
android:launchMode="singleInstance" />
76-
<activity
77-
android:name=".main.WidgetConfigActivity"
78-
android:exported="true">
79-
</activity>
96+
android:taskAffinity=""
97+
android:theme="@style/TransparentTheme" />
8098
<activity
8199
android:name=".main.MainActivity"
82100
android:configChanges="orientation|screenSize"
-107 KB
Binary file not shown.
129 KB
Binary file not shown.
261 KB
Binary file not shown.
-108 KB
Binary file not shown.

0 commit comments

Comments
 (0)