Are preview functions removed from release build b...
# compose
a
Are preview functions removed from release build by Proguard or R8?
p
To add to that are Composables that are only used in Preview functions removed from release builds?
👌 1
a
@Damian Zawadzki Proguard too right? And what about test-fake variables, functions, composable functions and other stuff only used inside Preview functions?
d
good question. Im not sure 😄 PreviewParameterProvider should be removed by R8 or proguard but im not sure what about private composable functions which are used only in scope of previews.
c
R8 / Proguard should remove any unused functions which are not called from production code.
👍 3
349 Views