Skip to content

Commit

Permalink
[windows] Fixed ProAccount loginAsGuest error
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Sep 25, 2021
1 parent 0ceaa20 commit 35d6083
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions lib/pages/home/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,14 @@ class _HomePageState extends State<HomePage>
setState(() {});
} catch (error) {}
try {
PackageInfo packageInfo = await PackageInfo.fromPlatform();

ProAccountInterceptor.appBuildNumber =
(packageInfo?.buildNumber ?? '').isNotEmpty
? packageInfo?.buildNumber
: kAppBuildNumber;
ProAccountInterceptor.appVersion = packageInfo.appName;

if (proAccount.loggedInGuest == null) {
await proAccount.loginAsGuest();
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ packages:
path: "../../leanflutter/screen_retriever"
relative: true
source: path
version: "0.0.1"
version: "0.0.2"
screen_text_extractor:
dependency: "direct main"
description:
Expand Down

0 comments on commit 35d6083

Please sign in to comment.