mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
136 lines
4.1 KiB
Kotlin
Executable File
136 lines
4.1 KiB
Kotlin
Executable File
plugins {
|
|
id("com.android.application")
|
|
id("kotlin-android")
|
|
id("kotlin-parcelize")
|
|
id("com.google.android.gms.oss-licenses-plugin")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.itsaky.androidide"
|
|
|
|
defaultConfig {
|
|
applicationId = "com.itsaky.androidide"
|
|
vectorDrawables.useSupportLibrary = true
|
|
}
|
|
|
|
compileOptions { isCoreLibraryDesugaringEnabled = true }
|
|
|
|
signingConfigs.create("common") {
|
|
storeFile = file("dev.keystore")
|
|
keyAlias = "androidide"
|
|
storePassword = "ed68424fb109e5aa8146e4b86caa72e3"
|
|
keyPassword = "ed68424fb109e5aa8146e4b86caa72e3"
|
|
}
|
|
|
|
buildTypes {
|
|
debug { signingConfig = signingConfigs.getByName("common") }
|
|
release {
|
|
isShrinkResources = true
|
|
signingConfig = signingConfigs.getByName("common")
|
|
}
|
|
}
|
|
|
|
packagingOptions {
|
|
resources.excludes.addAll(
|
|
arrayOf(
|
|
"META-INF/eclipse.inf",
|
|
"META-INF/CHANGES",
|
|
"META-INF/README.md",
|
|
"about_files/LICENSE-2.0.txt",
|
|
"META-INF/AL2.0",
|
|
"META-INF/LGPL2.1",
|
|
"plugin.xml",
|
|
"plugin.properties",
|
|
"about.mappings",
|
|
"about.properties",
|
|
"about.ini",
|
|
"modeling32.png"
|
|
)
|
|
)
|
|
}
|
|
|
|
lint {
|
|
abortOnError = false
|
|
disable.addAll(arrayOf("VectorPath", "NestedWeights", "ContentDescription", "SmallSp"))
|
|
}
|
|
}
|
|
|
|
kapt { arguments { arg("eventBusIndex", "com.itsaky.androidide.events.AppEventsIndex") } }
|
|
|
|
dependencies {
|
|
|
|
// Annotation processors
|
|
kapt(libs.common.glide.ap)
|
|
kapt(libs.common.eventbus.ap)
|
|
kapt(libs.google.auto.service)
|
|
|
|
implementation(libs.common.editor)
|
|
implementation(libs.common.utilcode)
|
|
implementation(libs.common.glide)
|
|
implementation(libs.common.jsoup)
|
|
|
|
implementation(libs.google.auto.service.annotations)
|
|
implementation(libs.google.gson)
|
|
implementation(libs.google.guava)
|
|
|
|
// Git
|
|
implementation(libs.git.jgit)
|
|
|
|
// AndroidX
|
|
implementation(libs.androidx.splashscreen)
|
|
implementation(libs.androidx.annotation)
|
|
implementation(libs.androidx.appcompat)
|
|
implementation(libs.androidx.cardview)
|
|
implementation(libs.androidx.constraintlayout)
|
|
implementation(libs.androidx.coordinatorlayout)
|
|
implementation(libs.androidx.drawer)
|
|
implementation(libs.androidx.grid)
|
|
implementation(libs.androidx.preference)
|
|
implementation(libs.androidx.recyclerview)
|
|
implementation(libs.androidx.vectors)
|
|
implementation(libs.androidx.animated.vectors)
|
|
implementation(libs.google.material)
|
|
implementation(libs.google.oss.licenses)
|
|
|
|
// Kotlin
|
|
implementation(libs.androidx.ktx)
|
|
implementation(libs.common.kotlin)
|
|
|
|
// Local projects here
|
|
implementation(projects.actions)
|
|
implementation(projects.common)
|
|
implementation(projects.editor)
|
|
implementation(projects.emulatorview)
|
|
implementation(projects.eventbus)
|
|
implementation(projects.eventbusAndroid)
|
|
implementation(projects.eventbusEvents)
|
|
implementation(projects.subprojects.aaptcompiler)
|
|
implementation(projects.subprojects.javacServices)
|
|
implementation(projects.subprojects.xmlUtils)
|
|
implementation(projects.subprojects.projects)
|
|
implementation(projects.subprojects.toolingApi)
|
|
implementation(projects.lsp.api)
|
|
implementation(projects.lsp.java)
|
|
implementation(projects.lsp.xml)
|
|
implementation(projects.lexers)
|
|
implementation(projects.lookup)
|
|
implementation(projects.preferences)
|
|
implementation(projects.resources)
|
|
implementation(projects.treeview)
|
|
implementation(projects.uidesigner)
|
|
|
|
coreLibraryDesugaring(libs.androidx.lib.desugaring)
|
|
|
|
// This is to build the tooling-api-impl project before the app is built
|
|
// So we always copy the latest JAR file to assets
|
|
compileOnly(projects.subprojects.toolingApiImpl)
|
|
|
|
testImplementation(libs.common.editor)
|
|
testImplementation(libs.tests.junit)
|
|
testImplementation(libs.tests.google.truth)
|
|
testImplementation(libs.tests.robolectric)
|
|
androidTestImplementation(libs.tests.androidx.junit)
|
|
androidTestImplementation(libs.tests.androidx.espresso)
|
|
androidTestImplementation(libs.tests.google.truth)
|
|
}
|