Skip to content

Commit a35bf3f

Browse files
Android Java UI Kit 3.0.9-1
1 parent 4bbb4f1 commit a35bf3f

File tree

151 files changed

+36221
-36138
lines changed

Some content is hidden

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

151 files changed

+36221
-36138
lines changed

README.md

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ The UI Kit is developed to keep developers in mind and aims to reduce developmen
1414

1515
[![Platform](https://img.shields.io/badge/Platform-Android-brightgreen.svg)](#)
1616
[![Platform](https://img.shields.io/badge/Language-Java-yellowgreen.svg)](#)
17-
<img src="https://img.shields.io/badge/Repo%20Size-9.26%20MB-blue" />
17+
![GitHub repo size](https://img.shields.io/github/repo-size/cometchat-pro/android-java-chat-ui-kit)
1818
![GitHub contributors](https://img.shields.io/github/contributors/cometchat-pro/android-java-chat-ui-kit)
19-
![Version](https://shields.io/badge/version-v3.0.7--1-orange)
19+
![Version](https://shields.io/badge/version-v3.0.1--1-orange)
2020
![GitHub stars](https://img.shields.io/github/stars/cometchat-pro/android-java-chat-ui-kit?style=social)
2121
![Twitter Follow](https://img.shields.io/twitter/follow/cometchat?style=social)
2222

@@ -28,7 +28,7 @@ The UI Kit is developed to keep developers in mind and aims to reduce developmen
2828
Before you begin, ensure you have met the following requirements:<br/>
2929
&nbsp; You have `Android Studio` installed in your machine.<br/>
3030
&nbsp; You have a `Android Device or Emulator` with Android Version 6.0 or above.<br/>
31-
&nbsp; You have read [CometChat Key Concepts](https://prodocs.cometchat.com/v2.1/docs/concepts).<br/>
31+
&nbsp; You have read [CometChat Key Concepts](https://prodocs.cometchat.com/docs/concepts).<br/>
3232

3333
<hr/>
3434

@@ -41,7 +41,6 @@ To setup Android Chat UI Kit, you need to first register on CometChat Dashboard
4141

4242
1. Create a new app: Click **Add App** option available → Enter App Name & other information → Create App
4343
2. You will find `APP_ID`, `AUTH_KEY` and `REGION` key at top in **QuickStart** section or else go to "API & Auth Keys" section and copy the `APP_ID`, `AUTH_KEY` and `REGION` key from the "Auth Only API Key" tab.
44-
[Credentials Sample](Screenshot/qs.jpg)
4544
<img align="center" src="https://files.readme.io/4b771c5-qs_copy.jpg"/>
4645

4746

@@ -71,12 +70,12 @@ allprojects {
7170

7271
```groovy
7372
dependencies {
74-
implementation 'com.cometchat:pro-android-chat-sdk:3.0.7'
75-
73+
implementation 'com.cometchat:pro-android-chat-sdk:3.0.9'
74+
7675
/** From v2.4+ onwards, Voice & Video Calling functionality has been
7776
moved to a separate library. In case you plan to use the calling
7877
feature, please add the Calling dependency.**/
79-
implementation 'com.cometchat:pro-android-calls-sdk:2.1.1'
78+
implementation 'com.cometchat:pro-android-calls-sdk:2.2.0'
8079
}
8180
```
8281

@@ -98,7 +97,7 @@ android {
9897
</td></table>
9998

10099
You can refer to the below link for instructions on how to do so:<br/>
101-
[📝 Add CometChat Dependency](https://prodocs.cometchat.com/v2.1/docs/android-quick-start#section-add-the-cometchat-dependency)
100+
[📝 Add CometChat Dependency](https://prodocs.cometchat.com/docs/android-quick-start#section-add-the-cometchat-dependency)
102101

103102
<hr/>
104103

@@ -173,15 +172,15 @@ String authKey = "AUTH_KEY"; // Replace with your App Auth Key
173172

174173
<hr/>
175174

176-
📝 &nbsp; Please refer to our [Developer Documentation](https://prodocs.cometchat.com/v2.1/docs/android-quick-start) for more information on how to configure the CometChat Pro SDK and implement various features using the same.
175+
📝 &nbsp; Please refer to our [Developer Documentation](https://prodocs.cometchat.com/docs/android-quick-start) for more information on how to configure the CometChat Pro SDK and implement various features using the same.
177176

178177
<hr/>
179178

180179
## Add UI Kit Library
181180

182-
1. Simply clone the project from [android-java-chat-ui-kit](https://github.com/cometchat-pro-samples/android-java-chat-uikit/) repository.
181+
1. Simply clone the project from [android-java-chat-ui-kit](https://github.com/cometchat-pro/android-java-chat-ui-kit/tree/v3) repository.
183182

184-
2. Import `uikit` Module from Module Settings.( To know how to import `uikit` as Module visit this [link](https://prodocs.cometchat.com/v2.1/docs/android-ui-kit-setup) )
183+
2. Import `uikit` Module from Module Settings.( To know how to import `uikit` as Module visit this [link](https://prodocs.cometchat.com/docs/android-ui-kit-setup) )
185184

186185
3. If the Library is added successfully, it will look like mentioned in the below image.
187186
<img align="center" width="auto" height="auto" src="https://github.com/cometchat-pro/android-chat-uikit/blob/master/Screenshot/Screen%20Shot%202019-12-23%20at%207.37.37%20PM.png">
@@ -254,6 +253,17 @@ String authKey = "AUTH_KEY"; // Replace with your App Auth Key
254253
</td></table>
255254

256255
</li>
256+
<li> Open the gradle.properties and check if the below stated line is present or not, if not then simply add it.
257+
258+
<table><td>
259+
260+
```groovy
261+
android.enableJetifier=true
262+
```
263+
264+
</td></table>
265+
266+
</li>
257267
</ul>
258268

259269
<hr/>
@@ -283,18 +293,18 @@ import com.cometchat.pro.uikit.ui_components.cometchat_ui.CometChatUI;
283293
## Checkout our sample apps
284294

285295
### Java:
286-
Visit our [Java sample app](https://github.com/cometchat-pro/android-java-chat-app) repo to run the java sample app.
296+
Visit our [Java sample app](https://github.com/cometchat-pro/android-java-chat-app/tree/v3) repo to run the java sample app.
287297

288298
### Kotlin:
289-
Visit our [Kotlin sample app](https://github.com/cometchat-pro/android-kotlin-chat-app) repo to run the kotlin sample app.
299+
Visit our [Kotlin sample app](https://github.com/cometchat-pro/android-kotlin-chat-app/tree/v3) repo to run the kotlin sample app.
290300

291301
<hr/>
292302

293303
## Troubleshooting
294304

295-
- To read the full documentation on UI Kit integration visit our [Documentation](https://prodocs.cometchat.com/v2.1/docs/android-ui-kit) .
305+
- To read the full documentation on UI Kit integration visit our [Documentation](https://prodocs.cometchat.com/docs/android-ui-kit) .
296306

297-
- 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>.
307+
- 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>.
298308

299309
---
300310

@@ -303,6 +313,7 @@ Visit our [Kotlin sample app](https://github.com/cometchat-pro/android-kotlin-ch
303313

304314
Thanks to the following people who have contributed to this project:
305315

316+
[👨‍💻 @vivekprajapati 💻](https://github.com/vivekCometChat) <br>
306317
[👨‍💻 @darshanbhanushali 💻](https://github.com/darshanbhanushali) <br>
307318
[👨‍💻 @yadavmangesh 💻](https://github.com/yadavmangesh)
308319

@@ -312,7 +323,7 @@ Thanks to the following people who have contributed to this project:
312323

313324
## :mailbox: Contact
314325

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

317328
---
318329

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99
dependencies {
1010
classpath 'com.android.tools.build:gradle:4.0.1'
11-
11+
1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files
1414
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Thu Jan 23 15:07:58 IST 2020
1+
#Tue Aug 17 02:58:03 IST 2021
22
distributionBase=GRADLE_USER_HOME
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip
34
distributionPath=wrapper/dists
4-
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
6+
zipStoreBase=GRADLE_USER_HOME

uikit/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/build
1+
/build

uikit/build.gradle

Lines changed: 96 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,96 @@
1-
apply plugin: 'com.android.library'
2-
android {
3-
compileSdkVersion 30
4-
5-
defaultConfig {
6-
minSdkVersion 21
7-
targetSdkVersion 30
8-
versionCode 1
9-
versionName "3.0.7-1"
10-
multiDexEnabled true
11-
vectorDrawables.useSupportLibrary = true
12-
renderscriptSupportModeEnabled true
13-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
14-
consumerProguardFiles 'consumer-rules.pro'
15-
16-
ndk {
17-
abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
18-
}
19-
}
20-
21-
sourceSets {
22-
main {
23-
manifest.srcFile 'src/main/AndroidManifest.xml'
24-
java.srcDirs = ['src/main/java', '.apt_generated']
25-
aidl.srcDirs = ['src/main/aidl', '.apt_generated']
26-
res.srcDirs = [
27-
'src/main/res',
28-
'src/main/res-components',
29-
'src/main/res-components/calls',
30-
'src/main/res-components/chats',
31-
'src/main/res-components/cometchatui',
32-
'src/main/res-components/groups',
33-
'src/main/res-components/messagebubbles',
34-
'src/main/res-components/messages',
35-
'src/main/res-components/others',
36-
'src/main/res-components/shared',
37-
'src/main/res-components/userprofile',
38-
'src/main/res-components/users'
39-
]
40-
}
41-
}
42-
43-
dataBinding {
44-
enabled = true
45-
}
46-
47-
compileOptions {
48-
sourceCompatibility JavaVersion.VERSION_1_8
49-
targetCompatibility JavaVersion.VERSION_1_8
50-
}
51-
52-
buildTypes {
53-
release {
54-
minifyEnabled false
55-
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
56-
}
57-
}
58-
buildToolsVersion = '28.0.3'
59-
60-
}
61-
62-
dependencies {
63-
implementation fileTree(dir: 'libs', include: ['*.jar'])
64-
65-
implementation 'androidx.appcompat:appcompat:1.1.0'
66-
implementation 'androidx.preference:preference:1.1.0'
67-
testImplementation 'junit:junit:4.12'
68-
androidTestImplementation 'androidx.test:runner:1.2.0'
69-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
70-
71-
//RecyclerView
72-
implementation 'androidx.recyclerview:recyclerview:1.0.0'
73-
74-
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
75-
76-
implementation 'androidx.emoji:emoji:1.1.0-rc01'
77-
implementation 'androidx.emoji:emoji-bundled:1.1.0'
78-
79-
implementation 'androidx.emoji:emoji-appcompat:1.0.0'
80-
implementation 'androidx.annotation:annotation:1.1.0'
81-
implementation 'com.github.bumptech.glide:glide:4.9.0'
82-
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
83-
84-
implementation 'com.google.android.material:material:1.2.0-alpha04'
85-
86-
implementation 'com.facebook.shimmer:shimmer:0.4.0'
87-
88-
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
89-
90-
implementation 'com.google.android.gms:play-services-location:17.0.0'
91-
implementation 'com.google.android.gms:play-services-maps:17.0.0'
92-
//cometchat
93-
compileOnly 'com.cometchat:pro-android-chat-sdk:3.0.7'
94-
compileOnly 'com.cometchat:pro-android-calls-sdk:2.1.2-beta8'
95-
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.0'
96-
}
1+
apply plugin: 'com.android.library'
2+
android {
3+
compileSdkVersion 30
4+
5+
defaultConfig {
6+
minSdkVersion 21
7+
targetSdkVersion 30
8+
versionCode 1
9+
versionName "3.0.9-1"
10+
multiDexEnabled true
11+
vectorDrawables.useSupportLibrary = true
12+
renderscriptSupportModeEnabled true
13+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
14+
consumerProguardFiles 'consumer-rules.pro'
15+
16+
ndk {
17+
abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
18+
}
19+
}
20+
21+
sourceSets {
22+
main {
23+
manifest.srcFile 'src/main/AndroidManifest.xml'
24+
java.srcDirs = ['src/main/java', '.apt_generated']
25+
aidl.srcDirs = ['src/main/aidl', '.apt_generated']
26+
res.srcDirs = [
27+
'src/main/res',
28+
'src/main/res-components',
29+
'src/main/res-components/calls',
30+
'src/main/res-components/chats',
31+
'src/main/res-components/cometchatui',
32+
'src/main/res-components/groups',
33+
'src/main/res-components/messagebubbles',
34+
'src/main/res-components/messages',
35+
'src/main/res-components/others',
36+
'src/main/res-components/shared',
37+
'src/main/res-components/userprofile',
38+
'src/main/res-components/users'
39+
]
40+
}
41+
}
42+
43+
dataBinding {
44+
enabled = true
45+
}
46+
47+
compileOptions {
48+
sourceCompatibility JavaVersion.VERSION_1_8
49+
targetCompatibility JavaVersion.VERSION_1_8
50+
}
51+
52+
buildTypes {
53+
release {
54+
minifyEnabled false
55+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
56+
}
57+
}
58+
buildToolsVersion = '28.0.3'
59+
60+
}
61+
62+
dependencies {
63+
implementation fileTree(dir: 'libs', include: ['*.jar'])
64+
65+
implementation 'androidx.appcompat:appcompat:1.1.0'
66+
implementation 'androidx.preference:preference:1.1.0'
67+
testImplementation 'junit:junit:4.12'
68+
androidTestImplementation 'androidx.test:runner:1.2.0'
69+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
70+
71+
//RecyclerView
72+
implementation 'androidx.recyclerview:recyclerview:1.0.0'
73+
74+
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
75+
76+
implementation 'androidx.emoji:emoji:1.1.0-rc01'
77+
implementation 'androidx.emoji:emoji-bundled:1.1.0'
78+
79+
implementation 'androidx.emoji:emoji-appcompat:1.0.0'
80+
implementation 'androidx.annotation:annotation:1.1.0'
81+
implementation 'com.github.bumptech.glide:glide:4.9.0'
82+
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
83+
84+
implementation 'com.google.android.material:material:1.2.0-alpha04'
85+
86+
implementation 'com.facebook.shimmer:shimmer:0.4.0'
87+
88+
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
89+
90+
implementation 'com.google.android.gms:play-services-location:17.0.0'
91+
implementation 'com.google.android.gms:play-services-maps:17.0.0'
92+
//cometchat
93+
compileOnly 'com.cometchat:pro-android-chat-sdk:3.0.9'
94+
compileOnly 'com.cometchat:pro-android-calls-sdk:2.2.0'
95+
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.0'
96+
}

uikit/proguard-rules.pro

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# Add project specific ProGuard rules here.
2-
# You can control the set of applied configuration files using the
3-
# proguardFiles setting in build.gradle.
4-
#
5-
# For more details, see
6-
# http://developer.android.com/guide/developing/tools/proguard.html
7-
8-
# If your project uses WebView with JS, uncomment the following
9-
# and specify the fully qualified class name to the JavaScript interface
10-
# class:
11-
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12-
# public *;
13-
#}
14-
15-
# Uncomment this to preserve the line number information for
16-
# debugging stack traces.
17-
#-keepattributes SourceFile,LineNumberTable
18-
19-
# If you keep the line number information, uncomment this to
20-
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile

0 commit comments

Comments
 (0)