We want to bypass SSL for certain flavours of app which is used internally. What is the best way to do it?
Can we configure the network-security-config.xml so it ignores pinning for a particular build flavour?
Or we have to override the TrustManager class?
I have been using gradle source sets for this kind of purpose.
debugsource set has a network security config that does not have pinning enabled.releasesource set has a different network security config file that has everything needed for a production configuration.In a gradle module, these source sets sit on the top
srclevel, withmainbeing the default.