Skip to content

Commit 884089e

Browse files
committed
修复一些bug,升级第三方插件
1 parent 8d34744 commit 884089e

File tree

7 files changed

+105
-79
lines changed

7 files changed

+105
-79
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,28 @@
4040
## 运行环境
4141

4242
```
43-
[✓] Flutter (Channel beta, v1.17.0, on Mac OS X 10.14.6 18G103, locale zh-Hans-CN)
44-
• Flutter version 1.17.0 at /Users/14cells/Android/flutter
45-
• Framework revision e6b34c2b5c (2 weeks ago), 2020-05-02 11:39:18 -0700
46-
• Engine revision 540786dd51
47-
• Dart version 2.8.1
43+
[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.4 19E287, locale zh-Hans-CN)
44+
• Flutter version 1.17.5 at /System/Volumes/Data/workspace/flutter
45+
• Framework revision 8af6b2f038 (2 个月前) • 2020-06-30 12:53:55 -0700
46+
• Engine revision ee76268252
47+
• Dart version 2.8.4
4848
49-
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
49+
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
5050
• Android SDK at /Users/14cells/Android/SDK
51-
• Platform android-R, build-tools 29.0.2
51+
• Platform android-R, build-tools 30.0.2
5252
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
5353
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
5454
• All Android licenses accepted.
5555
56-
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
56+
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
5757
• Xcode at /Applications/Xcode.app/Contents/Developer
58-
• Xcode 11.2.1, Build version 11B500
58+
• Xcode 11.7, Build version 11B500
5959
• CocoaPods version 1.8.4
6060
6161
[✓] Chrome - develop for the web
6262
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
6363
64-
[✓] Android Studio (version 3.5)
64+
[✓] Android Studio (version 3.6)
6565
• Android Studio at /Applications/Android Studio.app/Contents
6666
• Flutter plugin version 44.0.1
6767
• Dart plugin version 191.8593

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@
362362
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
363363
GCC_WARN_UNUSED_FUNCTION = YES;
364364
GCC_WARN_UNUSED_VARIABLE = YES;
365-
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
365+
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
366366
MTL_ENABLE_DEBUG_INFO = NO;
367367
SDKROOT = iphoneos;
368368
TARGETED_DEVICE_FAMILY = "1,2";
@@ -443,7 +443,7 @@
443443
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
444444
GCC_WARN_UNUSED_FUNCTION = YES;
445445
GCC_WARN_UNUSED_VARIABLE = YES;
446-
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
446+
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
447447
MTL_ENABLE_DEBUG_INFO = YES;
448448
ONLY_ACTIVE_ARCH = YES;
449449
SDKROOT = iphoneos;
@@ -491,7 +491,7 @@
491491
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
492492
GCC_WARN_UNUSED_FUNCTION = YES;
493493
GCC_WARN_UNUSED_VARIABLE = YES;
494-
IPHONEOS_DEPLOYMENT_TARGET = 10.2;
494+
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
495495
MTL_ENABLE_DEBUG_INFO = NO;
496496
SDKROOT = iphoneos;
497497
TARGETED_DEVICE_FAMILY = "1,2";

ios/Runner/GeneratedPluginRegistrant.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
@import foundation_fluttify;
7777
#endif
7878

79-
#if __has_include(<image_cropper/ImageCropperPlugin.h>)
80-
#import <image_cropper/ImageCropperPlugin.h>
79+
#if __has_include(<image_cropper/FLTImageCropperPlugin.h>)
80+
#import <image_cropper/FLTImageCropperPlugin.h>
8181
#else
8282
@import image_cropper;
8383
#endif

lib/article/db/article_provider.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import 'package:flutter_app/utils/database.dart';
1+
import 'dart:async';
2+
23
import 'package:flutter_app/bean/article.dart';
4+
import 'package:flutter_app/utils/database.dart';
35
import 'package:sqflite/sqflite.dart';
4-
import 'package:quiver/strings.dart' as strings;
5-
6-
import 'dart:async';
76

87
class ArticleProvider extends BaseDBProvider {
98
/// DataBase table name
@@ -46,7 +45,7 @@ class ArticleProvider extends BaseDBProvider {
4645

4746
Future<int> insertOrReplaceToDB(Article article) async {
4847
String date = article?.curr;
49-
if (article == null || strings.isEmpty(date) == null) return null;
48+
if (article == null || date.isEmpty) return null;
5049
Database db = await getDB();
5150
bool provider = await isCollection(date);
5251
Map<String, dynamic> map = article.toMap();

lib/baixing_life/db/goods_provider.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import 'package:flutter_app/bean/baixing.dart';
22
import 'package:flutter_app/utils/database.dart';
33
import 'package:sqflite/sqflite.dart';
4-
import 'package:quiver/strings.dart' as strings;
54

65
class GoodsProvider extends BaseDBProvider {
76
/// DataBase table name
@@ -80,7 +79,7 @@ class GoodsProvider extends BaseDBProvider {
8079

8180
Future<int> insertOrReplaceToDB(Goods goods) async {
8281
String goodsId = goods?.goodsId;
83-
if (goods == null || strings.isEmpty(goodsId) == null) return null;
82+
if (goods == null || goodsId.isEmpty) return null;
8483
Database db = await getDB();
8584
Map<String, dynamic> map = goods.toMap();
8685
if (await isExist(goodsId)) {

0 commit comments

Comments
 (0)