Added seperate constant to contain expansion file version code

Defaults to app version code
This commit is contained in:
mhutti1 2016-11-16 15:06:59 +00:00
parent aa5d4c82c1
commit ff78335e18
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@ public class Constants {
public static final int CUSTOM_APP_VERSION_CODE = 2;
public static final int CUSTOM_APP_CONTENT_VERSION_CODE = CUSTOM_APP_VERSION_CODE;
public static final String CUSTOM_APP_WEBSITE = "~website~";
public static final String CUSTOM_APP_EMAIL = "~support_email~";

View File

@ -72,7 +72,7 @@ public class FileUtils {
* @return String the file name of the expansion file
*/
public static String getExpansionAPKFileName(boolean mainFile) {
return (mainFile ? "main." : "patch.") + Constants.CUSTOM_APP_VERSION_CODE + "."
return (mainFile ? "main." : "patch.") + Constants.CUSTOM_APP_CONTENT_VERSION_CODE + "."
+ Constants.CUSTOM_APP_ID + ".obb";
}