support OpenCustomerServiceChat on android

This commit is contained in:
JarvanMo
2021-08-14 08:48:55 +08:00
parent 0847ebd607
commit 1b7ff6e99d
4 changed files with 17 additions and 14 deletions

View File

@ -2,15 +2,14 @@ group 'com.jarvan.fluwx'
version '1.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.4.10'
ext.kotlin_version = '1.5.21'
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.android.tools.build:gradle:4.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
@ -18,7 +17,6 @@ buildscript {
rootProject.allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
@ -44,11 +42,11 @@ android {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.7.4'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'top.zibin:Luban:1.1.8'
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
testImplementation 'junit:junit:4.12'
api 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.7.9'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.1'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'id.zelory:compressor:3.0.1'
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
testImplementation 'junit:junit:4.13.2'
}

View File

@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.6.1"
boolean_selector:
dependency: transitive
description:
@ -73,7 +73,7 @@ packages:
path: ".."
relative: true
source: path
version: "3.4.2"
version: "3.5.1"
matcher:
dependency: transitive
description:

View File

@ -258,3 +258,8 @@ Future<bool> authWeChatByPhoneLogin(
return await _channel
.invokeMethod("authByPhoneLogin", {"scope": scope, "state": state});
}
Future<bool> openWeChatCustomerServiceChat({required String url, required String corpId}) async {
return await _channel
.invokeMethod("openWeChatCustomerServiceChat", {"corpId": url, "url": url});
}

View File

@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.6.1"
boolean_selector:
dependency: transitive
description: