mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
refactor: replace hardcoded package names in build scripts with BuildConfig property
This commit is contained in:
@@ -4,7 +4,7 @@ plugins{
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.actions"
|
||||
namespace = "${BuildConfig.packageName}.actions"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -21,7 +21,7 @@ plugins {
|
||||
kotlin("jvm")
|
||||
}
|
||||
|
||||
group = "com.itsaky.androidide.annotations"
|
||||
group = "${BuildConfig.packageName}.annotations"
|
||||
|
||||
dependencies {
|
||||
implementation(kotlin("stdlib"))
|
||||
|
||||
@@ -21,7 +21,7 @@ plugins {
|
||||
kotlin("jvm")
|
||||
}
|
||||
|
||||
group = "com.itsaky.androidide.annotations"
|
||||
group = "${BuildConfig.packageName}.annotations"
|
||||
|
||||
dependencies {
|
||||
implementation(kotlin("stdlib"))
|
||||
|
||||
@@ -70,7 +70,7 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
kapt { arguments { arg("eventBusIndex", "com.itsaky.androidide.events.AppEventsIndex") } }
|
||||
kapt { arguments { arg("eventBusIndex", "${BuildConfig.packageName}.events.AppEventsIndex") } }
|
||||
|
||||
dependencies {
|
||||
debugImplementation(libs.common.leakcanary)
|
||||
|
||||
@@ -4,7 +4,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.common"
|
||||
namespace = "${BuildConfig.packageName}.common"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -21,7 +21,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.editor.api"
|
||||
namespace = "${BuildConfig.packageName}.editor.api"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -6,12 +6,12 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.editor"
|
||||
namespace = "${BuildConfig.packageName}.editor"
|
||||
}
|
||||
|
||||
kapt {
|
||||
arguments {
|
||||
arg ("eventBusIndex", "com.itsaky.androidide.events.EditorEventsIndex")
|
||||
arg ("eventBusIndex", "${BuildConfig.packageName}.events.EditorEventsIndex")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.eventbus.android"
|
||||
namespace = "${BuildConfig.packageName}.eventbus.android"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -21,7 +21,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.eventbus.events"
|
||||
namespace = "${BuildConfig.packageName}.eventbus.events"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -31,8 +31,8 @@ gradlePlugin {
|
||||
|
||||
plugins {
|
||||
create("gradlePlugin") {
|
||||
id = "com.itsaky.androidide.gradle"
|
||||
implementationClass = "com.itsaky.androidide.gradle.AndroidIDEGradlePlugin"
|
||||
id = "${BuildConfig.packageName}.gradle"
|
||||
implementationClass = "${BuildConfig.packageName}.gradle.AndroidIDEGradlePlugin"
|
||||
displayName = "AndroidIDE Gradle Plugin"
|
||||
description = "Gradle plugin for projects that are built with AndroidIDE"
|
||||
tags.set(setOf("androidide"))
|
||||
|
||||
@@ -20,7 +20,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.logsender.sample"
|
||||
namespace = "${BuildConfig.packageName}.logsender.sample"
|
||||
|
||||
defaultConfig {
|
||||
vectorDrawables {
|
||||
|
||||
@@ -21,7 +21,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.logsender"
|
||||
namespace = "${BuildConfig.packageName}.logsender"
|
||||
buildFeatures.aidl = true
|
||||
|
||||
defaultConfig {
|
||||
|
||||
@@ -22,12 +22,12 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.lsp.api"
|
||||
namespace = "${BuildConfig.packageName}.lsp.api"
|
||||
}
|
||||
|
||||
kapt {
|
||||
arguments {
|
||||
arg ("eventBusIndex", "com.itsaky.androidide.events.LspApiEventsIndex")
|
||||
arg ("eventBusIndex", "${BuildConfig.packageName}.events.LspApiEventsIndex")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,12 +21,12 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.lsp.java"
|
||||
namespace = "${BuildConfig.packageName}.lsp.java"
|
||||
}
|
||||
|
||||
kapt {
|
||||
arguments {
|
||||
arg ("eventBusIndex", "com.itsaky.androidide.events.LspJavaEventsIndex")
|
||||
arg ("eventBusIndex", "${BuildConfig.packageName}.events.LspJavaEventsIndex")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.lsp.models"
|
||||
namespace = "${BuildConfig.packageName}.lsp.models"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -21,7 +21,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.lsp.testing"
|
||||
namespace = "${BuildConfig.packageName}.lsp.testing"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -22,12 +22,12 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.lsp.xml"
|
||||
namespace = "${BuildConfig.packageName}.lsp.xml"
|
||||
}
|
||||
|
||||
kapt {
|
||||
arguments {
|
||||
arg ("eventBusIndex", "com.itsaky.androidide.events.LspXmlEventsIndex")
|
||||
arg ("eventBusIndex", "${BuildConfig.packageName}.events.LspXmlEventsIndex")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.preferences"
|
||||
namespace = "${BuildConfig.packageName}.preferences"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -20,7 +20,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.resources"
|
||||
namespace = "${BuildConfig.packageName}.resources"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -21,7 +21,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.aaptcompiler"
|
||||
namespace = "${BuildConfig.packageName}.aaptcompiler"
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
|
||||
@@ -21,7 +21,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.flashbar"
|
||||
namespace = "${BuildConfig.packageName}.flashbar"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -4,7 +4,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.javac.services"
|
||||
namespace = "${BuildConfig.packageName}.javac.services"
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
|
||||
@@ -20,7 +20,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.layoutlib"
|
||||
namespace = "${BuildConfig.packageName}.layoutlib"
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
|
||||
@@ -6,12 +6,12 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.projects"
|
||||
namespace = "${BuildConfig.packageName}.projects"
|
||||
}
|
||||
|
||||
kapt {
|
||||
arguments {
|
||||
arg ("eventBusIndex", "com.itsaky.androidide.events.ProjectsApiEventsIndex")
|
||||
arg ("eventBusIndex", "${BuildConfig.packageName}.events.ProjectsApiEventsIndex")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ plugins {
|
||||
}
|
||||
|
||||
tasks.withType<Jar> {
|
||||
manifest { attributes("Main-Class" to "com.itsaky.androidide.tooling.impl.Main") }
|
||||
manifest { attributes("Main-Class" to "${BuildConfig.packageName}.tooling.impl.Main") }
|
||||
}
|
||||
|
||||
tasks.register<Copy>("copyJarToAssets") {
|
||||
|
||||
@@ -21,7 +21,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.xml"
|
||||
namespace = "${BuildConfig.packageName}.xml"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -5,7 +5,7 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.itsaky.androidide.uidesigner"
|
||||
namespace = "${BuildConfig.packageName}.uidesigner"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -24,7 +24,7 @@ plugins {
|
||||
id("com.google.devtools.ksp") version libs.versions.ksp
|
||||
}
|
||||
|
||||
android { namespace = "com.itsaky.androidide.inflater" }
|
||||
android { namespace = "${BuildConfig.packageName}.inflater" }
|
||||
|
||||
dependencies {
|
||||
ksp(projects.annotationProcessorsKsp)
|
||||
|
||||
Reference in New Issue
Block a user