| 21 | }); |
| 22 | |
| 23 | export class GoogleProvider extends ProviderBase { |
| 24 | _builder: com.firebase.ui.auth.AuthUI.IdpConfig.GoogleBuilder; |
| 25 | constructor() { |
| 26 | super(); |
| 27 | this._builder = new com.firebase.ui.auth.AuthUI.IdpConfig.GoogleBuilder(); |
| 28 | } |
| 29 | |
| 30 | _scopes: string[] = []; |
| 31 | get scopes() { |
| 32 | return this._scopes; |
| 33 | } |
| 34 | |
| 35 | set scopes(values: string[]) { |
| 36 | if (Array.isArray(values)) { |
| 37 | this._scopes = values; |
| 38 | const scopes = new java.util.ArrayList<string>(); |
| 39 | this._scopes.forEach((scope) => { |
| 40 | scopes.add(scope); |
| 41 | }); |
| 42 | this._builder.setScopes(scopes); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | getNative(ui: IUI) { |
| 47 | return this._builder.build(); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | export class FacebookProvider extends ProviderBase { |
| 52 | _builder: com.firebase.ui.auth.AuthUI.IdpConfig.FacebookBuilder; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…