Prepare for a-c a-s upgrade

fennec/beta
Edouard Oger 4 years ago committed by Jonathan Almeida
parent 341393abaa
commit a1ea94fe76

@ -5,6 +5,7 @@
package org.mozilla.fenix.components
import android.content.Context
import mozilla.components.service.fxa.ServerConfig.Server
import mozilla.components.service.fxa.ServerConfig
/**
@ -20,6 +21,6 @@ object FxaServer {
@Suppress("UNUSED_PARAMETER")
fun config(context: Context): ServerConfig {
return ServerConfig.dev(CLIENT_ID, REDIRECT_URL)
return ServerConfig(Server.DEV, CLIENT_ID, REDIRECT_URL)
}
}

@ -5,6 +5,7 @@ package org.mozilla.fenix.components
import android.content.Context
import mozilla.components.service.fxa.ServerConfig
import mozilla.components.service.fxa.ServerConfig.Server
import org.mozilla.fenix.FeatureFlags
/**
@ -23,6 +24,6 @@ object FxaServer {
}
fun config(context: Context): ServerConfig {
return ServerConfig.release(CLIENT_ID, redirectUrl(context))
return ServerConfig(Server.RELEASE, CLIENT_ID, redirectUrl(context))
}
}

Loading…
Cancel
Save