add various proguard rules, refactor build.gradle