-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
103 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
app/src/main/java/com/qhy040404/fxxkmiuiad/FxxkMIUIAdApp.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.qhy040404.fxxkmiuiad | ||
|
||
import android.app.Application | ||
|
||
class FxxkMIUIAdApp : Application() { | ||
override fun onCreate() { | ||
super.onCreate() | ||
app = this | ||
} | ||
|
||
companion object { | ||
lateinit var app: FxxkMIUIAdApp | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
app/src/main/java/com/qhy040404/fxxkmiuiad/utils/ResourceUtils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.qhy040404.fxxkmiuiad.utils | ||
|
||
import androidx.annotation.StringRes | ||
import com.qhy040404.fxxkmiuiad.FxxkMIUIAdApp | ||
|
||
object ResourceUtils { | ||
fun getString(@StringRes resId: Int): String { | ||
return FxxkMIUIAdApp.app.getString(resId) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<resources> | ||
<string name="shizuku_not_found">Shizuku is not installed</string> | ||
<string name="enable">Enable</string> | ||
<string name="enabled">Enabled</string> | ||
<string name="disable">Disable</string> | ||
<string name="disabled">Disabled</string> | ||
<string name="install_shizuku">Install Shizuku</string> | ||
<string name="request_shizuku_auth">Request Shizuku authorization</string> | ||
<string name="package_disabled_by_suspend">Disabled (suspend)</string> | ||
<string name="package_enabled">Enabled</string> | ||
<string name="package_not_found">Not Installed</string> | ||
<string name="package_disabled">Disabled</string> | ||
<string name="permission_result_failed">Authorization failed. Jump to Shizuku for manual authorization</string> | ||
<string name="permission_manual_sui">Shizuku not detected, please go to Sui for authorization manually</string> | ||
<string name="invalid_system">Not MIUI or HyperOS</string> | ||
<string name="shizuku_running">Shizuku is running</string> | ||
<string name="shizuku_not_running">Shizuku is not running</string> | ||
<string name="shizuku_authed">Shizuku authorized</string> | ||
<string name="shizuku_not_authed">Shizuku not authorized</string> | ||
<string name="shizuku_low_version">Shizuku is outdated, please update</string> | ||
<string name="jump_to_shizuku">Jump to Shizuku</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
<resources> | ||
<string name="app_name" translatable="false">FxxkMIUIAd</string> | ||
<string name="permission_result_failed">授权失败,跳转到 Shizuku 手动授权</string> | ||
<string name="permission_manual_sui">未检测到 Shizuku, 请手动前往 Sui 授权</string> | ||
<string name="invalid_system">非 MIUI 或 澎湃 OS</string> | ||
<string name="shizuku_running">Shizuku 已运行</string> | ||
<string name="shizuku_not_running">Shizuku 未运行</string> | ||
<string name="shizuku_authed">Shizuku 已授权</string> | ||
<string name="shizuku_not_authed">Shizuku 未授权</string> | ||
<string name="shizuku_low_version">Shizuku 版本过低,请更新</string> | ||
<string name="shizuku_not_found">Shizuku 未安装</string> | ||
<string name="enable">启用</string> | ||
<string name="enabled">已启用</string> | ||
<string name="disable">禁用</string> | ||
<string name="disabled">已禁用</string> | ||
<string name="install_shizuku">安装 Shizuku</string> | ||
<string name="jump_to_shizuku">跳转到 Shizuku</string> | ||
<string name="request_shizuku_auth">申请 Shizuku 授权</string> | ||
<string name="package_disabled_by_suspend">禁用 (suspend)</string> | ||
<string name="package_enabled">启用</string> | ||
<string name="package_not_found">未安装</string> | ||
<string name="package_disabled">禁用</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
plugins { | ||
id("com.android.application") version "8.7.2" apply false | ||
id("com.android.library") version "8.7.2" apply false | ||
id("org.jetbrains.kotlin.android") version "2.0.21" apply false | ||
id("org.jetbrains.kotlin.plugin.compose") version "2.0.21" apply false | ||
id("com.android.application") version "8.7.3" apply false | ||
id("com.android.library") version "8.7.3" apply false | ||
id("org.jetbrains.kotlin.android") version "2.1.0" apply false | ||
id("org.jetbrains.kotlin.plugin.compose") version "2.1.0" apply false | ||
id("com.qhy04.gradle.android.res_opt") version "1.0.3" apply false | ||
} |