mirror of
https://github.com/appwrite/sdk-for-kotlin.git
synced 2026-04-07 19:17:44 +00:00
14 lines
461 B
Groovy
14 lines
461 B
Groovy
task createBuildConfig() {
|
|
doLast {
|
|
def file = new File("${buildDir.path}/generated/BuildConfig.java")
|
|
file.getParentFile().mkdirs()
|
|
file.createNewFile()
|
|
file.text = """
|
|
public class BuildConfig {
|
|
public static String SDK_VERSION = "${System.getenv("SDK_VERSION") ?: "0.0.0"}";
|
|
}
|
|
""".stripIndent().trim()
|
|
}
|
|
}
|
|
|
|
sourceSets.main.java.srcDirs += ["${buildDir.path}/generated"] |