Merge branch 'main' into feat/throttled-assets-loading

pull/443/head
Erick 3 years ago committed by GitHub
commit 6b3732edcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -290,7 +290,7 @@ class OpenSourceTextComponent extends TextComponent with HasGameRef, Tappable {
); );
@override @override
bool onTapDown(TapDownInfo info) { bool onTapUp(TapUpInfo info) {
openLink(ShareRepository.openSourceCode); openLink(ShareRepository.openSourceCode);
return true; return true;
} }

@ -213,7 +213,7 @@
"@socialMediaAccount": { "@socialMediaAccount": {
"description": "Text displayed on share screen for description" "description": "Text displayed on share screen for description"
}, },
"iGotScoreAtPinball": "I got {score} at the #IOPinball machine, can you beat my score? See you at #GoogleIO!", "iGotScoreAtPinball": "I got {score} points in #IOPinball, can you beat my score? \nSee you at #GoogleIO!",
"@iGotScoreAtPinball": { "@iGotScoreAtPinball": {
"description": "Text to share score on Social Network", "description": "Text to share score on Social Network",
"placeholders": { "placeholders": {

@ -1,5 +1,3 @@
import 'dart:async';
import 'package:authentication_repository/authentication_repository.dart'; import 'package:authentication_repository/authentication_repository.dart';
import 'package:firebase_core/firebase_core.dart'; import 'package:firebase_core/firebase_core.dart';
import 'package:leaderboard_repository/leaderboard_repository.dart'; import 'package:leaderboard_repository/leaderboard_repository.dart';
@ -17,11 +15,8 @@ void main() {
final authenticationRepository = AuthenticationRepository(firebaseAuth); final authenticationRepository = AuthenticationRepository(firebaseAuth);
final pinballAudioPlayer = PinballAudioPlayer(); final pinballAudioPlayer = PinballAudioPlayer();
final platformHelper = PlatformHelper(); final platformHelper = PlatformHelper();
unawaited( await Firebase.initializeApp();
Firebase.initializeApp().then( await authenticationRepository.authenticateAnonymously();
(_) => authenticationRepository.authenticateAnonymously(),
),
);
return App( return App(
authenticationRepository: authenticationRepository, authenticationRepository: authenticationRepository,
leaderboardRepository: leaderboardRepository, leaderboardRepository: leaderboardRepository,

@ -176,7 +176,7 @@ void main() {
final openSourceLink = final openSourceLink =
component.descendants().whereType<OpenSourceTextComponent>().first; component.descendants().whereType<OpenSourceTextComponent>().first;
openSourceLink.onTapDown(_MockTapDownInfo()); openSourceLink.onTapUp(_MockTapUpInfo());
await game.ready(); await game.ready();

Loading…
Cancel
Save