Skip to content

Commit

Permalink
Android Java UI Kit 3.0.9-1
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekCometChat committed Aug 9, 2022
1 parent 4bbb4f1 commit a35bf3f
Show file tree
Hide file tree
Showing 151 changed files with 36,221 additions and 36,138 deletions.
43 changes: 27 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ The UI Kit is developed to keep developers in mind and aims to reduce developmen

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

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

<hr/>

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

1. Create a new app: Click **Add App** option available → Enter App Name & other information → Create App
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.
[Credentials Sample](Screenshot/qs.jpg)
<img align="center" src="https://files.readme.io/4b771c5-qs_copy.jpg"/>


Expand Down Expand Up @@ -71,12 +70,12 @@ allprojects {

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

Expand All @@ -98,7 +97,7 @@ android {
</td></table>

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

<hr/>

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

<hr/>

📝 &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.
📝 &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.

<hr/>

## Add UI Kit Library

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

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) )
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) )

3. If the Library is added successfully, it will look like mentioned in the below image.
<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">
Expand Down Expand Up @@ -254,6 +253,17 @@ String authKey = "AUTH_KEY"; // Replace with your App Auth Key
</td></table>

</li>
<li> Open the gradle.properties and check if the below stated line is present or not, if not then simply add it.

<table><td>

```groovy
android.enableJetifier=true
```

</td></table>

</li>
</ul>

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

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

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

<hr/>

## Troubleshooting

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

- 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>.
- 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>.

---

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

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

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

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

## :mailbox: Contact

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

---

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Jan 23 15:07:58 IST 2020
#Tue Aug 17 02:58:03 IST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
zipStoreBase=GRADLE_USER_HOME
2 changes: 1 addition & 1 deletion uikit/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/build
/build
192 changes: 96 additions & 96 deletions uikit/build.gradle
Original file line number Diff line number Diff line change
@@ -1,96 +1,96 @@
apply plugin: 'com.android.library'
android {
compileSdkVersion 30

defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "3.0.7-1"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
renderscriptSupportModeEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'

ndk {
abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
}
}

sourceSets {
main {
manifest.srcFile 'src/main/AndroidManifest.xml'
java.srcDirs = ['src/main/java', '.apt_generated']
aidl.srcDirs = ['src/main/aidl', '.apt_generated']
res.srcDirs = [
'src/main/res',
'src/main/res-components',
'src/main/res-components/calls',
'src/main/res-components/chats',
'src/main/res-components/cometchatui',
'src/main/res-components/groups',
'src/main/res-components/messagebubbles',
'src/main/res-components/messages',
'src/main/res-components/others',
'src/main/res-components/shared',
'src/main/res-components/userprofile',
'src/main/res-components/users'
]
}
}

dataBinding {
enabled = true
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildToolsVersion = '28.0.3'

}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.preference:preference:1.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

//RecyclerView
implementation 'androidx.recyclerview:recyclerview:1.0.0'

implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

implementation 'androidx.emoji:emoji:1.1.0-rc01'
implementation 'androidx.emoji:emoji-bundled:1.1.0'

implementation 'androidx.emoji:emoji-appcompat:1.0.0'
implementation 'androidx.annotation:annotation:1.1.0'
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'

implementation 'com.google.android.material:material:1.2.0-alpha04'

implementation 'com.facebook.shimmer:shimmer:0.4.0'

implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'

implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
//cometchat
compileOnly 'com.cometchat:pro-android-chat-sdk:3.0.7'
compileOnly 'com.cometchat:pro-android-calls-sdk:2.1.2-beta8'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.0'
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 30

defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "3.0.9-1"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
renderscriptSupportModeEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'

ndk {
abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
}
}

sourceSets {
main {
manifest.srcFile 'src/main/AndroidManifest.xml'
java.srcDirs = ['src/main/java', '.apt_generated']
aidl.srcDirs = ['src/main/aidl', '.apt_generated']
res.srcDirs = [
'src/main/res',
'src/main/res-components',
'src/main/res-components/calls',
'src/main/res-components/chats',
'src/main/res-components/cometchatui',
'src/main/res-components/groups',
'src/main/res-components/messagebubbles',
'src/main/res-components/messages',
'src/main/res-components/others',
'src/main/res-components/shared',
'src/main/res-components/userprofile',
'src/main/res-components/users'
]
}
}

dataBinding {
enabled = true
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildToolsVersion = '28.0.3'

}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.preference:preference:1.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

//RecyclerView
implementation 'androidx.recyclerview:recyclerview:1.0.0'

implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

implementation 'androidx.emoji:emoji:1.1.0-rc01'
implementation 'androidx.emoji:emoji-bundled:1.1.0'

implementation 'androidx.emoji:emoji-appcompat:1.0.0'
implementation 'androidx.annotation:annotation:1.1.0'
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'

implementation 'com.google.android.material:material:1.2.0-alpha04'

implementation 'com.facebook.shimmer:shimmer:0.4.0'

implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'

implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
//cometchat
compileOnly 'com.cometchat:pro-android-chat-sdk:3.0.9'
compileOnly 'com.cometchat:pro-android-calls-sdk:2.2.0'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.0'
}
42 changes: 21 additions & 21 deletions uikit/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Loading

0 comments on commit a35bf3f

Please sign in to comment.