diff --git a/lib/backend/DataManager.dart b/lib/backend/DataManager.dart index e246a82..5f9ff78 100644 --- a/lib/backend/DataManager.dart +++ b/lib/backend/DataManager.dart @@ -5,7 +5,7 @@ import 'package:http/http.dart' as http; import 'DebugHelper.dart'; class DataManager{ - static int ClientVersion = 1; + static int ClientVersion = 2; static const String API_ENDPOINT = "http://vps.playpoolstudios.com/faucet/api/"; static Map Settings = {}; diff --git a/lib/backend/login_mgr.dart b/lib/backend/login_mgr.dart index 6a233dc..89f84d4 100644 --- a/lib/backend/login_mgr.dart +++ b/lib/backend/login_mgr.dart @@ -120,6 +120,8 @@ class LoginManager { prefs.setString("username", username); prefs.setString("password", username); prefs.setBool("googleLogin", true); + DataManager.username = username; + DataManager.password = username; return 0; }catch(e){ return 5; diff --git a/lib/welcome.dart b/lib/welcome.dart index 9d3b0cb..ceb20f8 100644 --- a/lib/welcome.dart +++ b/lib/welcome.dart @@ -316,7 +316,6 @@ class _MyHomePageState extends State { GoogleSignIn _googleSignIn = GoogleSignIn( scopes: [ 'email', - 'https://www.googleapis.com/auth/contacts.readonly', ], ); diff --git a/pubspec.yaml b/pubspec.yaml index 984a929..3c57701 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.4+4 +version: 1.0.6+6 environment: sdk: '>=3.0.1 <4.0.0'