From e44f593d72189f0d9336e1c30241aa3aa5ea9007 Mon Sep 17 00:00:00 2001 From: wuyize Date: Tue, 10 Dec 2019 15:11:13 +0800 Subject: [PATCH 1/7] madd the jpush --- README.md | 2 +- lib/config/config.dart | 2 +- lib/page/component/chat/chat_home.dart | 8 ++++---- lib/page/index/index.dart | 2 +- pubspec.lock | 16 ++++++++-------- pubspec.yaml | 2 +- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ecd0b06..22c1d1f 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ flutter 社交app Updated 3 minutes ago 主要用于研究flutter常用packages 因为项目中引用了一些外部package,有些package版本上有冲突,我对这些package做了手动修改。clone下去后,跑不起来的。
项目根目录下有个lib.zip,解压后可以得到这些package,复制到自己电脑,如:D:\soft\flutter\\.pub-cache\hosted\pub.flutter-io.cn\路径下就可以了。D:\soft\flutter\为你电脑对应的flutter sdk位置。
-项目版本为flutter1.2.1,如果你的flutter版本为1.5+,chat_home中有两个方法需要稍微修改一下。如果不想改,可以先注释掉报错代码,然后运行
+项目版本为flutter1.2.1,如果你的flutter版本为1.5.4,chat_home中有两个方法(onLongPressDragUp,onLongPressDragStart)需要稍微修改一下。如果不想改,可以先注释掉报错代码,然后运行
语音存储用的OSS,项目中没有提供OSS的密钥。若要使用语音功能,请修改相关OSS配置为自己的OSS配置。
diff --git a/lib/config/config.dart b/lib/config/config.dart index 0eea8ae..6d835eb 100755 --- a/lib/config/config.dart +++ b/lib/config/config.dart @@ -1,6 +1,6 @@ class Config { String host = "http://ddz.so-what.cc"; - int version = 10; + int version = 11; String ossKey = '6f9UuyAgFQnJaT3C3YoJKZaAoWMfyM'; // String host = "http://so-what.nat123.cc"; } diff --git a/lib/page/component/chat/chat_home.dart b/lib/page/component/chat/chat_home.dart index 2054947..1de753b 100644 --- a/lib/page/component/chat/chat_home.dart +++ b/lib/page/component/chat/chat_home.dart @@ -690,9 +690,9 @@ class _ChatHomeState extends State { mainAxisAlignment: MainAxisAlignment.center, children: [ GestureDetector( -// onLongPressDragUp: (r) { + onLongPressDragUp: (r) { //flutter sdk 1.2.1 - onLongPressUp: () {// flutter sdk 1.54 +// onLongPressUp: () {// flutter sdk 1.54 _endTime = DateTime.now().millisecondsSinceEpoch; print(_endTime); print(_endTime - _startTime); @@ -703,9 +703,9 @@ class _ChatHomeState extends State { // Navigator.pop(context); // if (_ctXl1 != null) _ctXl1.cancel(); }, -// onLongPressDragStart: (r) { + onLongPressDragStart: (r) { // flutter sdk 1.2.1 - onLongPressStart: (r) {// flutter sdk 1.5.4 +// onLongPressStart: (r) {// flutter sdk 1.5.4 _startTime = DateTime.now().millisecondsSinceEpoch; print(_startTime); this.startRecorder(); diff --git a/lib/page/index/index.dart b/lib/page/index/index.dart index 649b2ed..5c8ba90 100755 --- a/lib/page/index/index.dart +++ b/lib/page/index/index.dart @@ -119,7 +119,7 @@ class IndexState extends State with WidgetsBindingObserver { _idAndToken() async { _id = await LocalStorage().get("userId"); - initPlatformState(_id); +// initPlatformState(_id); _token = await LocalStorage().get("token"); } diff --git a/pubspec.lock b/pubspec.lock index ef5e628..1142798 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.flutter-io.cn" source: hosted - version: "2.1.0" + version: "2.0.8" barcode_scan: dependency: "direct main" description: @@ -173,7 +173,7 @@ packages: name: matcher url: "https://pub.flutter-io.cn" source: hosted - version: "0.12.5" + version: "0.12.3+1" meta: dependency: transitive description: @@ -215,7 +215,7 @@ packages: name: pedantic url: "https://pub.flutter-io.cn" source: hosted - version: "1.5.0" + version: "1.4.0" platform: dependency: transitive description: @@ -229,7 +229,7 @@ packages: name: quiver url: "https://pub.flutter-io.cn" source: hosted - version: "2.0.2" + version: "2.0.1" shared_preferences: dependency: "direct main" description: @@ -255,7 +255,7 @@ packages: name: source_span url: "https://pub.flutter-io.cn" source: hosted - version: "1.5.5" + version: "1.5.4" stack_trace: dependency: transitive description: @@ -269,7 +269,7 @@ packages: name: stream_channel url: "https://pub.flutter-io.cn" source: hosted - version: "2.0.0" + version: "1.6.8" string_scanner: dependency: transitive description: @@ -297,7 +297,7 @@ packages: name: test_api url: "https://pub.flutter-io.cn" source: hosted - version: "0.2.4" + version: "0.2.2" typed_data: dependency: transitive description: @@ -327,5 +327,5 @@ packages: source: hosted version: "0.1.4" sdks: - dart: ">=2.2.0 <3.0.0" + dart: ">=2.1.0 <3.0.0" flutter: ">=0.1.4 <2.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index d4484e5..612fa4c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: flutter_wyz description: A new Flutter application. -version: 1.1.0+1 +version: 1.1.1+1 environment: sdk: ">=2.1.0 <3.0.0" From f7870d7134d38bf52f40466bcf0a1cbda3eac9c8 Mon Sep 17 00:00:00 2001 From: wuyize Date: Tue, 10 Dec 2019 15:18:29 +0800 Subject: [PATCH 2/7] change the check vesion code --- lib/page/version/version.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/page/version/version.dart b/lib/page/version/version.dart index 8c62f25..68a2512 100755 --- a/lib/page/version/version.dart +++ b/lib/page/version/version.dart @@ -36,7 +36,7 @@ class _VersionState extends State with SingleTickerProviderStateMixin { } _ctXlGx() async { checkVersion(); - _ctXl = Timer.periodic(new Duration(milliseconds: 3000), (timer) { + _ctXl = Timer.periodic(new Duration(milliseconds: 6000), (timer) { checkVersion(); }); } @@ -190,6 +190,7 @@ class _VersionState extends State with SingleTickerProviderStateMixin { // print(version); if (Config().version < result) { choiceUpdate(context); + _ctXl.cancel(); } else { if (_a_status) Navigator.of(context).pushAndRemoveUntil( From 0cba09962363802e33d4bc15d2646a26ab157624 Mon Sep 17 00:00:00 2001 From: wuyize Date: Tue, 10 Dec 2019 15:34:48 +0800 Subject: [PATCH 3/7] change the android sign key --- android/key.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/key.properties b/android/key.properties index 6f61539..66d0581 100644 --- a/android/key.properties +++ b/android/key.properties @@ -1,4 +1,4 @@ storePassword=psoxsk4855 keyPassword=psoxsk4855 keyAlias=key -storeFile=/Users/wuyasuze/AndroidStudioProjects/flutter_demo/flutter_wyz/key.jks \ No newline at end of file +storeFile=e:/flutterWorkSpace/flutter_app/key.jks \ No newline at end of file From fc908e5a24ae88ff5b969b45ec867cc2840c40f3 Mon Sep 17 00:00:00 2001 From: wuyize Date: Tue, 10 Dec 2019 16:09:12 +0800 Subject: [PATCH 4/7] x --- android/key.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/key.properties b/android/key.properties index 66d0581..5650b45 100644 --- a/android/key.properties +++ b/android/key.properties @@ -1,4 +1,4 @@ storePassword=psoxsk4855 keyPassword=psoxsk4855 keyAlias=key -storeFile=e:/flutterWorkSpace/flutter_app/key.jks \ No newline at end of file +storeFile=E:/flutterWorkSpace/flutter-app/key.jks \ No newline at end of file From fe432e54adf6b4e0817e0cd211ba4effee687dea Mon Sep 17 00:00:00 2001 From: Zocoo <815769472@qq.com> Date: Fri, 13 Mar 2020 13:00:01 +0800 Subject: [PATCH 5/7] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 22c1d1f..e88da3c 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,9 @@ flutter 社交app Updated 3 minutes ago 主要用于研究flutter常用packages 项目中的api都可以随便调用,如果觉得我ui不好看的,可以利用这些api自己重新写一个app。如果有什么更多的功能需求,需要新api,简单,好实现那种,可以qq联系我,815769472。加好友时说明来意。
+用户系统和我另外一个app《智能管家》用的一个,那个app注册了,这里可以直接登录。
+- [智能管家项目地址](https://www.github.com/zocoo/znjjwyz) + 安卓下载尝试请扫码
![安卓apk](https://assets-store-cdn.48lu.cn/assets-store/6f5a3202c72d3aeaecb667395432b842.png?x-oss-process=image/resize,m_lfit,h_800,w_800) From 174059ea9e6f3278c85f0c8190db331339f54e20 Mon Sep 17 00:00:00 2001 From: Zocoo <815769472@qq.com> Date: Fri, 5 Jun 2020 17:55:55 +0800 Subject: [PATCH 6/7] Update chat_home.dart --- lib/page/component/chat/chat_home.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/page/component/chat/chat_home.dart b/lib/page/component/chat/chat_home.dart index 1de753b..38804b1 100644 --- a/lib/page/component/chat/chat_home.dart +++ b/lib/page/component/chat/chat_home.dart @@ -1732,7 +1732,7 @@ class _ChatHomeState extends State { 'Filename': _startTime.toString() + ".m4a", 'key': "m4a/" + _startTime.toString() + ".m4a", 'policy': policy_base64, - 'OSSAccessKeyId': "LTAIltvRb1U8UUiC", + 'OSSAccessKeyId': "LTAIlAtvRDDADDb1U8UUiC", 'success_action_status': '200', //让服务端返回200,不然,默认会返回204 'signature': signature, 'file': new UploadFileInfo(file, "imageFileName") From 978fa83cdbf0cd7d210085ca3d94ae0258903c44 Mon Sep 17 00:00:00 2001 From: Zocoo <815769472@qq.com> Date: Fri, 5 Jun 2020 17:56:35 +0800 Subject: [PATCH 7/7] a a --- lib/config/config.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/config.dart b/lib/config/config.dart index 6d835eb..8ee6f54 100755 --- a/lib/config/config.dart +++ b/lib/config/config.dart @@ -1,6 +1,6 @@ class Config { String host = "http://ddz.so-what.cc"; int version = 11; - String ossKey = '6f9UuyAgFQnJaT3C3YoJKZaAoWMfyM'; + String ossKey = '6f9UuyAgFQfsfnJaffT3C3aYoJ'; // String host = "http://so-what.nat123.cc"; }