mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
Convert Constants.java into kotlin
This commit is contained in:
parent
9e963f8426
commit
070216f487
@ -1,16 +0,0 @@
|
||||
package org.kiwix.kiwixmobile.settings;
|
||||
|
||||
public class Constants {
|
||||
public static final boolean IS_CUSTOM_APP = true;
|
||||
public static final String CUSTOM_APP_ID = "~package~";
|
||||
public static final boolean CUSTOM_APP_HAS_EMBEDDED_ZIM = ~embed_zim~;
|
||||
public static final String CUSTOM_APP_ZIM_FILE_NAME = "~zim_name~";
|
||||
public static final long CUSTOM_APP_ZIM_FILE_SIZE = ~zim_size~L;
|
||||
public static final String CUSTOM_APP_VERSION_NAME = "~version_name~";
|
||||
public static final int CUSTOM_APP_VERSION_CODE = ~version_code~;
|
||||
public static final int CUSTOM_APP_CONTENT_VERSION_CODE = ~content_version_code~;
|
||||
public static final String CUSTOM_APP_WEBSITE = "~website~";
|
||||
public static final String CUSTOM_APP_EMAIL = "~support_email~";
|
||||
public static final String CUSTOM_APP_SUPPORT_EMAIL = "~support_email~";
|
||||
public static final String CUSTOM_APP_ENFORCED_LANG = "~enforced_lang~";
|
||||
}
|
34
templates/Constants.kt
Normal file
34
templates/Constants.kt
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Kiwix Android
|
||||
* Copyright (c) 2022 Kiwix <android.kiwix.org>
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.kiwix.kiwixmobile.settings
|
||||
|
||||
object Constants {
|
||||
const val IS_CUSTOM_APP = true
|
||||
const val CUSTOM_APP_ID = "~package~"
|
||||
const val CUSTOM_APP_HAS_EMBEDDED_ZIM = embed_zim.inv().toBoolean()
|
||||
const val CUSTOM_APP_ZIM_FILE_NAME = "~zim_name~"
|
||||
const val CUSTOM_APP_ZIM_FILE_SIZE = zim_size.inv().toLong()
|
||||
const val CUSTOM_APP_VERSION_NAME = "~version_name~"
|
||||
const val CUSTOM_APP_VERSION_CODE: Int = version_code.inv()
|
||||
const val CUSTOM_APP_CONTENT_VERSION_CODE: Int = content_version_code.inv()
|
||||
const val CUSTOM_APP_WEBSITE = "~website~"
|
||||
const val CUSTOM_APP_EMAIL = "~support_email~"
|
||||
const val CUSTOM_APP_SUPPORT_EMAIL = "~support_email~"
|
||||
const val CUSTOM_APP_ENFORCED_LANG = "~enforced_lang~"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user