Right now I have 3 projects:
I need to be able to do four things:
int
in library based on if user has pro or lite versionlong
in library based on if user has pro or lite versionads
in the lite shelllaunch icon
. Not sure where to put this. Leave both icons out of library or put both in library?Google Analytic
codes -- one to track pro and other to track liteTextView
in library right now that has a link to the pro version. Should I leave this in the library or just make it not visible in the pro or take it out the library and only have it in the lite?I am having trouble finding a good example of how to set up code for this sort of thing. Do I just put logic statements somewhere in the library or do I create some java/xml files in the shells? So right now the empty pro/lite projects just reference the library but have no jars, xml files, java files, pngs or anything else. I have changed the two shells AndroidManifest
package name to be unique to each project.
How about creating an Enum?
public enum LibType
{
PRO(
0,
1L,
"PRO"
),
LITE(
10,
20L,
"LITE"
);
public final int intVal;
public final long longVal;
public final String analyticsCode;
...
private LibType(
int intVal,
long longVal,
String analyticsCode
)
{
this.intVal = intVal;
...
}
}