2025-05-29 03:12:05 +10:00
|
|
|
import com.aliucord.gradle.AliucordExtension
|
|
|
|
|
import com.android.build.gradle.BaseExtension
|
|
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
|
repositories {
|
|
|
|
|
google()
|
|
|
|
|
mavenCentral()
|
|
|
|
|
maven("https://maven.aliucord.com/snapshots")
|
2025-07-15 17:53:33 +10:00
|
|
|
gradlePluginPortal() // remove when gradle 8
|
2025-05-29 03:12:05 +10:00
|
|
|
maven("https://jitpack.io")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2025-05-29 03:30:55 +10:00
|
|
|
classpath("com.android.tools.build:gradle:7.1.3")
|
2025-05-29 03:12:05 +10:00
|
|
|
classpath("com.aliucord:gradle:main-SNAPSHOT")
|
|
|
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21")
|
2025-07-15 17:53:33 +10:00
|
|
|
// classpath("com.gradleup.shadow:shadow-gradle-plugin:8.3.8")
|
|
|
|
|
classpath("com.github.johnrengelman.shadow:com.github.johnrengelman.shadow.gradle.plugin:7.1.2") // For Gradle 7 compat
|
2025-05-29 03:12:05 +10:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
|
repositories {
|
|
|
|
|
google()
|
|
|
|
|
mavenCentral()
|
|
|
|
|
maven("https://maven.aliucord.com/snapshots")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fun Project.aliucord(configuration: AliucordExtension.() -> Unit) = extensions.getByName<AliucordExtension>("aliucord").configuration()
|
|
|
|
|
|
|
|
|
|
fun Project.android(configuration: BaseExtension.() -> Unit) = extensions.getByName<BaseExtension>("android").configuration()
|
|
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
|
apply(plugin = "com.android.library")
|
|
|
|
|
apply(plugin = "com.aliucord.gradle")
|
|
|
|
|
apply(plugin = "kotlin-android")
|
|
|
|
|
|
|
|
|
|
aliucord {
|
2025-07-15 14:50:46 +10:00
|
|
|
author("Lava", 368398754077868032L)
|
2025-05-29 03:12:05 +10:00
|
|
|
updateUrl.set("https://raw.githubusercontent.com/LavaDesu/Awoocord/builds/updater.json")
|
|
|
|
|
buildUrl.set("https://raw.githubusercontent.com/LavaDesu/Awoocord/builds/%s.zip")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
compileSdkVersion(31)
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
minSdk = 24
|
|
|
|
|
targetSdk = 31
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
|
kotlinOptions {
|
|
|
|
|
jvmTarget = "11"
|
|
|
|
|
// Disables some unnecessary features
|
|
|
|
|
freeCompilerArgs = freeCompilerArgs +
|
|
|
|
|
"-Xno-call-assertions" +
|
|
|
|
|
"-Xno-param-assertions" +
|
|
|
|
|
"-Xno-receiver-assertions"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
val discord by configurations
|
|
|
|
|
val implementation by configurations
|
|
|
|
|
|
|
|
|
|
// Stubs for all Discord classes
|
|
|
|
|
discord("com.discord:discord:aliucord-SNAPSHOT")
|
2025-10-08 01:11:23 +11:00
|
|
|
implementation("com.aliucord:Aliucord:2.5.0")
|
2025-05-29 03:12:05 +10:00
|
|
|
|
|
|
|
|
implementation("androidx.appcompat:appcompat:1.4.0")
|
|
|
|
|
implementation("com.google.android.material:material:1.4.0")
|
|
|
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.2")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
task<Delete>("clean") {
|
|
|
|
|
delete(rootProject.buildDir)
|
|
|
|
|
}
|