Y
Y
Yuri2016-08-13 17:52:45
Android
Yuri, 2016-08-13 17:52:45

How to not include certain resources/classes in release apk?

I can't figure out how not to include certain resources (from the res folder) and classes (java) in the release apk.
Tried packagingOptions/exclude - doesn't throw it out.
With proguard, I didn’t find any rules for this at all (although maybe I just searched badly).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2016-08-13
@yshinkarev

of course badly searched
heard about Gradle?
so it allows you to make common code and specific for different assemblies:
release, trial, demo, etc.
documentation
https://developer.android.com/studio/build/build-v...
and here is how to do
blog.brainattica.com /how-to-work-with-flavors-on-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question