Skip to content

Commit 4f47816

Browse files
0.9.0
1 parent 1048dc1 commit 4f47816

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.9.0 (28/10/2021)
2+
3+
### Enhancements
4+
* Introducing self-service via bots on the SDK. Bots built using the Unified Bot Builder will now be accessible on the SDK too. Learn more about the capability [here](https://support.freshchat.com/en/support/solutions/articles/50000003778-bots-on-freshdesk-messaging-mobile-sdk).
5+
* Toggle in init method for show/hide notification banner when app is in foreground - iOS
6+
17
## 0.8.1 (07/08/2021)
28

39
### Bug Fix

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ android {
3535

3636
dependencies {
3737
implementation 'com.android.support:localbroadcastmanager:28.0.0'
38-
implementation 'com.github.freshdesk:freshchat-android:4.3.5'
38+
implementation 'com.github.freshdesk:freshchat-android:5.0.0'
3939
}
4040

4141

ios/Classes/FreshchatSdkPlugin.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ - (void)init:(FlutterMethodCall*)call{
3333
freshchatConfig.gallerySelectionEnabled = [call.arguments[@"gallerySelectionEnabled"]boolValue];
3434
freshchatConfig.eventsUploadEnabled = [call.arguments[@"userEventsTrackingEnabled"]boolValue];
3535
freshchatConfig.errorLogsEnabled = [call.arguments[@"errorLogsEnabled"]boolValue];
36+
freshchatConfig.showNotificationBanner = [call.arguments[@"showNotificationBanneriOS"]boolValue];
3637
NSString* stringsBundle = call.arguments[@"stringsBundle"];
3738
NSString* themeName = call.arguments[@"themeName"];
3839
if(![themeName isEqual:[NSNull null]]) {

ios/freshchat_sdk.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A new flutter plugin project.
1717
s.public_header_files = 'Classes/**/*.h'
1818
s.dependency 'Flutter'
1919
s.platform = :ios
20-
s.dependency "FreshchatSDK", '4.2.0'
20+
s.dependency "FreshchatSDK", '5.0.0'
2121

2222
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
2323
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }

lib/freshchat_sdk.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ class Freshchat {
144144
bool userEventsTrackingEnabled = true,
145145
String? stringsBundle,
146146
String? themeName,
147-
bool errorLogsEnabled = true}) async {
147+
bool errorLogsEnabled = true,
148+
bool showNotificationBanneriOS = true}) async {
148149
await _channel.invokeMethod('init', <String, dynamic>{
149150
'appId': appId,
150151
'appKey': appKey,
@@ -156,7 +157,8 @@ class Freshchat {
156157
'userEventsTrackingEnabled': userEventsTrackingEnabled,
157158
'stringsBundle': stringsBundle,
158159
'themeName': themeName,
159-
'errorLogsEnabled': errorLogsEnabled
160+
'errorLogsEnabled': errorLogsEnabled,
161+
'showNotificationBanneriOS': showNotificationBanneriOS
160162
});
161163
}
162164

@@ -222,7 +224,7 @@ class Freshchat {
222224
final String sdkVersion = await _channel.invokeMethod('getSdkVersion');
223225
final String operatingSystem = Platform.operatingSystem;
224226
// As there is no simple way to get current freshchat flutter sdk version, we are hardcoding here.
225-
final String allSdkVersion = "flutter-0.8.1-$operatingSystem-$sdkVersion ";
227+
final String allSdkVersion = "flutter-0.9.0-$operatingSystem-$sdkVersion ";
226228
return allSdkVersion;
227229
}
228230

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Freshchat is a modern messaging software for sales and customer eng
33
repository: https://github.com/freshworks/freshchat-flutter-sdk
44

55
# Whenever this version is updated, it must also be updated in Freshchat::getSdkVersion()
6-
version: 0.8.1
6+
version: 0.9.0
77
homepage: https://freshchat.com
88

99
environment:

0 commit comments

Comments
 (0)