refactor: replace hardcoded package names in build scripts with BuildConfig property

This commit is contained in:
Akash Yadav
2023-04-13 22:56:17 +05:30
parent f1f2d83ece
commit fa8680e873
28 changed files with 34 additions and 34 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ plugins{
}
android {
namespace = "com.itsaky.androidide.actions"
namespace = "${BuildConfig.packageName}.actions"
}
dependencies {
+1 -1
View File
@@ -21,7 +21,7 @@ plugins {
kotlin("jvm")
}
group = "com.itsaky.androidide.annotations"
group = "${BuildConfig.packageName}.annotations"
dependencies {
implementation(kotlin("stdlib"))
+1 -1
View File
@@ -21,7 +21,7 @@ plugins {
kotlin("jvm")
}
group = "com.itsaky.androidide.annotations"
group = "${BuildConfig.packageName}.annotations"
dependencies {
implementation(kotlin("stdlib"))
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -4,7 +4,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.common"
namespace = "${BuildConfig.packageName}.common"
}
dependencies {
+1 -1
View File
@@ -21,7 +21,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.editor.api"
namespace = "${BuildConfig.packageName}.editor.api"
}
dependencies {
+2 -2
View File
@@ -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")
}
}
+1 -1
View File
@@ -20,7 +20,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.eventbus.android"
namespace = "${BuildConfig.packageName}.eventbus.android"
}
dependencies {
+1 -1
View File
@@ -21,7 +21,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.eventbus.events"
namespace = "${BuildConfig.packageName}.eventbus.events"
}
dependencies {
+2 -2
View File
@@ -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"))
+1 -1
View File
@@ -20,7 +20,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.logsender.sample"
namespace = "${BuildConfig.packageName}.logsender.sample"
defaultConfig {
vectorDrawables {
+1 -1
View File
@@ -21,7 +21,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.logsender"
namespace = "${BuildConfig.packageName}.logsender"
buildFeatures.aidl = true
defaultConfig {
+2 -2
View File
@@ -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")
}
}
+2 -2
View File
@@ -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")
}
}
+1 -1
View File
@@ -4,7 +4,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.lsp.models"
namespace = "${BuildConfig.packageName}.lsp.models"
}
dependencies {
+1 -1
View File
@@ -21,7 +21,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.lsp.testing"
namespace = "${BuildConfig.packageName}.lsp.testing"
}
dependencies {
+2 -2
View File
@@ -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")
}
}
+1 -1
View File
@@ -22,7 +22,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.preferences"
namespace = "${BuildConfig.packageName}.preferences"
}
dependencies {
+1 -1
View File
@@ -20,7 +20,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.resources"
namespace = "${BuildConfig.packageName}.resources"
}
dependencies {
+1 -1
View File
@@ -21,7 +21,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.aaptcompiler"
namespace = "${BuildConfig.packageName}.aaptcompiler"
buildTypes {
release {
+1 -1
View File
@@ -21,7 +21,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.flashbar"
namespace = "${BuildConfig.packageName}.flashbar"
}
dependencies {
+1 -1
View File
@@ -4,7 +4,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.javac.services"
namespace = "${BuildConfig.packageName}.javac.services"
buildTypes {
release {
+1 -1
View File
@@ -20,7 +20,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.layoutlib"
namespace = "${BuildConfig.packageName}.layoutlib"
buildTypes {
release {
+2 -2
View File
@@ -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") {
+1 -1
View File
@@ -21,7 +21,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.xml"
namespace = "${BuildConfig.packageName}.xml"
}
dependencies {
+1 -1
View File
@@ -5,7 +5,7 @@ plugins {
}
android {
namespace = "com.itsaky.androidide.uidesigner"
namespace = "${BuildConfig.packageName}.uidesigner"
}
dependencies {
+1 -1
View File
@@ -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)