Giter VIP home page Giter VIP logo

Comments (18)

Docile-Alligator avatar Docile-Alligator commented on June 3, 2024

Do I need to manually log every crash log first?

from crashy.

FunkyMuse avatar FunkyMuse commented on June 3, 2024
dependencies {
    // androidX startup for auto-init
    implementation "androidx.startup:startup-runtime:1.0.0-alpha01"

    //crashy
    implementation 'com.github.CraZyLegenD:Crashy:1.0.5'
  }

And inside your manifest

 <provider
   android:name="androidx.startup.InitializationProvider"
   android:authorities="${applicationId}.androidx-startup"
   android:exported="false"
   tools:node="merge">
       <meta-data
          android:name="com.crazylegend.crashyreporter.initializer.CrashyInitializer"
          android:value="androidx.startup" />
</provider>

Do you have that?

from crashy.

Docile-Alligator avatar Docile-Alligator commented on June 3, 2024

Yes I have that.

from crashy.

FunkyMuse avatar FunkyMuse commented on June 3, 2024

Then I can't help you if you don't post code sample or project.
Once the crash happened it'll log it, if it was an exception thrown you have to manually log it.

Please kindly post a project sample so that I can look into the issue you're having.

from crashy.

Docile-Alligator avatar Docile-Alligator commented on June 3, 2024

This is the project: https://github.com/Docile-Alligator/Infinity-For-Reddit

manifest: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/685a39ba58fab82cc0486e49394a0f398bba8254/app/src/main/AndroidManifest.xml#L330

build.gradle: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/685a39ba58fab82cc0486e49394a0f398bba8254/app/build.gradle#L97

Fragment for showing crash reports: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/master/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CrashReportsFragment.java

Adapter for showing crash reports: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/master/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CrashReportsRecyclerViewAdapter.java

Thank you!

from crashy.

FunkyMuse avatar FunkyMuse commented on June 3, 2024

This is the project: https://github.com/Docile-Alligator/Infinity-For-Reddit

manifest: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/685a39ba58fab82cc0486e49394a0f398bba8254/app/src/main/AndroidManifest.xml#L330

build.gradle: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/685a39ba58fab82cc0486e49394a0f398bba8254/app/build.gradle#L97

Fragment for showing crash reports: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/master/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CrashReportsFragment.java

Adapter for showing crash reports: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/master/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CrashReportsRecyclerViewAdapter.java

Thank you!

Is there a section where it crashes and the crash isn't caught or i should force a crash to test it?

from crashy.

Docile-Alligator avatar Docile-Alligator commented on June 3, 2024

You need to force a crash :)

from crashy.

Docile-Alligator avatar Docile-Alligator commented on June 3, 2024

There is a crash in minifiedRelesase though. If you like I can send a signed apk to you.

from crashy.

Docile-Alligator avatar Docile-Alligator commented on June 3, 2024

Here it is: https://drive.google.com/file/d/1-gdPp-IzDA4HRQRG2TpIybWMcO5X251_/view?usp=sharing

Go to Settings->Interface->Font->Font Preview and the app will crash

from crashy.

FunkyMuse avatar FunkyMuse commented on June 3, 2024

I see that the project is written in Java and the library is in Kotlin, I'm not sure how inlining works in Java since the library relies on inlined functions.

Can you try adding

compileOptions {
        sourceCompatibility = 1.8
        targetCompatibility = 1.8
    }

    kotlinOptions {
        jvmTarget = "1.8"
    }

I think you can ommit the Kotlin options

from crashy.

Docile-Alligator avatar Docile-Alligator commented on June 3, 2024

Thank you. I have added compileOptions already in https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/685a39ba58fab82cc0486e49394a0f398bba8254/app/build.gradle#L31

But adding kotlinkOptions will give me an error when syncing the project.

from crashy.

FunkyMuse avatar FunkyMuse commented on June 3, 2024

Thank you. I have added compileOptions already in https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/685a39ba58fab82cc0486e49394a0f398bba8254/app/build.gradle#L31

But adding kotlinkOptions will give me an error when syncing the project.

The kotlin options are for kotlin project that's why i said you can omit them.

So... Does it work now?

from crashy.

Docile-Alligator avatar Docile-Alligator commented on June 3, 2024

No, it doesn't. It's weird.

from crashy.

FunkyMuse avatar FunkyMuse commented on June 3, 2024

I didn't notice that the project was Java, my bad, the library won't work with Java, probably I should've mentioned that somewhere.
Sorry for your inconvenience, maybe convert to Kotlin, I've seen the code and it'll benefit a lot from Kotlin?

from crashy.

Docile-Alligator avatar Docile-Alligator commented on June 3, 2024

No problem! I will learn Kotlin first. :)

from crashy.

FunkyMuse avatar FunkyMuse commented on June 3, 2024

No problem! I will learn Kotlin first. :)

Can you check if 1.0.6 works for you?
I think it was mistake on my end...
Sorry.

from crashy.

FunkyMuse avatar FunkyMuse commented on June 3, 2024

No problem! I will learn Kotlin first. :)

If you decide to check out the new version let me know, I'll be closing the issue due to inactivity.

from crashy.

Docile-Alligator avatar Docile-Alligator commented on June 3, 2024

Oh! Sorry for the very late reply! Didn't check my inbox. It works perfectly fine now! Thank you for this amazing library!

from crashy.

Related Issues (3)

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.