Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Update: AGP 8.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
YuKongA committed Nov 8, 2023
1 parent f076b89 commit 3fe356d
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 56 deletions.
21 changes: 14 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import com.android.build.gradle.internal.api.BaseVariantOutputImpl
import java.io.ByteArrayOutputStream
import java.util.Properties

@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
plugins {
autowire(libs.plugins.com.android.application)
autowire(libs.plugins.org.jetbrains.kotlin.android)
alias(libs.plugins.androidApplication)
alias(libs.plugins.kotlinAndroid)
}

android {
Expand Down Expand Up @@ -67,6 +68,12 @@ android {
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.majorVersion
freeCompilerArgs = listOf(
"-Xno-param-assertions",
"-Xno-call-assertions",
"-Xno-receiver-assertions",
"-language-version=2.0",
)
}
}

Expand Down Expand Up @@ -107,9 +114,9 @@ kotlin {
}

dependencies {
compileOnly(de.robv.android.xposed.api)
implementation(com.github.kyuubiran.ezXHelper)
implementation(org.luckypray.dexkit)
implementation(org.lsposed.hiddenapibypass.hiddenapibypass)
implementation(projects.blockmiui)
compileOnly(libs.xposed.api)
implementation(project(":blockmiui"))
implementation(libs.ezXHelper)
implementation(libs.dexKit)
implementation(libs.hiddenapibypass)
}
11 changes: 5 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
plugins {
autowire(libs.plugins.com.android.application) apply false
autowire(libs.plugins.org.jetbrains.kotlin.android) apply false
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.kotlinAndroid) apply false
}

tasks.register("clean", Delete::class) {
delete(rootProject.layout.buildDirectory)
}
true // Needed to make the Suppress annotation work for the plugins block
17 changes: 17 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[versions]
agp = "8.1.3"
dexKit = "2.0.0-rc7"
ezXHelper = "2.0.8"
xposed-api = "82"
kotlin = "1.9.20"
hiddenapibypass = "4.3"

[libraries]
dexKit = { module = "org.luckypray:dexkit", version.ref = "dexKit" }
ezXHelper = { module = "com.github.kyuubiran:EzXHelper", version.ref = "ezXHelper" }
xposed-api = { module = "de.robv.android.xposed:api", version.ref = "xposed-api" }
hiddenapibypass = { module = "org.lsposed.hiddenapibypass:hiddenapibypass", version.ref = "hiddenapibypass" }

[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
39 changes: 0 additions & 39 deletions gradle/sweet-dependency/sweet-dependency-config.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
13 changes: 9 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
@file:Suppress("UnstableApiUsage")

pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven("https://api.xposed.info/")
}
}

plugins {
id("com.highcapable.sweetdependency") version "1.0.3"
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven("https://api.xposed.info/")
}
}

rootProject.name = ("HyperOS_XXL")
Expand Down

0 comments on commit 3fe356d

Please sign in to comment.