Skip to content

Commit

Permalink
Add includeSampleApp property to toggle development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Zynger committed Jun 4, 2020
1 parent e3ab7f9 commit d042b16
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
3 changes: 3 additions & 0 deletions arguments.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ext {
includeSampleApp = (properties['floorplan.includeSampleApp'] ?: 'false').toBoolean()
}
11 changes: 8 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
buildscript {
apply from: "arguments.gradle"

repositories {
google()
jcenter()
mavenLocal()
if (includeSampleApp) {
mavenLocal()
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'
// Uncomment when developing with the plugin's sample application
// classpath "com.zynger.floorplan:floorplan-gradle-plugin:0.1-SNAPSHOT"
if (includeSampleApp) {
classpath "com.zynger.floorplan:floorplan-gradle-plugin:0.1-SNAPSHOT"
}
}
}
plugins {
Expand Down
7 changes: 5 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
apply from: "arguments.gradle"

rootProject.name = 'floorplan'
include 'dbml-render'
include 'dbml'
Expand All @@ -7,5 +9,6 @@ include 'floorplan-cli'
include 'room-consumer'
include 'floorplan-gradle-plugin'

// Uncomment when developing with the plugin's sample application
//include 'sample-android-project'
if (includeSampleApp) {
include 'sample-android-project'
}

0 comments on commit d042b16

Please sign in to comment.