Conversation
…ctivity ensures Compose projects are generated with Kotlin Script only
Contributor
Greptile Summary
Important Files Changed
Confidence score: 4/5
Sequence DiagramsequenceDiagram
participant User
participant ProjectTemplate
participant ProjectTemplateBuilder
participant AndroidModuleTemplateBuilder
participant RecipeExecutor
User->>ProjectTemplate: "Create Compose Activity Project"
ProjectTemplate->>ProjectTemplateBuilder: "baseProjectImpl(showUseKts=false, isToml=true)"
ProjectTemplateBuilder->>ProjectTemplateBuilder: "Configure parameters (language=Kotlin only)"
ProjectTemplateBuilder->>ProjectTemplateBuilder: "Setup preRecipe with ProjectTemplateData"
ProjectTemplateBuilder->>AndroidModuleTemplateBuilder: "defaultAppModule(isComposeModule=true)"
AndroidModuleTemplateBuilder->>RecipeExecutor: "createRecipe"
RecipeExecutor->>RecipeExecutor: "composeDependencies()"
RecipeExecutor->>RecipeExecutor: "writeXmlResource(themes)"
RecipeExecutor->>RecipeExecutor: "writeMainActivity(composeActivitySrc)"
RecipeExecutor->>RecipeExecutor: "writeKtSrc(Color, Theme, Type)"
RecipeExecutor->>ProjectTemplateBuilder: "Recipe complete"
ProjectTemplateBuilder->>ProjectTemplateBuilder: "postRecipe: buildGradle(), settingsGradle(), gradleProps()"
ProjectTemplateBuilder->>User: "Compose project created"
|
Contributor
There was a problem hiding this comment.
3 files reviewed, no comments
Edit Code Review Agent Settings | Greptile
React with 👍 or 👎 to share your feedback on this new summary format
dara-abijo-adfa
approved these changes
Nov 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR hides the "Use Kotlin Script (.kts)" checkbox exclusively for the Compose Activity template and forces
useKts=trueinternally. The checkbox remains visible for all other templates. This ensures Compose projects always generate using Kotlin Script, preventing Groovy builds that would otherwise fail with the outdated offline Compose artifacts.Details
The base template now supports a flag to control whether the checkbox is displayed. The Compose Activity template sets this flag to
falseand programmatically enables Kotlin Script, guaranteeing consistent project generation and avoiding user-triggered build errors.Screen.Recording.2025-11-18.at.3.23.50.PM.mov
Ticket
ADFA-2117
Relates to: ADFA-1887
Observation
This is a targeted safeguard until the offline localMavenRepository is updated to compatible artifact versions.