From 37d3c7d736c6e91da07add6c9b0c912f5d77a9b4 Mon Sep 17 00:00:00 2001 From: anbarasu-v Date: Mon, 17 Jan 2022 18:32:44 +0530 Subject: [PATCH] Release v4.2.5 Release v4.2.5 --- README.md | 2 +- android/build.gradle | 3 --- .../com/zohosalesiq/reactlibrary/RNZohoSalesIQ.java | 10 ++++++++++ ios/RNZohoSalesIQ.m | 6 ++++++ ios/RNZohoSalesIQ.podspec | 2 +- package.json | 2 +- 6 files changed, 19 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9b78676..889077b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![SupportedLanguages](https://img.shields.io/badge/Platforms-iOS%20%7C%20%20Android-green.svg)](https://www.zoho.com/salesiq/help/developer-section/react-native-sdk-installation.html) [![Version](https://img.shields.io/badge/version-4.2.4-blue.svg)](https://mobilisten.io/) [![Mobilisten NPM CD](https://github.com/zoho/SalesIQ-Mobilisten-ReactNative/workflows/Mobilisten%20NPM%20CD/badge.svg)](https://github.com/zoho/SalesIQ-Mobilisten-ReactNative/actions) +[![SupportedLanguages](https://img.shields.io/badge/Platforms-iOS%20%7C%20%20Android-green.svg)](https://www.zoho.com/salesiq/help/developer-section/react-native-sdk-installation.html) [![Version](https://img.shields.io/badge/version-4.2.5-blue.svg)](https://mobilisten.io/) [![Mobilisten NPM CD](https://github.com/zoho/SalesIQ-Mobilisten-ReactNative/workflows/Mobilisten%20NPM%20CD/badge.svg)](https://github.com/zoho/SalesIQ-Mobilisten-ReactNative/actions) # React Native module for SalesIQ Mobilisten SDK diff --git a/android/build.gradle b/android/build.gradle index fc8cde5..8631ece 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,7 +1,6 @@ buildscript { repositories { jcenter() - google() } dependencies { @@ -11,7 +10,6 @@ buildscript { apply plugin: 'com.android.library' - def safeExtGet(prop, fallback) { rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback } @@ -33,7 +31,6 @@ android { repositories { mavenCentral() - google() } dependencies { diff --git a/android/src/main/java/com/zohosalesiq/reactlibrary/RNZohoSalesIQ.java b/android/src/main/java/com/zohosalesiq/reactlibrary/RNZohoSalesIQ.java index 8ef9ca9..6488b62 100644 --- a/android/src/main/java/com/zohosalesiq/reactlibrary/RNZohoSalesIQ.java +++ b/android/src/main/java/com/zohosalesiq/reactlibrary/RNZohoSalesIQ.java @@ -951,6 +951,16 @@ public void run() { }); } + @ReactMethod + public void isChatEnabled(@NonNull final Callback callback){ + Handler handler = new Handler(Looper.getMainLooper()); + handler.post(new Runnable() { + public void run() { + callback.invoke(ZohoSalesIQ.isSDKEnabled()); + } + }); + } + @ReactMethod public void addListener(String eventName) { // Keep: Required for RN built in Event Emitter Calls. diff --git a/ios/RNZohoSalesIQ.m b/ios/RNZohoSalesIQ.m index d30b066..0008ff9 100644 --- a/ios/RNZohoSalesIQ.m +++ b/ios/RNZohoSalesIQ.m @@ -782,6 +782,12 @@ + (void)handleNotificationAction: (NSDictionary *) info response:(NSString *) re [[ZohoSalesIQ Chat] setVisibility:ChatComponentScreenshotOption visible:NO]; } +RCT_EXPORT_METHOD(isChatEnabled:(RCTResponseSenderBlock)callback) +{ + NSNumber *chatEnabled = [NSNumber numberWithBool:ZohoSalesIQ.Chat.isEnabled]; + callback(@[chatEnabled]); +} + //MARK:- CHAT GET LIST API RCT_EXPORT_METHOD(getChats:(RCTResponseSenderBlock)callback) { diff --git a/ios/RNZohoSalesIQ.podspec b/ios/RNZohoSalesIQ.podspec index c51d65e..965c58f 100644 --- a/ios/RNZohoSalesIQ.podspec +++ b/ios/RNZohoSalesIQ.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "RNZohoSalesIQ" - s.version = "4.2.3" + s.version = "4.2.4" s.summary = "A React-Native module for the SalesIQ Mobilisten SDK" s.description = "A React-Native module for the SalesIQ Mobilisten SDK" s.homepage = "https://zoho.com" diff --git a/package.json b/package.json index 3ccb043..ef6a297 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-zohosalesiq-mobilisten", - "version": "4.2.4", + "version": "4.2.5", "description": "A React Native module for the ZohoSalesIQ Mobilisten SDK", "bugs": { "email": "support@zohosalesiq.com"