Skip to content

Commit 557b79d

Browse files
committed
Upgrade Gradle and dependencies
- Bumps Gradle wrapper from 8.10.2 to 8.13. - Updates the Android Gradle Plugin (AGP) from 8.8.2 to 8.13.0. - Updates compileSdk from 35 to 36. - Refactors `afterEvaluate` block in `app/build.gradle.kts` to inject `ExecOperations`.
1 parent 0dffd3a commit 557b79d

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

app/build.gradle.kts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ val gitHash: String = getGitHashCommit().uppercase(Locale.getDefault())
2222

2323
android {
2424
namespace = "com.wmods.wppenhacer"
25-
compileSdk = 35
25+
compileSdk = 36
2626
ndkVersion = "27.0.11902837 rc2"
2727

2828
flavorDimensions += "version"
@@ -168,12 +168,18 @@ configurations.all {
168168
exclude("org.jetbrains.kotlin", "kotlin-stdlib-jdk8")
169169
}
170170

171+
interface InjectedExecOps {
172+
@get:Inject val execOps: ExecOperations
173+
}
174+
175+
171176
afterEvaluate {
172177
listOf("installWhatsappDebug", "installBusinessDebug").forEach { taskName ->
173178
tasks.findByName(taskName)?.doLast {
174179
runCatching {
180+
val injected = project.objects.newInstance<InjectedExecOps>()
175181
runBlocking {
176-
exec {
182+
injected.execOps.exec {
177183
commandLine(
178184
"adb",
179185
"shell",
@@ -183,7 +189,7 @@ afterEvaluate {
183189
)
184190
}
185191
delay(500)
186-
exec {
192+
injected.execOps.exec {
187193
commandLine(
188194
"adb",
189195
"shell",

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jstyleparser = "4.0.1"
77
lombok = "1.18.42"
88
okhttp = "5.1.0"
99
xposed-legacy = "82"
10-
agp = "8.8.2"
10+
agp = "8.13.0"
1111
colorpicker = "1.1.0"
1212
dexkit = "2.0.7"
1313
nav = "2.9.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Sun Apr 28 09:52:50 BRT 2024
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)