LeOS-Ice-browser/gradle/mozconfig.gradle

15 lines
602 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")