Code Monkey home page Code Monkey logo

android-sdk's Issues

login with facebook crash with API31

Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
at android.app.ActivityThread.deliverResults(ActivityThread.java:5368)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:5407)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:67)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2253)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7870)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

LoginRadiusAuthManager is leaking GoogleNativeActivity

LoginRadiusAuthManager is leaking GoogleNativeActivity, because a lambda in GoogleNativeActivity is passed into a static field in LoginRadiusAuthManager.

LeakCanary trace:

 │ GC Root: Thread object
 │
 ├─ WV.mk instance
 │    Leaking: NO (PathClassLoader↓ is not leaking)
 │    Thread name: 'CleanupReference'
 │    ↓ Thread.contextClassLoader
 ├─ dalvik.system.PathClassLoader instance
 │    Leaking: NO (LoginRadiusAuthManager↓ is not leaking and A ClassLoader is never leaking)
 │    ↓ ClassLoader.runtimeInternalObjects
 ├─ java.lang.Object[] array
 │    Leaking: NO (LoginRadiusAuthManager↓ is not leaking)
 │    ↓ Object[4122]
 ├─ com.loginradius.androidsdk.helper.LoginRadiusAuthManager class
 │    Leaking: NO (a class is never leaking)
 │    ↓ static LoginRadiusAuthManager.asyncHandler
 │                                    ~~~~~~~~~~~~
 ├─ com.loginradius.androidsdk.activity.GoogleNativeActivity$1 instance
 │    Leaking: UNKNOWN
 │    Retaining 130.0 kB in 2246 objects
 │    Anonymous class implementing com.loginradius.androidsdk.handler.AsyncHandler
 │    this$0 instance of com.loginradius.androidsdk.activity.GoogleNativeActivity with mDestroyed = true
 │    ↓ GoogleNativeActivity$1.this$0
 │                             ~~~~~~
 ╰→ com.loginradius.androidsdk.activity.GoogleNativeActivity instance
 ​     Leaking: YES (ObjectWatcher was watching this because com.loginradius.androidsdk.activity.GoogleNativeActivity
 ​     received Activity#onDestroy() callback and Activity#mDestroyed is true)
 ​     Retaining 130.0 kB in 2245 objects
 ​     key = ab3eeedb-c14e-4363-aeb3-73543d89f968
 ​     watchDurationMillis = 7675
 ​     retainedDurationMillis = 2674
 ​     context instance of com.loginradius.androidsdk.activity.GoogleNativeActivity with mDestroyed = true
 ​     mApplication instance of com.mirror.news.MirrorApp
 ​     mBase instance of androidx.appcompat.view.ContextThemeWrapper

As a side note, the 5.0.0 Release Notes do not mention the change in the Maven group name (android to androidsdk), so it's not really easy to install. The installation section was also not updated with the new group name.

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.