mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-12 17:08:59 -04:00
Added seperate constant to contain expansion file version code
Defaults to app version code
This commit is contained in:
parent
aa5d4c82c1
commit
ff78335e18
@ -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~";
|
||||
|
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user