Giter Site home page Giter Site logo

Comments (12)

skolarianer avatar skolarianer commented on June 28, 2024 1

@ravikumar-n: Try the following rules...

-dontwarn okio.**
-keep class com.google.gson.** { *; }
-keepclassmembers enum * { *; }
-keepattributes Signature
-keepattributes *Annotation*

from sunshine-conversations-android.

jugarrit avatar jugarrit commented on June 28, 2024

Is this a regression?
I am unable to reproduce the problem by simply calling ConversationActivity.show(this);
Do you think you could provide more precise steps, or even a sample app?

Thanks!

from sunshine-conversations-android.

rad182 avatar rad182 commented on June 28, 2024

@jugarrit I just added a button to call ConversationActivity.show(this); and it crashes.
I just notice it's working fine on android 5.1.0 but crashes on 4.1.1

from sunshine-conversations-android.

rad182 avatar rad182 commented on June 28, 2024

any update for this?

from sunshine-conversations-android.

jugarrit avatar jugarrit commented on June 28, 2024

Sorry! Still haven't had a chance to repro. I'll get back to you once I'm able.

from sunshine-conversations-android.

rad182 avatar rad182 commented on June 28, 2024

I can email you my repo link and maybe it will help you?

from sunshine-conversations-android.

jugarrit avatar jugarrit commented on June 28, 2024

Sure! Send it to [email protected]

from sunshine-conversations-android.

langhoangal avatar langhoangal commented on June 28, 2024

You obfuscated your code, right? The log quite similar, i don't know. But it good if you can try in debug mode to see more clearly. And (i'm not sure if i remember exactly) i think i got it before, the reason related to Gson some how.

from sunshine-conversations-android.

ravikumar-n avatar ravikumar-n commented on June 28, 2024

@jugarrit Got the same issue in production build, but when we disabled proguard and built, it works.

Project dependencies:

// Okhttp
compile 'com.squareup.okhttp3:okhttp:3.2.0'

// Gson
compile 'com.google.code.gson:gson:2.6.2'

// Smooch - Live chat
compile 'io.smooch:core:3.2.1'
compile 'io.smooch:ui:3.2.1'
compile 'com.google.android.gms:play-services-gcm:9.0.2'

The following proguard rules also doesn't help in resolving the issue:

## Smooch
-dontwarn okio.**
-keep class okio.**
-keep class com.google.gson.**

Device Info :
Dell Venue-7, Api-4.4.4

from sunshine-conversations-android.

sreejithileaf avatar sreejithileaf commented on June 28, 2024

Hi Julian,
The sample app in the git hub is working fine with Android Studio, but i'm facing some kind of issues while converting it as an eclipse project. The two things that i noticed:

  1. Used the latest jars ( core-3.2.1.jar, ui-3.2.1.jar) and run the app in a device. When called this line ConversationActivity.show(this). app crashed!

  2. Used some old versions (core-2.3.1.jar, ui-2.3.1.jar). This time crash not occurred but Showing an error message 'Could not connect to server.' Unable to send any messages.

from sunshine-conversations-android.

jugarrit avatar jugarrit commented on June 28, 2024

I will be adding proguard rules in the next release that could address this problem. I'll be closing this issue at that time and will re-open if it continues to occur.

from sunshine-conversations-android.

jugarrit avatar jugarrit commented on June 28, 2024

Just pushed a proguard fix in 4.0.5. Give it a shot!

from sunshine-conversations-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.