From b3788b4f05b403b79584f8088e7a600f3bcf40fb Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Thu, 23 Jun 2022 15:47:26 -0700 Subject: [PATCH 01/27] Fix Image Width Handling --- lib/widgets/filebubble.dart | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/widgets/filebubble.dart b/lib/widgets/filebubble.dart index e44990eb..71b2ce7c 100644 --- a/lib/widgets/filebubble.dart +++ b/lib/widgets/filebubble.dart @@ -153,6 +153,7 @@ class FileBubbleState extends State { if (Provider.of(context).shouldPreview(path)) { isPreview = true; wdgDecorations = Center( + widthFactor: 1.0, child: MouseRegion( cursor: SystemMouseCursors.click, child: GestureDetector( @@ -223,7 +224,18 @@ class FileBubbleState extends State { crossAxisAlignment: fromMe ? CrossAxisAlignment.end : CrossAxisAlignment.start, mainAxisAlignment: fromMe ? MainAxisAlignment.end : MainAxisAlignment.start, mainAxisSize: MainAxisSize.min, - children: [wdgSender, isPreview ? Container() : wdgMessage, wdgDecorations, messageStatusWidget]), + children: [ + wdgSender, + isPreview + ? Container( + width: 0, + padding: EdgeInsets.zero, + margin: EdgeInsets.zero, + ) + : wdgMessage, + wdgDecorations, + messageStatusWidget + ]), )); }); } From 9c9916e7c9afb1f2aa9164feb783c74cf95a9c28 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Thu, 23 Jun 2022 15:59:25 -0700 Subject: [PATCH 02/27] max height on images --- lib/widgets/filebubble.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/widgets/filebubble.dart b/lib/widgets/filebubble.dart index 71b2ce7c..d6ccbb01 100644 --- a/lib/widgets/filebubble.dart +++ b/lib/widgets/filebubble.dart @@ -1,4 +1,5 @@ import 'dart:io'; +import 'dart:math'; import 'package:cwtch/config.dart'; import 'package:cwtch/models/contact.dart'; @@ -53,7 +54,7 @@ class FileBubbleState extends State { filterQuality: FilterQuality.medium, fit: BoxFit.scaleDown, alignment: Alignment.center, - height: MediaQuery.of(context).size.height * 0.30, + height: min(MediaQuery.of(context).size.height * 0.30, 100), isAntiAlias: false, errorBuilder: (context, error, stackTrace) { return MalformedBubble(); From bf1eece1e2e09dd3a13721b37468ca03a23d1ef1 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Thu, 23 Jun 2022 16:00:54 -0700 Subject: [PATCH 03/27] increase max image size --- lib/widgets/filebubble.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/filebubble.dart b/lib/widgets/filebubble.dart index d6ccbb01..b31a5009 100644 --- a/lib/widgets/filebubble.dart +++ b/lib/widgets/filebubble.dart @@ -54,7 +54,7 @@ class FileBubbleState extends State { filterQuality: FilterQuality.medium, fit: BoxFit.scaleDown, alignment: Alignment.center, - height: min(MediaQuery.of(context).size.height * 0.30, 100), + height: min(MediaQuery.of(context).size.height * 0.30, 150), isAntiAlias: false, errorBuilder: (context, error, stackTrace) { return MalformedBubble(); From ee9af549179cb4896a4a3036220d6fc294a9d45b Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Thu, 23 Jun 2022 16:29:08 -0700 Subject: [PATCH 04/27] adjust drone to handle new windows cert and sign more dlls --- .drone.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index dcd7eea6..e70125c0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -229,7 +229,7 @@ steps: status: [ success ] environment: pfx: - from_secret: pfx + from_secret: pfx2022_b64 pfx_pass: from_secret: pfx_pass commands: @@ -245,6 +245,8 @@ steps: - echo $Env:pfx > codesign.pfx.b64 - certutil -decode codesign.pfx.b64 codesign.pfx - signtool sign /v /fd sha256 /a /f codesign.pfx /p $Env:pfx_pass /tr http://timestamp.digicert.com $Env:releasedir\cwtch.exe + - signtool sign /v /fd sha256 /a /f codesign.pfx /p $Env:pfx_pass /tr http://timestamp.digicert.com $Env:releasedir\libCwtch.dll + - signtool sign /v /fd sha256 /a /f codesign.pfx /p $Env:pfx_pass /tr http://timestamp.digicert.com $Env:releasedir\flutter_windows.dll - copy windows\runner\resources\knot_128.ico $Env:releasedir\cwtch.ico - makensis windows\nsis\cwtch-installer.nsi - move windows\nsis\cwtch-installer.exe cwtch-installer.exe From 3a12a94a853c9ba055324a1efc5c23f000daead3 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Mon, 27 Jun 2022 12:19:42 -0700 Subject: [PATCH 05/27] 1.8.0 --- LIBCWTCH-GO-MACOS.version | 2 +- LIBCWTCH-GO.version | 2 +- pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LIBCWTCH-GO-MACOS.version b/LIBCWTCH-GO-MACOS.version index 38206807..9950f960 100644 --- a/LIBCWTCH-GO-MACOS.version +++ b/LIBCWTCH-GO-MACOS.version @@ -1 +1 @@ -2022-06-22-15-36-1.7.1-10-g231e27d \ No newline at end of file +2022-06-27-15-00-v1.8.0 \ No newline at end of file diff --git a/LIBCWTCH-GO.version b/LIBCWTCH-GO.version index 32c7c700..7cc814d4 100644 --- a/LIBCWTCH-GO.version +++ b/LIBCWTCH-GO.version @@ -1 +1 @@ -2022-06-21-22-49-1.7.1-2-gff23465 \ No newline at end of file +2022-06-27-19-01-v1.8.0 \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 377ffae7..2658a0de 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.7.1+29 +version: 1.8.0+30 environment: sdk: ">=2.15.0 <3.0.0" From 708f00f678c7e96a481d801014fa386efcae1f09 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Tue, 28 Jun 2022 13:20:29 -0700 Subject: [PATCH 06/27] android exported activity --- android/app/src/main/AndroidManifest.xml | 3 ++- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 379253be..6c9df750 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -16,7 +16,8 @@ android:theme="@style/NormalTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" - android:windowSoftInputMode="adjustResize"> + android:windowSoftInputMode="adjustResize" + android:exported="true">