Skip to content

Commit f6ac03f

Browse files
Merge pull request #49 from cometchat-pro/dev
Dev
2 parents a6a38fe + acc57a9 commit f6ac03f

File tree

6 files changed

+21
-13
lines changed

6 files changed

+21
-13
lines changed

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
</p>
66
</div>
77
</div>
8+
</br></br>
9+
10+
> **Note**
11+
12+
Version 4 CometChat UI Kits
13+
14+
We’ve introduced a major update to CometChat UI kits. Version 4 features a modular architecture that gives you enhanced flexibility to build and customize your web and mobile apps. Please switch to the branch [v4](https://github.com/cometchat-pro/cometchat-chat-sample-app-android-java/tree/v4) to check out the sample app based on this version. [Visit our documentation](https://www.cometchat.com/docs/android-v4-uikit/overview) to read more about this.
15+
<br/><br/>
816

917
# Android Java Chat App
1018

@@ -27,7 +35,7 @@ CometChat Kitchen Sink Sample App (built using CometChat UIKit) is a fully funct
2735
Before you begin, ensure you have met the following requirements:<br/>
2836
&nbsp; You have `Android Studio` installed in your machine.<br/>
2937
&nbsp; You have a `Android Device or Emulator` with Android Version 6.0 or above.<br/>
30-
&nbsp; You have read [CometChat Key Concepts](https://prodocs.cometchat.com/v2.1/docs/concepts).<br/>
38+
&nbsp; You have read [CometChat Key Concepts](https://www.cometchat.com/docs/java-chat-ui-kit/key-concepts).<br/>
3139

3240
<hr/>
3341

@@ -40,7 +48,7 @@ Simply clone the project from [android-java-chat-app](https://github.com/cometch
4048

4149
To Run to sample app you have to do the following changes by Adding **APP_ID**, **AUTH_KEY** and **REGION_CODE**
4250

43-
You can obtain your *APP_ID*, *AUTH_KEY* and *REGION_CODE* from [CometChat-Pro Dashboard](https://app.cometchat.io/)
51+
You can obtain your *APP_ID*, *AUTH_KEY* and *REGION_CODE* from [CometChat Dashboard](https://app.cometchat.com/)
4452

4553
- Open the project in Android Studio.
4654

@@ -54,17 +62,17 @@ src="https://files.readme.io/9f23df2-app_credentials.png">
5462
Build and run the Sample App.
5563
</hr>
5664

57-
# Learn more about UI-Kit
65+
# Learn more about UIKit
5866

5967
Learn more about how to integrate [UI Kit](https://github.com/cometchat-pro/android-java-chat-ui-kit/blob/master/README.md) inside your app.
6068
<br/>
6169
<hr/>
6270

6371
## Troubleshooting
6472

65-
- To read the full documentation on UI Kit integration visit our [Documentation](https://prodocs.cometchat.com/v2.1/docs/android-ui-kit) .
73+
- To read the full documentation on UI Kit integration visit our [Documentation](https://www.cometchat.com/docs/java-chat-ui-kit/overview).
6674

67-
- Facing any issues while integrating or installing the UI Kit please <a href="https://app.cometchat.io/"> connect with us via real time support present in CometChat Dashboard.</a>.
75+
- Facing any issues while integrating or installing the UI Kit please <a href="https://app.cometchat.com/"> connect with us via real time support present in CometChat Dashboard.</a>.
6876

6977
---
7078

@@ -83,7 +91,7 @@ Thanks to the following people who have contributed to this project:
8391

8492
## :mailbox: Contact
8593

86-
Contact us via real time support present in [CometChat Dashboard.](https://app.cometchat.io/)
94+
Contact us via real time support present in [CometChat Dashboard.](https://app.cometchat.com/)
8795

8896
---
8997

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ dependencies {
7676
implementation 'com.google.android.material:material:1.2.0-alpha05'
7777
implementation 'com.facebook.shimmer:shimmer:0.4.0'
7878

79-
implementation 'com.cometchat:pro-android-chat-sdk:3.0.9'
79+
implementation 'com.cometchat:pro-android-chat-sdk:3.0.16'
8080
implementation 'com.cometchat:pro-android-calls-sdk:2.2.0'
8181

8282
}

app/src/androidTest/java/com/cometchat/pro/androiduikit/utils/AvatarBorderMatcher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ protected boolean matchesSafely(View target) {
4646
return false;
4747
}
4848
CometChatAvatar avatarA = new CometChatAvatar(context);
49-
avatarA.setImageDrawable(imageView.getDrawable());
49+
avatarA.setDrawable(imageView.getDrawable());
5050
CometChatAvatar avatarB = new CometChatAvatar(context);
51-
avatarB.setImageDrawable(expectedDrawable);
51+
avatarB.setDrawable(expectedDrawable);
5252
return avatarA.getBorderWidth()==avatarB.getBorderWidth()?true:false;
5353
}
5454

uikit/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ android {
66
minSdkVersion 21
77
targetSdkVersion 32
88
versionCode 1
9-
versionName "3.0.9-4"
9+
versionName "3.0.16-1"
1010
multiDexEnabled true
1111
vectorDrawables.useSupportLibrary = true
1212
renderscriptSupportModeEnabled true
@@ -90,7 +90,7 @@ dependencies {
9090
implementation 'com.google.android.gms:play-services-location:17.0.0'
9191
implementation 'com.google.android.gms:play-services-maps:17.0.0'
9292
//cometchat
93-
implementation 'com.cometchat:pro-android-chat-sdk:3.0.9'
93+
implementation 'com.cometchat:pro-android-chat-sdk:3.0.16'
9494
implementation 'com.cometchat:pro-android-calls-sdk:2.2.0'
9595
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.0'
9696
}

uikit/src/main/java/com/cometchat/pro/uikit/ui_components/users/user_list/CometChatUserList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public void onError(CometChatException e) {
312312
* @see UsersRequest
313313
*/
314314
private void searchUser(String s) {
315-
UsersRequest usersRequest = new UsersRequest.UsersRequestBuilder().setSearchKeyword(s).setLimit(100).build();
315+
UsersRequest usersRequest = new UsersRequest.UsersRequestBuilder().friendsOnly(UIKitSettings.getUsersMode()==UserMode.FRIENDS).setSearchKeyword(s).setLimit(100).build();
316316
usersRequest.fetchNext(new CometChat.CallbackListener<List<User>>() {
317317
@Override
318318
public void onSuccess(List<User> users) {

uikit/src/main/java/com/cometchat/pro/uikit/ui_resources/utils/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ public static String getOutputMediaFile(Context context) {
674674
// String var1 = Environment.getExternalStorageDirectory() + "/" + context.getResources().getString(R.string.app_name) + "/"
675675
// + "audio/";
676676
createDirectory(dir);
677-
return dir + (new SimpleDateFormat("yyyyMMddHHmmss")).format(new Date()) + ".mp3";
677+
return dir + (new SimpleDateFormat("yyyyMMddHHmmss")).format(new Date()) + ".m4a";
678678

679679
}
680680

0 commit comments

Comments
 (0)