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:
Madhur Gupta 2020-03-02 00:13:08 +01:00 committed by GitHub
parent 78057b6a8a
commit e68751f0b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 19 deletions

View file

@ -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";
}

View 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"
}

View file

@ -1,5 +0,0 @@
package fr.free.nrw.commons.utils.model;
public enum NetworkConnectionType {
WIFI, TWO_G, THREE_G, FOUR_G, UNKNOWN
}

View file

@ -0,0 +1,5 @@
package fr.free.nrw.commons.utils.model
enum class NetworkConnectionType {
WIFI, TWO_G, THREE_G, FOUR_G, UNKNOWN
}