Hide Google in FOSS version
This commit is contained in:
parent
a8c14355c3
commit
eaa6ffe85d
|
|
@ -16,6 +16,7 @@ import 'package:invoiceninja_flutter/ui/auth/login_vm.dart';
|
||||||
import 'package:invoiceninja_flutter/utils/colors.dart';
|
import 'package:invoiceninja_flutter/utils/colors.dart';
|
||||||
import 'package:invoiceninja_flutter/utils/localization.dart';
|
import 'package:invoiceninja_flutter/utils/localization.dart';
|
||||||
import 'package:invoiceninja_flutter/ui/app/form_card.dart';
|
import 'package:invoiceninja_flutter/ui/app/form_card.dart';
|
||||||
|
import 'package:invoiceninja_flutter/utils/oauth.dart';
|
||||||
import 'package:invoiceninja_flutter/utils/platforms.dart';
|
import 'package:invoiceninja_flutter/utils/platforms.dart';
|
||||||
import 'package:invoiceninja_flutter/.env.dart';
|
import 'package:invoiceninja_flutter/.env.dart';
|
||||||
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
|
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
|
||||||
|
|
@ -73,7 +74,7 @@ class _LoginState extends State<LoginView> {
|
||||||
_emailLogin = true;
|
_emailLogin = true;
|
||||||
_createAccount = false;
|
_createAccount = false;
|
||||||
}
|
}
|
||||||
} else if (isApple()) {
|
} else if (isApple() || !GoogleOAuth.isEnabled) {
|
||||||
_emailLogin = true;
|
_emailLogin = true;
|
||||||
_hideGoogle = true;
|
_hideGoogle = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ final GoogleSignIn _googleSignIn = GoogleSignIn(
|
||||||
);
|
);
|
||||||
|
|
||||||
class GoogleOAuth {
|
class GoogleOAuth {
|
||||||
|
static bool get isEnabled => true;
|
||||||
|
|
||||||
static Future<bool> signIn(Function(String, String) callback,
|
static Future<bool> signIn(Function(String, String) callback,
|
||||||
{bool isSilent = false}) async {
|
{bool isSilent = false}) async {
|
||||||
GoogleSignInAccount account;
|
GoogleSignInAccount account;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
class GoogleOAuth {
|
class GoogleOAuth {
|
||||||
|
|
||||||
|
static bool get isEnabled => false;
|
||||||
|
|
||||||
static Future<bool> signIn(Function(String, String) callback, {bool isSilent = false}) async {
|
static Future<bool> signIn(Function(String, String) callback, {bool isSilent = false}) async {
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue