Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 463474b5 authored by Aayush Gupta's avatar Aayush Gupta
Browse files

App Lounge: Wrap string variables into companion object

parent 2cb9640f
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -26,9 +26,11 @@ import javax.inject.Inject
class AC2DMTask @Inject constructor(
    private val gPlayHttpClient: GPlayHttpClient
) {
    private val TOKEN_AUTH_URL = "https://android.clients.google.com/auth"
    private val BUILD_VERSION_SDK = 28
    private val PLAY_SERVICES_VERSION_CODE = 19629032
    companion object {
        private const val TOKEN_AUTH_URL = "https://android.clients.google.com/auth"
        private const val BUILD_VERSION_SDK = 28
        private const val PLAY_SERVICES_VERSION_CODE = 19629032
    }

    fun getAC2DMResponse(email: String?, oAuthToken: String?): Map<String, String> {
        if (email == null || oAuthToken == null)
+5 −3
Original line number Diff line number Diff line
@@ -50,9 +50,11 @@ class GoogleSignInFragment :

    private val cookieManager = CookieManager.getInstance()

    private val EMBEDDED_SETUP_URL =
    companion object {
        private const val EMBEDDED_SETUP_URL =
            "https://accounts.google.com/EmbeddedSetup/identifier?flowName=EmbeddedSetupAndroid"
    private val AUTH_TOKEN = "oauth_token"
        private const val AUTH_TOKEN = "oauth_token"
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)