Changes for Google sign in
This commit is contained in:
parent
05fc8caf64
commit
cde74e702d
|
|
@ -38,7 +38,7 @@ android {
|
|||
|
||||
defaultConfig {
|
||||
applicationId "com.invoiceninja.app"
|
||||
minSdkVersion 18
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 29
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ if (flutterVersionName == null) {
|
|||
|
||||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||
|
||||
def keystorePropertiesFile = rootProject.file("key.properties")
|
||||
|
|
@ -42,7 +43,7 @@ android {
|
|||
|
||||
defaultConfig {
|
||||
applicationId "com.invoiceninja.app"
|
||||
minSdkVersion 18
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 29
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
|
|
|
|||
|
|
@ -24,7 +24,10 @@ class GoogleOAuth {
|
|||
|
||||
if (account != null) {
|
||||
account.authentication.then((GoogleSignInAuthentication value) {
|
||||
callback(value.idToken, value.accessToken);
|
||||
callback(
|
||||
value.idToken ?? '',
|
||||
value.accessToken ?? '',
|
||||
);
|
||||
});
|
||||
|
||||
return true;
|
||||
|
|
@ -38,7 +41,10 @@ class GoogleOAuth {
|
|||
final account = await _googleSignIn.signIn();
|
||||
if (account != null) {
|
||||
account.authentication.then((GoogleSignInAuthentication value) {
|
||||
callback(value.idToken, value.accessToken);
|
||||
callback(
|
||||
value.idToken ?? '',
|
||||
value.accessToken ?? '',
|
||||
);
|
||||
});
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@ dependencies:
|
|||
# quick_actions: ^0.2.1
|
||||
# idb_shim: ^1.11.1+1
|
||||
|
||||
# firebase_auth: 0.15.2 #https://github.com/FirebaseExtended/flutterfire/issues/2433#issuecomment-622438185
|
||||
# google_sign_in: ^5.0.7
|
||||
# contacts_service: ^0.6.1
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@ dependencies:
|
|||
# quick_actions: ^0.2.1
|
||||
# idb_shim: ^1.11.1+1
|
||||
|
||||
# firebase_auth: 0.15.2 #https://github.com/FirebaseExtended/flutterfire/issues/2433#issuecomment-622438185
|
||||
google_sign_in: ^5.0.7
|
||||
contacts_service: ^0.6.1
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue