Skip to content

Commit e68751f

Browse files
Moved some Java files to kotlin (commons-app#3439)
* Converted NetworkConnectionType.java to Kotlin * Converted Urls.java to Kotlin and Updated AboutActivity * Improved code quality
1 parent 78057b6 commit e68751f

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

app/src/main/java/fr/free/nrw/commons/Urls.java

-14
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package fr.free.nrw.commons
2+
3+
internal object Urls {
4+
const val NEW_ISSUE_URL = "https://github.com/commons-app/apps-android-commons/issues"
5+
const val GITHUB_REPO_URL = "https://github.com/commons-app/apps-android-commons"
6+
const val WEBSITE_URL = "https://commons-app.github.io"
7+
const val CREDITS_URL = "https://github.com/commons-app/apps-android-commons/blob/master/CREDITS"
8+
const val FAQ_URL = "https://github.com/commons-app/apps-android-commons/wiki/Frequently-Asked-Questions"
9+
const val PLAY_STORE_URL = "https://play.google.com/store/apps/details?id=fr.free.nrw.commons"
10+
const val TRANSLATE_WIKI_URL = "https://translatewiki.net/w/i.php?title=Special:Translate&group=commons-android-strings&filter=%21translated&action=translate&language="
11+
const val FACEBOOK_WEB_URL = "https://www.facebook.com/1921335171459985"
12+
const val FACEBOOK_APP_URL = "fb://page/1921335171459985"
13+
const val FACEBOOK_PACKAGE_NAME = "com.facebook.katana"
14+
}

app/src/main/java/fr/free/nrw/commons/utils/model/NetworkConnectionType.java

-5
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package fr.free.nrw.commons.utils.model
2+
3+
enum class NetworkConnectionType {
4+
WIFI, TWO_G, THREE_G, FOUR_G, UNKNOWN
5+
}

0 commit comments

Comments
 (0)