0

I have some customised classes that perform functions like,

  1. Custom Logging
  2. Development Analytics
  3. Extended features made available during app development
  4. Custom mail management, and log file for Testers

When I have to send the app to production, we have to either

  1. manually remove these codes, or
  2. logically disable the features

This causes a couple of issues,

  1. Security vulnerability
  2. Manual effort of removal and sanity check

I was wondering if proGaurd or another build tool could be used to perform the same during the APK generation.

B.B.
  • 924
  • 2
  • 11
  • 28

1 Answers1

0

It is possible to achieve the effect using gradle like this:

sourceSets {
    main {
        java {
            include 'com/ourcompany/somepackage/activityadapter/**'
            include 'com/ourcompany/someotherpackage/**'
            exclude 'com/ourcompany/someotherpackage/polling/**'
        }
    }
}

Source

This requires consistent code architecture

Community
  • 1
  • 1
David
  • 306
  • 6
  • 20