From ba9ca6d9a12dc3291dfe5b97983070b18879e365 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Mon, 20 Apr 2020 23:38:28 +0200 Subject: [PATCH] update llc --- example/ios/Runner.xcodeproj/project.pbxproj | 34 ++++++++++++-------- lib/src/message_widget.dart | 4 +-- lib/src/reaction_picker.dart | 9 +++--- pubspec.yaml | 3 +- 4 files changed, 29 insertions(+), 21 deletions(-) diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 7d0e7c88..141e283a 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -249,13 +249,13 @@ 0BC14C4C242B5A7A0028DE94 = { CreatedOnToolsVersion = 11.4; DevelopmentTeam = EHV7XZLAHA; - ProvisioningStyle = Automatic; + ProvisioningStyle = Manual; }; 97C146ED1CF9000F007C117D = { CreatedOnToolsVersion = 7.3.1; DevelopmentTeam = EHV7XZLAHA; LastSwiftMigration = 1100; - ProvisioningStyle = Automatic; + ProvisioningStyle = Manual; }; }; }; @@ -424,7 +424,8 @@ CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CODE_SIGN_ENTITLEMENTS = Notifications/Notifications.entitlements; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_IDENTITY = "iPhone Distribution"; + CODE_SIGN_STYLE = Manual; DEVELOPMENT_TEAM = EHV7XZLAHA; ENABLE_BITCODE = NO; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -435,6 +436,7 @@ MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = io.getstream.flutter.Notifications; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = "flutter example notifications"; SKIP_INSTALL = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -452,7 +454,8 @@ CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CODE_SIGN_ENTITLEMENTS = Notifications/Notifications.entitlements; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_IDENTITY = "iPhone Distribution"; + CODE_SIGN_STYLE = Manual; DEVELOPMENT_TEAM = EHV7XZLAHA; ENABLE_BITCODE = NO; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -462,6 +465,7 @@ MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = io.getstream.flutter.Notifications; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = "flutter example notifications"; SKIP_INSTALL = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -477,7 +481,8 @@ CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CODE_SIGN_ENTITLEMENTS = Notifications/Notifications.entitlements; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_IDENTITY = "iPhone Distribution"; + CODE_SIGN_STYLE = Manual; DEVELOPMENT_TEAM = EHV7XZLAHA; ENABLE_BITCODE = NO; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -487,6 +492,7 @@ MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = io.getstream.flutter.Notifications; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = "flutter example notifications"; SKIP_INSTALL = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -552,8 +558,8 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; - CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_IDENTITY = "iPhone Distribution"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = EHV7XZLAHA; ENABLE_BITCODE = NO; @@ -570,7 +576,7 @@ ); PRODUCT_BUNDLE_IDENTIFIER = io.getstream.flutter; PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; + PROVISIONING_PROFILE_SPECIFIER = "flutter example"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; @@ -693,8 +699,8 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; - CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_IDENTITY = "iPhone Distribution"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = EHV7XZLAHA; ENABLE_BITCODE = NO; @@ -711,7 +717,7 @@ ); PRODUCT_BUNDLE_IDENTIFIER = io.getstream.flutter; PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; + PROVISIONING_PROFILE_SPECIFIER = "flutter example"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; @@ -727,8 +733,8 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; - CODE_SIGN_IDENTITY = "Apple Development"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_IDENTITY = "iPhone Distribution"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = EHV7XZLAHA; ENABLE_BITCODE = NO; @@ -745,7 +751,7 @@ ); PRODUCT_BUNDLE_IDENTIFIER = io.getstream.flutter; PRODUCT_NAME = "$(TARGET_NAME)"; - PROVISIONING_PROFILE_SPECIFIER = ""; + PROVISIONING_PROFILE_SPECIFIER = "flutter example"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; diff --git a/lib/src/message_widget.dart b/lib/src/message_widget.dart index e95118e9..2d37a05a 100644 --- a/lib/src/message_widget.dart +++ b/lib/src/message_widget.dart @@ -599,7 +599,7 @@ class _MessageWidgetState extends State : null, textColor: Colors.white, onPressed: () { - _streamChannel.channel.sendAction(widget.message.id, { + _streamChannel.channel.sendAction(widget.message, { action.name: action.value, }); }, @@ -615,7 +615,7 @@ class _MessageWidgetState extends State child: Text('${action.text}'), color: StreamChatTheme.of(context).accentColor, onPressed: () { - _streamChannel.channel.sendAction(widget.message.id, { + _streamChannel.channel.sendAction(widget.message, { action.name: action.value, }); }, diff --git a/lib/src/reaction_picker.dart b/lib/src/reaction_picker.dart index da32857f..d24d4e18 100644 --- a/lib/src/reaction_picker.dart +++ b/lib/src/reaction_picker.dart @@ -46,7 +46,8 @@ class ReactionPicker extends StatelessWidget { ), onPressed: () { if (ownReactionIndex != -1) { - removeReaction(context, reactionType); + removeReaction( + context, message.ownReactions[ownReactionIndex]); } else { sendReaction(context, reactionType); } @@ -69,13 +70,13 @@ class ReactionPicker extends StatelessWidget { /// Add a reaction to the message void sendReaction(BuildContext context, String reactionType) { - channel.sendReaction(message.id, reactionType); + channel.sendReaction(message, reactionType); Navigator.of(context).pop(); } /// Remove a reaction from the message - void removeReaction(BuildContext context, String reactionType) { - channel.deleteReaction(message.id, reactionType); + void removeReaction(BuildContext context, Reaction reaction) { + channel.deleteReaction(message, reaction); Navigator.of(context).pop(); } } diff --git a/pubspec.yaml b/pubspec.yaml index e53248ad..09a7c642 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -20,7 +20,8 @@ dependencies: file_picker: ^1.6.3+2 image_picker: ^0.6.5 flutter_keyboard_visibility: ^2.0.0 - stream_chat: ^0.2.0-alpha+5 + stream_chat: + path: ../stream_chat_dart mime: ^0.9.6+3 visibility_detector: ^0.1.4 http_parser: ^3.1.4