1
0
Fork 0

Prepare for a-c a-s upgrade

master
Edouard Oger 2020-03-16 15:52:06 -04:00 committed by Jonathan Almeida
parent 341393abaa
commit a1ea94fe76
2 changed files with 4 additions and 2 deletions

View File

@ -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)
}
}

View File

@ -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))
}
}