Skip to content

Commit b376f08

Browse files
committed
[chat][demo]Resolving demo compilation issues.
1 parent 40a81aa commit b376f08

3 files changed

Lines changed: 46 additions & 1 deletion

File tree

chat/demo/android/app/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ android {
3232
targetSdk = 33
3333
versionCode = flutter.versionCode
3434
versionName = flutter.versionName
35+
manifestPlaceholders = [
36+
"VIVO_APPID" : "",
37+
"VIVO_APPKEY": "",
38+
"HONOR_APPID": "",
39+
]
3540
}
3641

3742
buildTypes {
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"project_info": {
3+
"project_number": "",
4+
"firebase_url": "",
5+
"project_id": "",
6+
"storage_bucket": ""
7+
},
8+
"client": [
9+
{
10+
"client_info": {
11+
"mobilesdk_app_id": "1:791251993264:android:c2fafda64119338e",
12+
"android_client_info": {
13+
"package_name": "com.tencent.qcloud.tim.tuikit"
14+
}
15+
},
16+
"oauth_client": [
17+
{
18+
"client_id": "",
19+
"client_type": 3
20+
}
21+
],
22+
"api_key": [
23+
{
24+
"current_key": ""
25+
}
26+
],
27+
"services": {
28+
"appinvite_service": {
29+
"other_platform_oauth_client": [
30+
{
31+
"client_id": "",
32+
"client_type": 3
33+
}
34+
]
35+
}
36+
}
37+
}
38+
],
39+
"configuration_version": "1"
40+
}

chat/demo/lib/login_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class LoginInfoState extends ChangeNotifier {
7575
}
7676

7777
Future<bool> logout() async {
78-
if (CallParticipantStore.shared.state.selfInfo.value.status == CallParticipantStatus.accept) {
78+
if (CallStore.shared.state.selfInfo.value.status == CallParticipantStatus.accept) {
7979
await CallStore.shared.hangup();
8080
}
8181
final result = await LoginStore.shared.logout();

0 commit comments

Comments
 (0)