L
L
Lamaster2014-12-16 18:42:12
Android
Lamaster, 2014-12-16 18:42:12

Android: How do you implement free and pro versioning in the IDE?

And how can you organize the simultaneous assembly of these two APKs with different code?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
anyd3v, 2014-12-16
@anyd3v

tools.android.com/tech-docs/new-build-system/user-...

M
maaGames, 2014-12-16
@maaGames

In my case, it turned out to be easier to make exactly two projects with different code.
I also want to know how to do it the right way. It's a pity there is no preprocessor, as in a sish.

L
Lamaster, 2014-12-17
@Lamaster

stackoverflow.com/a/4557275/2809617
You may want to look into configuring different artifacts
https://www.jetbrains.com/idea/help/artifacts.html
for the various versions of the lib and then restructuring your code to isolate the version specific code in subclasses/components that are only including in the relevant artifact. This may be impractical, especially in an existing project, but less trouble than writing a plugin. Maven has similar functionality via classifiers.

M
Michael, 2014-12-25
@Mr4Mike4

In android studio, I made an auto build of 2 versions. At first, of course, it was difficult to deal with gradle, but in the end it turned out to be not so difficult.
malroy.ru/gradle-part-1
tools.android.com/tech-docs/new-build-system/user-guide
https://www.youtube.com/watch?v=NZJTYPLb0iE
https://www.youtube .com/watch?v=7JDEK4wkN5I

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question