Skip to content

Commit

Permalink
Updated package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinusX committed Dec 5, 2018
1 parent 5e98bee commit 3fb1ab3
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 8 deletions.
40 changes: 40 additions & 0 deletions ios/Runner/GoogleService-Info.plist
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AD_UNIT_ID_FOR_BANNER_TEST</key>
<string>ca-app-pub-3940256099942544/2934735716</string>
<key>AD_UNIT_ID_FOR_INTERSTITIAL_TEST</key>
<string>ca-app-pub-3940256099942544/4411468910</string>
<key>CLIENT_ID</key>
<string>123595545975-95c8frhlr8jrhkkdo8n7oikrc4d9qso1.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.123595545975-95c8frhlr8jrhkkdo8n7oikrc4d9qso1</string>
<key>API_KEY</key>
<string>AIzaSyD2FfAigRQyrFMx739DrJkHw6p9sFE1oJA</string>
<key>GCM_SENDER_ID</key>
<string>123595545975</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.mszalek.weighttracker</string>
<key>PROJECT_ID</key>
<string>weight-tracker-e574f</string>
<key>STORAGE_BUCKET</key>
<string>weight-tracker-e574f.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<true></true>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<false></false>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:123595545975:ios:6394baf6dc0140a1</string>
<key>DATABASE_URL</key>
<string>https://weight-tracker-e574f.firebaseio.com</string>
</dict>
</plist>
8 changes: 5 additions & 3 deletions lib/logic/middleware.dart
Expand Up @@ -68,13 +68,15 @@ _handleLoginWithGoogle(Store<ReduxState> store, LoginWithGoogle action) async {
);
hasLinkingFailed = true;
}
await FirebaseAuth.instance.updateProfile(new UserUpdateInfo()

FirebaseUser user = await FirebaseAuth.instance.currentUser();
await user.updateProfile(new UserUpdateInfo()
..photoUrl = googleUser.photoUrl
..displayName = googleUser.displayName);
FirebaseUser newUser = await FirebaseAuth.instance.currentUser();
user.reload();

store.dispatch(new UserLoadedAction(
newUser,
user,
cachedEntries: hasLinkingFailed ? action.cachedEntries : [],
));
}
Expand Down
10 changes: 5 additions & 5 deletions pubspec.yaml
Expand Up @@ -5,16 +5,16 @@ dependencies:
flutter:
sdk: flutter
numberpicker: ^0.1.6
firebase_auth: ^0.5.19
firebase_database: ^1.0.4
firebase_analytics: ^1.0.3
firebase_auth: ^0.6.6
firebase_database: ^1.0.5
firebase_analytics: ^1.0.6
redux: ^3.0.0
flutter_redux: ^0.5.2
tuple: ^1.0.2
intl: ^0.15.7
shared_preferences: ^0.4.2
shared_preferences: ^0.4.3
mockito: ^4.0.0
google_sign_in: ^3.2.2
google_sign_in: ^3.2.4

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 3fb1ab3

Please sign in to comment.