mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
Fix BuildConfig generation for internal builds
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=140210128
This commit is contained in:
parent
c3c176d93c
commit
e56cf49038
2 changed files with 7 additions and 15 deletions
|
|
@ -37,23 +37,17 @@ android {
|
|||
abortOnError false
|
||||
}
|
||||
|
||||
flavorDimensions "extensions"
|
||||
|
||||
productFlavors {
|
||||
noExtns {
|
||||
dimension "extensions"
|
||||
}
|
||||
extns {
|
||||
dimension "extensions"
|
||||
}
|
||||
noExtensions
|
||||
withExtensions
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile project(':library')
|
||||
extnsCompile project(path: ':extension-ffmpeg')
|
||||
extnsCompile project(path: ':extension-flac')
|
||||
extnsCompile project(path: ':extension-opus')
|
||||
extnsCompile project(path: ':extension-vp9')
|
||||
withExtensionsCompile project(path: ':extension-ffmpeg')
|
||||
withExtensionsCompile project(path: ':extension-flac')
|
||||
withExtensionsCompile project(path: ':extension-opus')
|
||||
withExtensionsCompile project(path: ':extension-vp9')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,9 +46,7 @@ public class DemoApplication extends Application {
|
|||
}
|
||||
|
||||
public boolean useExtensionRenderers() {
|
||||
// We should return BuildConfig.FLAVOR_extensions.equals("extns") here, but this is currently
|
||||
// incompatible with a Google internal build system.
|
||||
return true;
|
||||
return BuildConfig.FLAVOR.equals("withExtensions");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue