UNPKG

@appshuttle.io/turing

Version:
58 lines (43 loc) 1.47 kB
class BuildGradleTemplates { constructor() { /* BuildGradle STRUCTURE START */ // BuildGradle Structure Defaults this.REPOSITORIES_DEFAULT = ` google() jcenter() ` this.GRADLE_VERSION_DEFAULT = '3.1.1' // BuildGradle Structure Holders this.REPOSITORIES_HOLDER = '%repositories%' this.GRADLE_VERSION_HOLDER = '%gradleVersion%' this.getBuildGradleStructure = function () { return ` // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories {` +this.REPOSITORIES_HOLDER+ `} dependencies { classpath 'com.android.tools.build:gradle:`+this.GRADLE_VERSION_HOLDER+`' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories {` + this.REPOSITORIES_HOLDER + `} } task clean(type: Delete) { delete rootProject.buildDir } ` } /* BuildGradle STRUCTURE END */ } } module.exports = BuildGradleTemplates