Skip to content

Commit 0e9f480

Browse files
committed
v5.2.2
1 parent ef988d0 commit 0e9f480

File tree

225 files changed

+9913
-1177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+9913
-1177
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ CometChat Flutter UIKit provides a pre-built user interface kit that developers
1717

1818
Dive straight into our Sample Apps to see CometChat UI Kit in action! Whether you're building a messaging app or enhancing your existing project, this sample app showcases the full potential of our Flutter UI components.
1919
- [Sample App ](sample_app#readme)
20-
- [Sample App AI Agents](ai_sample_app#readme)
2120
- [Sample App with Push Notifications](sample_app_push_notifications#readme)
2221

2322
## Prerequisites

ai_sample_app/README.md

Lines changed: 0 additions & 63 deletions
This file was deleted.

ai_sample_app/lib/app_credentials.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import 'package:ai_sample_app/prefs/shared_preferences.dart';
22
import 'package:ai_sample_app/utils/text_constants.dart';
33

44
class AppCredentials {
5-
static String _appId = "26580020f03ff346";
6-
static String _authKey = "4152b0366478871f0fa8d19a287dd6f5ed5f8eff";
7-
static String _region = "in";
5+
static String _appId = "YOUR_APP_ID";
6+
static String _authKey = "YOUR_AUTH_KEY";
7+
static String _region = "REGION";
88

99
// Getters
1010
static String get appId {

calls_uikit/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 5.0.8
2+
3+
## Enhancements
4+
- Updated `cometchat_sdk` to version `4.0.28`.
5+
- Updated `cometchat_uikit_shared` to version `5.1.3`.
6+
- Updated `cometchat_calls_sdk` to version `4.2.0`.
7+
18
## 5.0.7
29

310
## Enhancements

calls_uikit/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ android {
6161

6262
defaultConfig {
6363
minSdkVersion 24
64-
buildConfigField("String", "SDK_VERSION", "\"5.0.7\"")
64+
buildConfigField("String", "SDK_VERSION", "\"5.0.8\"")
6565
}
6666

6767
dependencies {}

calls_uikit/ios/cometchat_calls_uikit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'cometchat_calls_uikit'
7-
s.version = '5.0.7'
7+
s.version = '5.0.8'
88
s.summary = 'Flutter plugin featuring custom audio and video call widgets. Integrate seamlessly with Cometchat Chat UI Kit or use independently for streamlined development.'
99
s.description = <<-DESC
1010
A new Flutter plugin project.

calls_uikit/pubspec.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: cometchat_calls_uikit
22
description: Flutter plugin featuring custom audio and video call widgets. Integrate seamlessly with Cometchat Chat UI Kit or use independently for streamlined development.
3-
version: 5.0.7
3+
version: 5.0.8
44
homepage: https://www.cometchat.com/
55

66
environment:
@@ -12,9 +12,10 @@ dependencies:
1212
sdk: flutter
1313
intl: any
1414
get: ^4.6.5
15-
cometchat_sdk: ^4.0.27
16-
cometchat_calls_sdk: ^4.1.2
17-
cometchat_uikit_shared: ^5.1.2
15+
cometchat_sdk: ^4.0.28
16+
cometchat_calls_sdk: ^4.2.0
17+
cometchat_uikit_shared:
18+
path : ../shared_uikit
1819
flutter_svg: ^2.0.17
1920

2021
dev_dependencies:

chat_uikit/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 5.2.2
2+
3+
## Enhancements
4+
- Updated `cometchat_sdk` to version `4.0.28`.
5+
- Updated `cometchat_uikit_shared` to version `5.1.3`.
6+
7+
## Fixes
8+
- Resolved error occurred in console while using Thumbnail Generation.
9+
- Fixed issue where calls failed to join when the device was locked.
10+
111
## 5.2.1
212

313
## Fixes

chat_uikit/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ android {
6161

6262
defaultConfig {
6363
minSdkVersion 21
64-
buildConfigField("String", "SDK_VERSION", "\"5.2.1\"")
64+
buildConfigField("String", "SDK_VERSION", "\"5.2.2\"")
6565
}
6666

6767
dependencies {
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
import 'package:master_app/utils/animated_toggle.dart';
2+
import 'package:master_app/utils/background_card.dart';
3+
import 'package:flutter/material.dart';
4+
import 'package:cometchat_chat_uikit/cometchat_chat_uikit.dart';
5+
import 'package:cometchat_chat_uikit/cometchat_chat_uikit.dart' as cc;
6+
7+
class ThemeContainer extends StatelessWidget {
8+
const ThemeContainer({Key? key}) : super(key: key);
9+
10+
@override
11+
Widget build(BuildContext context) {
12+
return const BackGroundCard(
13+
title: "Theme",
14+
description:
15+
"CometChatTheme is a style applied to every component and every view in the activity or component in the UI kit",
16+
child: ThemeView());
17+
}
18+
}
19+
20+
class ThemeView extends StatefulWidget {
21+
const ThemeView({Key? key}) : super(key: key);
22+
23+
@override
24+
_ThemeViewState createState() => _ThemeViewState();
25+
}
26+
27+
class _ThemeViewState extends State<ThemeView> {
28+
final CometChatTheme _customTheme = CometChatTheme(
29+
palette: const Palette(
30+
backGroundColor: PaletteModel(dark: Colors.black, light: Colors.black),
31+
primary: PaletteModel(dark: Colors.green, light: Colors.green),
32+
secondary: PaletteModel(dark: Colors.grey, light: Colors.black),
33+
accent: PaletteModel(dark: Colors.green, light: Colors.green),
34+
success: PaletteModel(dark: Colors.green, light: Colors.green),
35+
error: PaletteModel(dark: Colors.red, light: Colors.red),
36+
),
37+
typography: cc.Typography.fromDefault());
38+
39+
40+
@override
41+
Widget build(BuildContext context) {
42+
return SizedBox(
43+
child: Column(
44+
children: [
45+
Row(
46+
mainAxisAlignment: MainAxisAlignment.spaceBetween,
47+
children: [
48+
const Text("Theme"),
49+
AnimatedToggle(
50+
values: const ["Default", "Custom"],
51+
onToggleCallback: (value) {},
52+
width: 250)
53+
],
54+
),
55+
MaterialButton(
56+
color: Colors.blue,
57+
onPressed: () {
58+
Navigator.push(
59+
context,
60+
MaterialPageRoute(
61+
builder: (context) => CometChatConversations(),
62+
),
63+
);
64+
},
65+
child: const Text(
66+
"Launch",
67+
style: TextStyle(color: Colors.white),
68+
),
69+
)
70+
],
71+
),
72+
);
73+
}
74+
}

0 commit comments

Comments
 (0)