Does the order of proguard rules has matter or the rules can be written in any order?
The order of rules does not matter. You can write it in any order.