diff --git a/android/build.gradle b/android/build.gradle index 6ef11e2..173e2f9 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -39,4 +39,5 @@ dependencies { api group: 'com.zendesk', name: 'chat', version: safeExtGet('zendeskChatVersion', '3.1.0') api group: 'com.zendesk', name: 'messaging', version: safeExtGet('zendeskMessagingVersion', '5.1.0') + api group: 'com.zendesk', name: 'support', version: safeExtGet('zendeskMessagingVersion', '2.3.0') } diff --git a/android/gradle/wrapper/gradle-wrapper.jar b/android/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..f6b961f Binary files /dev/null and b/android/gradle/wrapper/gradle-wrapper.jar differ diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..cafa8d0 --- /dev/null +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Thu Oct 29 18:09:13 CET 2020 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip diff --git a/android/gradlew b/android/gradlew new file mode 100644 index 0000000..cccdd3d --- /dev/null +++ b/android/gradlew @@ -0,0 +1,172 @@ +#!/usr/bin/env sh + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=$(save "$@") + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then + cd "$(dirname "$0")" +fi + +exec "$JAVACMD" "$@" diff --git a/android/gradlew.bat b/android/gradlew.bat new file mode 100644 index 0000000..e95643d --- /dev/null +++ b/android/gradlew.bat @@ -0,0 +1,84 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/android/src/main/java/com/taskrabbit/zendesk/JwtAuth.java b/android/src/main/java/com/taskrabbit/zendesk/JwtAuth.java new file mode 100644 index 0000000..4f7c2cc --- /dev/null +++ b/android/src/main/java/com/taskrabbit/zendesk/JwtAuth.java @@ -0,0 +1,82 @@ +package com.taskrabbit.zendesk; + +import org.json.JSONException; +import org.json.JSONObject; + +import java.io.IOException; + +import okhttp3.Call; +import okhttp3.Callback; +import okhttp3.MediaType; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.RequestBody; +import okhttp3.Response; +import zendesk.chat.JwtAuthenticator; + +class JwtAuth implements JwtAuthenticator { + private String alfZendeskJwtUrl; + + OkHttpClient client = new OkHttpClient(); + final MediaType JSON = MediaType.get("application/json; charset=utf-8"); + + JwtAuth(String alfZendeskJwtUrl) { + this.alfZendeskJwtUrl = alfZendeskJwtUrl; + } + + private void retrieveToken(final JwtCallback callback) throws IOException { + + RequestBody body = RequestBody.create(JSON, "{}"); + Request request = new Request.Builder() + .url(alfZendeskJwtUrl) + .post(body) + .build(); + client.newCall(request).enqueue(new Callback() { + @Override + public void onFailure( Call call, IOException e) { + e.printStackTrace(); + callback.onError(); + } + + @Override + public void onResponse( Call call, Response response) throws IOException { + String jsonData = response.body().string(); + try { + JSONObject Jobject = new JSONObject(jsonData); + String zendesk_jwt = (String) Jobject.get("jwt"); + + callback.onSuccess(zendesk_jwt); + + } catch (JSONException e) { + e.printStackTrace(); + callback.onError(); + } + } + }); + } + + @Override + public void getToken(final JwtCompletion jwtCompletion) { + try { + retrieveToken(new JwtCallback() { + @Override + public void onSuccess(String token) { + jwtCompletion.onTokenLoaded(token); + } + + @Override + public void onError() { + jwtCompletion.onError(); + } + }); + } catch (IOException e) { + e.printStackTrace(); + } + } + + interface JwtCallback { + void onSuccess(String token); + + void onError(); + } +} \ No newline at end of file diff --git a/android/src/main/java/com/taskrabbit/zendesk/RNZendeskChatModule.java b/android/src/main/java/com/taskrabbit/zendesk/RNZendeskChatModule.java index 07850f8..9fa0bfc 100644 --- a/android/src/main/java/com/taskrabbit/zendesk/RNZendeskChatModule.java +++ b/android/src/main/java/com/taskrabbit/zendesk/RNZendeskChatModule.java @@ -13,15 +13,19 @@ import com.facebook.react.bridge.WritableNativeMap; import zendesk.chat.Chat; import zendesk.chat.ChatConfiguration; +import zendesk.chat.JwtAuthenticator; import zendesk.chat.ProfileProvider; import zendesk.chat.PreChatFormFieldStatus; import zendesk.chat.ChatEngine; +import zendesk.chat.PushNotificationsProvider; import zendesk.chat.VisitorInfo; +import zendesk.core.JwtIdentity; +import zendesk.core.Zendesk; import zendesk.messaging.MessagingActivity; import zendesk.messaging.MessagingConfiguration; - import java.lang.String; import java.util.ArrayList; +import zendesk.core.Identity; public class RNZendeskChatModule extends ReactContextBaseJavaModule { private static final String TAG = "[RNZendeskChatModule]"; @@ -168,12 +172,10 @@ public void setVisitorInfo(ReadableMap options) { } @ReactMethod - public void init(String key, String appId) { - if (appId != null) { - Chat.INSTANCE.init(mReactContext, key, appId); - } else { - Chat.INSTANCE.init(mReactContext, key); - } + public void init(String key, String AlfZendeskJwtUrl) { + Chat.INSTANCE.init(mReactContext, key); + JwtAuthenticator jwtAuth = new JwtAuth(AlfZendeskJwtUrl); + Chat.INSTANCE.setIdentity(jwtAuth); Log.d(TAG, "Chat.INSTANCE was properly initialized from JS."); } @@ -192,8 +194,8 @@ private ChatConfiguration.Builder loadPreChatFormConfiguration(ChatConfiguration PreChatFormFieldStatus defaultValue = PreChatFormFieldStatus.OPTIONAL; return b.withNameFieldStatus(getFieldStatusOrDefault(options, "name", defaultValue)) .withEmailFieldStatus(getFieldStatusOrDefault(options, "email", defaultValue)) - .withPhoneFieldStatus(getFieldStatusOrDefault(options, "phone", defaultValue)) - .withDepartmentFieldStatus(getFieldStatusOrDefault(options, "department", defaultValue)); + .withPhoneFieldStatus(getFieldStatusOrDefault(options, "phone", defaultValue)); + //.withDepartmentFieldStatus(getFieldStatusOrDefault(options, "department", defaultValue)); } private void loadTags(ReadableMap options) { @@ -279,13 +281,5 @@ public void startChat(ReadableMap options) { Log.e(TAG, "Could not load getCurrentActivity -- no UI can be displayed without it."); } } - - @ReactMethod - public void registerPushToken(String token) { - PushNotificationsProvider pushProvider = Chat.INSTANCE.providers().pushNotificationProvider(); - - if (pushProvider != null) { - pushProvider.registerPushToken(token); - } - } + } diff --git a/ios/RNZendeskChat-Bridging-Header.h b/ios/RNZendeskChat-Bridging-Header.h new file mode 100644 index 0000000..1b2cb5d --- /dev/null +++ b/ios/RNZendeskChat-Bridging-Header.h @@ -0,0 +1,4 @@ +// +// Use this file to import your target's public headers that you would like to expose to Swift. +// + diff --git a/ios/RNZendeskChat.xcodeproj/project.pbxproj b/ios/RNZendeskChat.xcodeproj/project.pbxproj index 1cb6c66..bcbabc3 100644 --- a/ios/RNZendeskChat.xcodeproj/project.pbxproj +++ b/ios/RNZendeskChat.xcodeproj/project.pbxproj @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + A73FC0C42550745000B7EC05 /* jwtAuth.swift in Sources */ = {isa = PBXBuildFile; fileRef = A73FC0C32550745000B7EC05 /* jwtAuth.swift */; }; B6462ECD1C603E5C0010294B /* RNZendeskChatModule.m in Sources */ = {isa = PBXBuildFile; fileRef = B6462ECC1C603E5C0010294B /* RNZendeskChatModule.m */; }; /* End PBXBuildFile section */ @@ -23,6 +24,8 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + A73FC0C22550745000B7EC05 /* RNZendeskChat-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RNZendeskChat-Bridging-Header.h"; sourceTree = ""; }; + A73FC0C32550745000B7EC05 /* jwtAuth.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = jwtAuth.swift; sourceTree = ""; }; B6462EBF1C603E340010294B /* libRNZendeskChat.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNZendeskChat.a; sourceTree = BUILT_PRODUCTS_DIR; }; B6462ECB1C603E5C0010294B /* RNZendeskChatModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNZendeskChatModule.h; sourceTree = ""; }; B6462ECC1C603E5C0010294B /* RNZendeskChatModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNZendeskChatModule.m; sourceTree = ""; }; @@ -42,9 +45,11 @@ B6462EB61C603E340010294B = { isa = PBXGroup; children = ( + A73FC0C32550745000B7EC05 /* jwtAuth.swift */, B6462ECB1C603E5C0010294B /* RNZendeskChatModule.h */, B6462ECC1C603E5C0010294B /* RNZendeskChatModule.m */, B6462EC01C603E340010294B /* Products */, + A73FC0C22550745000B7EC05 /* RNZendeskChat-Bridging-Header.h */, ); sourceTree = ""; }; @@ -87,6 +92,7 @@ TargetAttributes = { B6462EBE1C603E340010294B = { CreatedOnToolsVersion = 7.2; + LastSwiftMigration = 1200; }; }; }; @@ -95,6 +101,7 @@ developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( + English, en, ); mainGroup = B6462EB61C603E340010294B; @@ -113,6 +120,7 @@ buildActionMask = 2147483647; files = ( B6462ECD1C603E5C0010294B /* RNZendeskChatModule.m in Sources */, + A73FC0C42550745000B7EC05 /* jwtAuth.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -202,30 +210,39 @@ B6462EC91C603E340010294B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CLANG_ENABLE_MODULES = YES; HEADER_SEARCH_PATHS = ( "$(inherited)", "$(SRCROOT)/../../../React/**", "$(SRCROOT)/../../react-native/React/**", /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, ); + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; + SWIFT_OBJC_BRIDGING_HEADER = "RNZendeskChat-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; }; name = Debug; }; B6462ECA1C603E340010294B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CLANG_ENABLE_MODULES = YES; HEADER_SEARCH_PATHS = ( "$(inherited)", "$(SRCROOT)/../../../React/**", "$(SRCROOT)/../../react-native/React/**", /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, ); + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; + SWIFT_OBJC_BRIDGING_HEADER = "RNZendeskChat-Bridging-Header.h"; + SWIFT_VERSION = 5.0; }; name = Release; }; diff --git a/ios/RNZendeskChatModule.m b/ios/RNZendeskChatModule.m index 315b4ac..8eb0b06 100644 --- a/ios/RNZendeskChatModule.m +++ b/ios/RNZendeskChatModule.m @@ -4,10 +4,8 @@ // // Created by Jean-Richard Lai on 11/23/15. // - - +#import "ZDKJWTAuth.h" #import "RNZendeskChatModule.h" - #import #import @@ -188,11 +186,10 @@ - (void) dismissChatUI { } RCT_EXPORT_METHOD(init:(NSString *)zenDeskKey appId:(NSString *)appId) { - if (appId) { - [ZDKChat initializeWithAccountKey:zenDeskKey appId:appId queue:dispatch_get_main_queue()]; - } else { [ZDKChat initializeWithAccountKey:zenDeskKey queue:dispatch_get_main_queue()]; - } + ZDKJWTAuth *authenticator = [ZDKJWTAuth new]; + [authenticator setUrl:appId]; + [ZDKChat.instance setIdentityWithAuthenticator:authenticator]; } RCT_EXPORT_METHOD(registerPushToken:(NSString *)token) { diff --git a/ios/ZDKJWTAuth.h b/ios/ZDKJWTAuth.h new file mode 100644 index 0000000..614ed31 --- /dev/null +++ b/ios/ZDKJWTAuth.h @@ -0,0 +1,14 @@ +#import +#import +#import + +@interface ZDKJWTAuth: NSObject + +{ + NSString *AlfUrl; +} + +- (void)setUrl:(NSString *_Nullable) urlString; +- (void)getToken:(void (^ _Nonnull)(NSString * _Nullable, NSError * _Nullable))completion; + +@end diff --git a/ios/ZDKJWTAuth.m b/ios/ZDKJWTAuth.m new file mode 100644 index 0000000..bc2da06 --- /dev/null +++ b/ios/ZDKJWTAuth.m @@ -0,0 +1,35 @@ +#import "ZDKJWTAuth.h" + +@implementation ZDKJWTAuth + +-(void)setUrl:(NSString *)urlString{ + AlfUrl=urlString; +} + +- (void)getToken:(void (^ _Nonnull)(NSString * _Nullable, NSError * _Nullable))completion { + NSError *error; + + NSURL *url = [NSURL URLWithString:AlfUrl]; + + NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; + + [request setHTTPMethod:@"POST"]; + + [request setURL:url]; + + [request addValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; + + + NSData *postData = NULL; + + [request setHTTPBody:postData]; + + NSData *finalDataToDisplay = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:&error]; + + NSMutableDictionary *abc = [NSJSONSerialization JSONObjectWithData: finalDataToDisplay + options: NSJSONReadingMutableContainers + error: &error]; + completion(abc[@"jwt"],NULL); +} + +@end diff --git a/package.json b/package.json index fb9d34c..74e8e6f 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "types": "RNZendeskChat.d.ts", "repository": { "type": "git", - "url": "https://github.com/taskrabbit/react-native-zendesk-chat" + "url": "https://github.com/tinni95/react-native-zendesk-chat" }, "scripts": { "prettier": "prettier",