Skip to content

Commit

Permalink
Allowed for dependency package_info_plus version 6.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
larryaasen committed Mar 23, 2024
1 parent 571b0d3 commit 252c2b9
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 668 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
timeout-minutes: 20
strategy:
matrix:
flutter-version: ['3.16.0', '3.19.1']
flutter-version: ['3.16.0', '3.19.4']

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 10.0.1

- Allowed for dependency package_info_plus version 6.0.0.

## 10.0.0

This major update changes the structure of how the internal state is maintained and how access to app stores is provided. The API has not changed for the standard use cases. However, the way in which Appcast is used has changed slightly.
Expand Down
4 changes: 0 additions & 4 deletions TODO.md

This file was deleted.

1 change: 0 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class MyApp extends StatelessWidget {
return MaterialApp(
title: 'Upgrader Example',
home: UpgradeAlert(
upgrader: Upgrader(debugLogging: true),
child: Scaffold(
appBar: AppBar(title: const Text('Upgrader Example')),
body: const Center(child: Text('Checking...')),
Expand Down
34 changes: 34 additions & 0 deletions example/lib/main_alert_again.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright (c) 2024 Larry Aasen. All rights reserved.

import 'package:flutter/material.dart';
import 'package:upgrader/upgrader.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();

// Only call clearSavedSettings() during testing to reset internal values.
await Upgrader.clearSavedSettings(); // REMOVE this for release builds

runApp(MyApp());
}

class MyApp extends StatelessWidget {
MyApp({super.key});

final _upgrader = Upgrader(
debugLogging: true, durationUntilAlertAgain: const Duration(seconds: 10));

@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Upgrader Example - Alert Again',
home: UpgradeAlert(
upgrader: _upgrader,
child: Scaffold(
appBar: AppBar(title: const Text('Upgrader Example - Alert Again')),
body: const Center(child: Text('Checking...')),
),
),
);
}
}
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: upgrader
description: Flutter package for prompting users to upgrade when there is a newer version of the app in the store.
version: 10.0.0
version: 10.0.1
homepage: https://github.com/larryaasen/upgrader

environment:
Expand All @@ -24,7 +24,7 @@ dependencies:
os_detect: ^2.0.1

# From Flutter Community: Provides an API for querying information about an application package.
package_info_plus: '>=4.0.1 <6.0.0'
package_info_plus: '>=4.0.1 <7.0.0'

# From Flutter Team: Wraps NSUserDefaults (on iOS) and SharedPreferences (on Android).
shared_preferences: '>=2.1.1 <3.0.0'
Expand Down
291 changes: 0 additions & 291 deletions techstack.md

This file was deleted.

Loading

0 comments on commit 252c2b9

Please sign in to comment.