Use flavorDimensions for external demo app

- This is soon becoming mandatory.
- It also looks like future versions of com.android.tools.build
  are being distributed via Google's Maven repository.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=166058299
This commit is contained in:
olly 2017-08-22 07:41:32 -07:00 committed by Oliver Woodman
parent 6a8c99d037
commit f0bd40a5b6
2 changed files with 11 additions and 2 deletions

View File

@ -14,6 +14,9 @@
buildscript {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'

View File

@ -39,9 +39,15 @@ android {
disable 'MissingTranslation'
}
flavorDimensions "extensions"
productFlavors {
noExtensions
withExtensions
noExtensions {
dimension "extensions"
}
withExtensions {
dimension "extensions"
}
}
}