LeOS-Ice-browser/gradle/mozconfig.gradle

16 lines
640 B
Groovy
Raw Permalink Normal View History

2024-08-26 10:00:43 +02:00
import groovy.json.JsonSlurper
def slurper = new JsonSlurper()
def projectRootDir = System.getProperty("user.dir")
def json = slurper.parse(new File("${projectRootDir}/mozconfig.json"))
gradle.ext.mozconfig = json
gradle.ext.mozconfig.substs.MOZ_APP_VERSION = file("${projectRootDir}/version.txt").getText('utf-8').replaceAll("\n", "")
gradle.ext.mozconfig.substs.MOZ_ANDROID_FAT_AAR_ARCHITECTURES = true
gradle.ext.mozconfig.substs.MOZ_UPDATE_CHANNEL = 'release'
gradle.ext.mozconfig.substs.ALLOW_INSECURE_GRADLE_REPOSITORIES = true
gradle.ext.mozconfig.topobjdir = System.getProperty("user.dir")
2024-10-12 11:57:06 +02:00
gradle.ext.vcsHashFileContent = false