Commit da57e288e0f9ea33c5f84e6e139767197932a51b

Authored by Key
1 parent b671c891

fixed: Android打包不压缩资源

README.md
1 -# wow_english 1 +# Wow English
2 2
3 -A new Flutter project.  
4 -  
5 -## Getting Started  
6 -  
7 -This project is a starting point for a Flutter application.  
8 -  
9 -A few resources to get you started if this is your first Flutter project:  
10 -  
11 -- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)  
12 -- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)  
13 -  
14 -For help getting started with Flutter development, view the  
15 -[online documentation](https://docs.flutter.dev/), which offers tutorials,  
16 -samples, guidance on mobile development, and a full API reference. 3 +* flutter版本号:3.19.2
android/app/build.gradle
@@ -73,9 +73,13 @@ android { @@ -73,9 +73,13 @@ android {
73 buildTypes { 73 buildTypes {
74 debug { 74 debug {
75 signingConfig signingConfigs.release 75 signingConfig signingConfigs.release
  76 + minifyEnabled false
  77 + shrinkResources false
76 } 78 }
77 release { 79 release {
78 signingConfig signingConfigs.release 80 signingConfig signingConfigs.release
  81 + minifyEnabled false
  82 + shrinkResources false
79 } 83 }
80 } 84 }
81 } 85 }
@@ -85,7 +89,6 @@ flutter { @@ -85,7 +89,6 @@ flutter {
85 } 89 }
86 90
87 dependencies { 91 dependencies {
88 -  
89 // sing sound 92 // sing sound
90 implementation 'com.singsound.library:evaluating:2.1.9' 93 implementation 'com.singsound.library:evaluating:2.1.9'
91 implementation "com.google.code.gson:gson:2.10" 94 implementation "com.google.code.gson:gson:2.10"
lib/main.dart
1 import 'dart:io'; 1 import 'dart:io';
2 2
3 -import 'package:flutter/foundation.dart';  
4 import 'package:flutter/material.dart'; 3 import 'package:flutter/material.dart';
5 import 'package:flutter/services.dart'; 4 import 'package:flutter/services.dart';
6 import 'package:package_info_plus/package_info_plus.dart'; 5 import 'package:package_info_plus/package_info_plus.dart';
@@ -36,7 +35,7 @@ void main() { @@ -36,7 +35,7 @@ void main() {
36 enableLog: BasicConfig.isTestDev, 35 enableLog: BasicConfig.isTestDev,
37 36
38 // 您使用的flutter版本,默认为空,为方便定位访问,建议配置 37 // 您使用的flutter版本,默认为空,为方便定位访问,建议配置
39 - flutterVersion: '3.13.2', 38 + flutterVersion: '3.19.2',
40 39
41 // 您使用的flutter引擎版本 40 // 您使用的flutter引擎版本
42 engineVersion: 'ff5b5b5fa6', 41 engineVersion: 'ff5b5b5fa6',