flutter: Upgrade packages version

Android minSdkVersion 19 -> 23, targetSdkVersion: 28 -> 30
audioplayers: ^0.14.0 -> ^0.17.4
path_provider: ^1.6.1 -> ^0.16.27
package_info: ^0.4.0+16 -> ^0.4.3+4

See:
https://pub.dev/packages/audioplayers/changelog
https://pub.dev/packages/path_provider/changelog
https://pub.dev/packages/package_info/changelog
This commit is contained in:
Calcitem 2021-02-21 09:25:29 +08:00
parent be4fd0246e
commit 92691ce55d
4 changed files with 8 additions and 8 deletions

View File

@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 28
compileSdkVersion 30
lintOptions {
disable 'InvalidPackage'
@ -34,8 +34,8 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.calcitem.sanmill"
minSdkVersion 16
targetSdkVersion 28
minSdkVersion 23
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
ndk{

View File

@ -46,7 +46,7 @@ class Audios {
//
_fixedTonePlayer = AudioPlayer();
_tonePlayer =
AudioCache(prefix: 'audios/', fixedPlayer: _fixedTonePlayer);
AudioCache(prefix: 'assets/audios/', fixedPlayer: _fixedTonePlayer);
await _tonePlayer.loadAll([
'draw.mp3',

View File

@ -44,7 +44,7 @@ class _SettingsPageState extends State<SettingsPage> {
}
loadVersionInfo() async {
//
// if (!(Platform.isAndroid || Platform.isIOS)) {
final packageInfo = await PackageInfo.fromPlatform();
setState(() {
_version = '${packageInfo.version} (${packageInfo.buildNumber})';

View File

@ -12,9 +12,9 @@ dependencies:
flutter_localizations:
sdk: flutter
cupertino_icons: ^0.1.2
audioplayers: ^0.14.0
path_provider: ^1.6.1
package_info: ^0.4.0+16
audioplayers: ^0.17.4
path_provider: ^1.6.27
package_info: ^0.4.3+4
uuid: ^2.0.4
url_launcher: ^5.7.10
intl: ^0.17.0