ConnectyCube / android-messenger-app

Chat and voice / video calling app using ConnectyCube
https://connectycube.com
Apache License 2.0
51 stars 23 forks source link

Error Getting while login in release build #72

Closed JeetMamtora09 closed 3 years ago

JeetMamtora09 commented 3 years ago

Error Getting while login in release build
The app is getting crash as soon as i try to login in release build varient

TatankaConCube commented 3 years ago

Please, provide more details about your issue. Provide the crash log. Say, can you reproduce it on our sample?

JeetMamtora09 commented 3 years ago

As the function you are not using in your sample app so may be u cant generate it but you can ask your fellow developer to do it i am attaching the piece of code below it may help

ConnectycubeUsers.getUserByLogin(uid).performAsync(object : EntityCallback { override fun onSuccess(p0: ConnectycubeUser?, p1: Bundle?) { p0?.let { users = ArrayList() users.add(it) loginTo(it) tinyDb?.putString(RECRUITER_LOGIN_CC,it.login) //"login(Belongs to ConnectycubeUser model class in SDK)" i am getting as null else everything is fine but here only facing issue in release build only it.password="12345678" SharedPreferencesManager.getInstance(applicationContext).saveCurrentUser(it) tinyDb?.putString(RECRUITER_ID_CC,it.id.toString()) } }

override fun onError(p0: ResponseException?) {
    /*
    *
    * This condition means that user not in db so please do signup

with that user. *

})

On Wed, 28 Oct 2020 at 19:24, TatankaConCube notifications@github.com wrote:

Please, provide more details about your issue. Provide the crash log. Say, can you reproduce it on our sample?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ConnectyCube/android-messenger-app/issues/72#issuecomment-717949088, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJT35Y4MIPMMQMOYZYBYQUDSNAPCVANCNFSM4TBJESHA .

TatankaConCube commented 3 years ago

Ok, in this case please check, did you add the needed rules for proguard? I mean it config and files.

JeetMamtora09 commented 3 years ago

yes i have added it still getting the same

////////*From My App Module**\\\\ release { buildConfigField 'String', 'APPKEY', APPKEY debuggable true signingConfig signingConfigs.debugw minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-connectycube-sdk.pro' , 'proguard-gson.pro' , 'proguard-rules.pro' , 'proguard-matisse.pro' , 'proguard-glide.pro' , 'proguard-rules.pro' }

////////*From My Chat(ConnectyCube Module) Module**\\\\

release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-connectycube-sdk.pro', 'proguard-gson.pro', 'proguard-rules.pro', 'proguard-matisse.pro', 'proguard-glide.pro' }

TatankaConCube commented 3 years ago

please provide the full stack trace of your crash, as I asked before

TatankaConCube commented 3 years ago

Closing, as there was no activity for a long time.