println("Setting ${packageName} as android namespace in build.gradle from the AndroidManifest.xml")
android.namespace=packageName
}
defjavaVersion=JavaVersion.VERSION_17
println("Changes will be applied for the following packages:")
android{
defandroidApiVersion=34
// compileSdkVersion androidApiVersion
compileSdkandroidApiVersion
defaultConfig{
targetSdkVersionandroidApiVersion
}
compileOptions{
sourceCompatibilityjavaVersion
targetCompatibilityjavaVersion
}
tasks.withType(KotlinCompile).configureEach{
buildscript{
ext.kotlin_version=kotlin_version
}
kotlinOptions{
jvmTarget=javaVersion.toString()
}
}
Stringmessage="For package ${android.namespace} by update compileSdkVersion, targetSdkVersion \n to $androidApiVersion and java version to ${javaVersion.toString()}"