Skip to content

Commit

Permalink
Fix unable to read namespace from gradle file when = not present.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsnappy1 committed Nov 24, 2024
1 parent f6f30f4 commit efe84be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ internal class ModuleManager(private val moduleFile: File) {

// Define regex pattern for the style of namespace
val namespacePattern =
Regex("\\s*namespace\\s*=\\s*[\"'](.+)[\"']") // Matches: namespace = "com.example.app"
Regex("\\s*namespace\\s*=?\\s*[\"'](.+)[\"']") // Matches: namespace = "com.example.app"

var isBlockComment = false
val lines = gradleFile.readLines().filter { it.isNotBlank() }
Expand Down

0 comments on commit efe84be

Please sign in to comment.