Fix withDecoderExtensions flavor detection in internal demo app
PiperOrigin-RevId: 322781213
This commit is contained in:
parent
c271eb85fd
commit
0f346c8c2f
@ -55,9 +55,11 @@ android {
|
|||||||
productFlavors {
|
productFlavors {
|
||||||
noDecoderExtensions {
|
noDecoderExtensions {
|
||||||
dimension "decoderExtensions"
|
dimension "decoderExtensions"
|
||||||
|
buildConfigField "boolean", "USE_DECODER_EXTENSIONS", "false"
|
||||||
}
|
}
|
||||||
withDecoderExtensions {
|
withDecoderExtensions {
|
||||||
dimension "decoderExtensions"
|
dimension "decoderExtensions"
|
||||||
|
buildConfigField "boolean", "USE_DECODER_EXTENSIONS", "true"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ public final class DemoUtil {
|
|||||||
|
|
||||||
/** Returns whether extension renderers should be used. */
|
/** Returns whether extension renderers should be used. */
|
||||||
public static boolean useExtensionRenderers() {
|
public static boolean useExtensionRenderers() {
|
||||||
return "withDecoderExtensions".equals(BuildConfig.FLAVOR);
|
return BuildConfig.USE_DECODER_EXTENSIONS;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static RenderersFactory buildRenderersFactory(
|
public static RenderersFactory buildRenderersFactory(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user