Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 89df8f2

Browse files
Rafael2616itsaky
authored andcommitted
fix(templates): remove viewBinding build feature from compose template due not necessary
I'm trying to learn a little how the project is structured, so starting with a few things This build feature is not used when building apps with jetpack compose, so I'm removing it from the build files
1 parent 3abc07c commit 89df8f2

File tree

1 file changed

+2
-2
lines changed
  • templates-api/src/main/java/com/itsaky/androidide/templates/base/modules/android

1 file changed

+2
-2
lines changed

templates-api/src/main/java/com/itsaky/androidide/templates/base/modules/android/buildGradle.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ android {
7676
}
7777
7878
buildFeatures {
79-
viewBinding = true
79+
${if (!isComposeModule) "viewBinding = true" else ""}
8080
${if (isComposeModule) "compose = true" else ""}
8181
}
8282
${if(isComposeModule) composeConfigKts() else ""}
@@ -125,7 +125,7 @@ android {
125125
}
126126
127127
buildFeatures {
128-
viewBinding true
128+
${if (!isComposeModule) "viewBinding true" else ""}
129129
${if (isComposeModule) "compose true" else ""}
130130
}
131131
${if(isComposeModule) composeConfigGroovy() else ""}

0 commit comments

Comments
 (0)