Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
twklessor committed Oct 25, 2024
1 parent 76d8d79 commit 57a149d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/src/upgrade_announcer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class UpgradeAnnouncer extends StatefulWidget {
/// [Upgrader.minAppVersion] version
final bool enforceUpgrade;
final bool debugEnforceUpgrade;
final bool debugUpgrade;
final bool debugAvailableUpgrade;
final Widget child;

const UpgradeAnnouncer({
Expand All @@ -51,7 +51,7 @@ class UpgradeAnnouncer extends StatefulWidget {
this.downloadIconColor,
this.enforceUpgrade = false,
this.debugEnforceUpgrade = false,
this.debugUpgrade = false,
this.debugAvailableUpgrade = false,
required this.child,
});

Expand Down Expand Up @@ -168,7 +168,7 @@ class _UpgradeAnnouncer extends State<UpgradeAnnouncer> {
appStoreVersion != null &&
installedVersion != null) {
if (appStoreVersion > installedVersion ||
(widget.debugUpgrade || widget.debugEnforceUpgrade)) {
(widget.debugAvailableUpgrade || widget.debugEnforceUpgrade)) {
if (widget.enforceUpgrade || widget.debugEnforceUpgrade) {
setState(() {
_shouldEnforceUpgrade =
Expand Down
4 changes: 2 additions & 2 deletions test/upgrade_announcer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void main() {
expect(find.text(UpgraderMessages().upgradeEnforce), findsOneWidget);
}, skip: false);

testWidgets('Upgrade available; always shown; debugUpgrade',
testWidgets('Upgrade available; always shown; debugAvailableUpgrade',
(WidgetTester tester) async {
final client = MockITunesSearchClient.setupMockClient();

Expand All @@ -90,7 +90,7 @@ void main() {
home: UpgradeAnnouncer(
scaffoldMessengerKey: rootScaffoldMessengerKey,
upgrader: upgrader,
debugUpgrade: true,
debugAvailableUpgrade: true,
child: Scaffold(
body: const Placeholder(),
appBar: AppBar(title: const Text('Upgrader test')),
Expand Down

0 comments on commit 57a149d

Please sign in to comment.