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
@@ -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 {