diff --git a/bytedesk_demo/README.md b/bytedesk_demo/README.md index fa0ddc3..d9c5fd4 100644 --- a/bytedesk_demo/README.md +++ b/bytedesk_demo/README.md @@ -1,16 +1,25 @@ -# bytedesk_demo +# 萝卜丝客服SDK -A new Flutter project. +萝卜丝(bytedesk) flutter 客服SDK ## Getting Started -This project is a starting point for a Flutter application. +### 第一步 -A few resources to get you started if this is your first Flutter project: +- [注册账号](https://www.bytedesk.com/antv/user/login) +- 获取appkey,登录后台->客服管理->渠道管理->添加应用->appkey +- 获取subDomain,也即企业号:登录后台->客服管理->客服账号->企业号 +- 获取技能组workGroupWid -- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) +### 第二步:匿名登录 -For help getting started with Flutter, view our -[online documentation](https://flutter.dev/docs), which offers tutorials, -samples, guidance on mobile development, and a full API reference. +- BytedeskKefu.anonymousLogin(appKey, subDomain); + +### 第三步:联系客服 + +- BytedeskKefu.startWorkGroupChat(context, workGroupWid, "技能组客服"); + +### 集成完毕 + + + \ No newline at end of file diff --git a/bytedesk_demo/android/.project b/bytedesk_demo/android/.project new file mode 100644 index 0000000..5d12264 --- /dev/null +++ b/bytedesk_demo/android/.project @@ -0,0 +1,28 @@ + + + android____ + Project android____ created by Buildship. + + + + + org.eclipse.buildship.core.gradleprojectbuilder + + + + + + org.eclipse.buildship.core.gradleprojectnature + + + + 1600085025760 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + + diff --git a/bytedesk_demo/android/.settings/org.eclipse.buildship.core.prefs b/bytedesk_demo/android/.settings/org.eclipse.buildship.core.prefs new file mode 100644 index 0000000..ea6a98c --- /dev/null +++ b/bytedesk_demo/android/.settings/org.eclipse.buildship.core.prefs @@ -0,0 +1,13 @@ +arguments= +auto.sync=false +build.scans.enabled=false +connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER) +connection.project.dir= +eclipse.preferences.version=1 +gradle.user.home= +java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home +jvm.arguments= +offline.mode=false +override.workspace.settings=true +show.console.view=true +show.executions.view=true diff --git a/bytedesk_demo/android/app/src/main/AndroidManifest.xml b/bytedesk_demo/android/app/src/main/AndroidManifest.xml index 1b547fc..77570a1 100644 --- a/bytedesk_demo/android/app/src/main/AndroidManifest.xml +++ b/bytedesk_demo/android/app/src/main/AndroidManifest.xml @@ -7,7 +7,7 @@ FlutterApplication and put your custom class here. --> CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) + zh_CN + CFBundleDisplayName + 萝卜丝客服Demo CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier diff --git a/bytedesk_demo/pubspec.yaml b/bytedesk_demo/pubspec.yaml index 7730cf7..1e91092 100644 --- a/bytedesk_demo/pubspec.yaml +++ b/bytedesk_demo/pubspec.yaml @@ -25,7 +25,7 @@ dependencies: sdk: flutter # https://pub.dev/packages/bytedesk_kefu - bytedesk_kefu: ^0.0.1 + bytedesk_kefu: ^0.0.2 # The following adds the Cupertino Icons font to your application.