|
@@ -127,14 +127,17 @@ fun Path.copy(target: Path) {
|
|
|
var updatedContent = """plugins\s*\{[^}]*}""".toRegex()
|
|
|
.replace(
|
|
|
Files.readString(file).trimIndent(),
|
|
|
- "plugins {\n id 'com.android.dynamic-feature'\n}\n"
|
|
|
+ "plugins {\n" +
|
|
|
+ " id 'com.android.dynamic-feature'\n" +
|
|
|
+ " id 'org.jetbrains.kotlin.android' version '1.9.24'" +
|
|
|
+ "\n}\n"
|
|
|
)
|
|
|
// updatedContent = """namespace\s+(['"])[^'"]+"\s*""".toRegex()
|
|
|
// .replace(updatedContent, "'$libNameSpace'")
|
|
|
// updatedContent = """applicationId\s+(['"])[^'"]+"\s*""".toRegex()
|
|
|
// .replace(updatedContent, "")
|
|
|
- updatedContent = """kotlinOptions\s*\{\s*jvmTarget\s*=\s*"11"\s*\}""".toRegex()
|
|
|
- .replace(updatedContent, "")
|
|
|
+// updatedContent = """kotlinOptions\s*\{\s*jvmTarget\s*=\s*"11"\s*\}""".toRegex()
|
|
|
+// .replace(updatedContent, "")
|
|
|
Files.writeString(targetPath, updatedContent)
|
|
|
}
|
|
|
if (file.fileName.name == "AndroidManifest.xml") {
|