Skip to content

Commit

Permalink
1.8.0-ui-kit
Browse files Browse the repository at this point in the history
  • Loading branch information
vdovbnya-qb committed Oct 30, 2023
1 parent 5b56aff commit cbbcaca
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions android-ui-kit-sample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ android {
minSdk 21
targetSdk 33
versionCode 1
versionName "1.7.0"
versionName "1.8.0"
}

buildTypes {
Expand Down Expand Up @@ -40,7 +40,7 @@ android {
}

dependencies {
implementation "com.quickblox:android-ui-kit:0.4.0"
implementation "com.quickblox:android-ui-kit:0.5.0"

implementation 'com.quickblox:quickblox-android-sdk-messages:4.1.1'
implementation 'com.quickblox:quickblox-android-sdk-chat:4.1.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import androidx.appcompat.app.AppCompatActivity
import com.example.android_ui_kit_sample.databinding.ActivityLoginBinding
import com.quickblox.android_ui_kit.QuickBloxUiKit
import com.quickblox.android_ui_kit.presentation.screens.dialogs.DialogsActivity
import com.quickblox.android_ui_kit.presentation.theme.DarkUiKitTheme
import com.quickblox.android_ui_kit.presentation.theme.UiKitTheme
import com.quickblox.core.QBEntityCallback
import com.quickblox.core.exception.QBResponseException
Expand All @@ -32,7 +31,7 @@ class LoginActivity : AppCompatActivity() {
binding = ActivityLoginBinding.inflate(layoutInflater)
setContentView(binding.root)

setThemeQBUiKit(DarkUiKitTheme())
// setThemeQBUiKit(DarkUiKitTheme())

loginClickListener()
signupClickListener()
Expand All @@ -59,7 +58,9 @@ class LoginActivity : AppCompatActivity() {
override fun onSuccess(user: QBUser?, bundle: Bundle?) {
binding.progressBar.visibility = View.GONE
binding.btnLogin.isEnabled = true
initAndShowQBUiKit()
initQBUiKit()

showQBUiKit()
}

override fun onError(exception: QBResponseException) {
Expand Down Expand Up @@ -96,8 +97,11 @@ class LoginActivity : AppCompatActivity() {
return user
}

private fun initAndShowQBUiKit() {
private fun initQBUiKit() {
QuickBloxUiKit.init(applicationContext)
}

private fun showQBUiKit() {
DialogsActivity.show(this)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ class SignUpActivity : AppCompatActivity() {
QBUsers.signIn(user).performAsync(object : QBEntityCallback<QBUser> {
override fun onSuccess(user: QBUser?, bundle: Bundle?) {
binding.btnSignUp.isEnabled = true
initAndShowQBUiKit()
initQBUiKit()
showQBUiKit()

finish()
}

Expand All @@ -105,8 +107,11 @@ class SignUpActivity : AppCompatActivity() {
})
}

private fun initAndShowQBUiKit() {
private fun initQBUiKit() {
QuickBloxUiKit.init(applicationContext)
}

private fun showQBUiKit() {
DialogsActivity.show(this)
}

Expand Down

0 comments on commit cbbcaca

Please sign in to comment.