mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Moved some Java files to kotlin (#3439)
* Converted NetworkConnectionType.java to Kotlin * Converted Urls.java to Kotlin and Updated AboutActivity * Improved code quality
This commit is contained in:
parent
78057b6a8a
commit
e68751f0b9
4 changed files with 19 additions and 19 deletions
|
|
@ -1,14 +0,0 @@
|
|||
package fr.free.nrw.commons;
|
||||
|
||||
class Urls {
|
||||
static final String NEW_ISSUE_URL = "https://github.com/commons-app/apps-android-commons/issues";
|
||||
static final String GITHUB_REPO_URL = "https://github.com/commons-app/apps-android-commons";
|
||||
static final String WEBSITE_URL = "https://commons-app.github.io";
|
||||
static final String CREDITS_URL = "https://github.com/commons-app/apps-android-commons/blob/master/CREDITS";
|
||||
static final String FAQ_URL = "https://github.com/commons-app/apps-android-commons/wiki/Frequently-Asked-Questions";
|
||||
static final String PLAY_STORE_URL = "https://play.google.com/store/apps/details?id=fr.free.nrw.commons";
|
||||
static final String TRANSLATE_WIKI_URL = "https://translatewiki.net/w/i.php?title=Special:Translate&group=commons-android-strings&filter=%21translated&action=translate&language=";
|
||||
static final String FACEBOOK_WEB_URL = "https://www.facebook.com/1921335171459985";
|
||||
static final String FACEBOOK_APP_URL = "fb://page/1921335171459985";
|
||||
static final String FACEBOOK_PACKAGE_NAME = "com.facebook.katana";
|
||||
}
|
||||
14
app/src/main/java/fr/free/nrw/commons/Urls.kt
Normal file
14
app/src/main/java/fr/free/nrw/commons/Urls.kt
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package fr.free.nrw.commons
|
||||
|
||||
internal object Urls {
|
||||
const val NEW_ISSUE_URL = "https://github.com/commons-app/apps-android-commons/issues"
|
||||
const val GITHUB_REPO_URL = "https://github.com/commons-app/apps-android-commons"
|
||||
const val WEBSITE_URL = "https://commons-app.github.io"
|
||||
const val CREDITS_URL = "https://github.com/commons-app/apps-android-commons/blob/master/CREDITS"
|
||||
const val FAQ_URL = "https://github.com/commons-app/apps-android-commons/wiki/Frequently-Asked-Questions"
|
||||
const val PLAY_STORE_URL = "https://play.google.com/store/apps/details?id=fr.free.nrw.commons"
|
||||
const val TRANSLATE_WIKI_URL = "https://translatewiki.net/w/i.php?title=Special:Translate&group=commons-android-strings&filter=%21translated&action=translate&language="
|
||||
const val FACEBOOK_WEB_URL = "https://www.facebook.com/1921335171459985"
|
||||
const val FACEBOOK_APP_URL = "fb://page/1921335171459985"
|
||||
const val FACEBOOK_PACKAGE_NAME = "com.facebook.katana"
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
package fr.free.nrw.commons.utils.model;
|
||||
|
||||
public enum NetworkConnectionType {
|
||||
WIFI, TWO_G, THREE_G, FOUR_G, UNKNOWN
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package fr.free.nrw.commons.utils.model
|
||||
|
||||
enum class NetworkConnectionType {
|
||||
WIFI, TWO_G, THREE_G, FOUR_G, UNKNOWN
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue