toolargetool
toolargetool copied to clipboard
A tool to help you debug TransactionTooLargeExceptions on Android 7+
DO NOT MERGE - draft snyk integration. This PR tests whether or not integration with a snyk GHA will work out of the box. It will be closed soon.
No Logs are displaying for me in the given format ``` D/TooLargeTool: MainActivity.onSaveInstanceState wrote: Bundle@200090398 contains 1 keys and measures 0.6 KB when serialized as a Parcel * android:viewHierarchyState =...
I came across your library while searching for a solution for Transaction Too Large exception, I added the library as a dependency and added the starlogging method in application class...
Hi, I found that this tool check bundle only when onSaveInstanceState is called. But if put a big data in Bundle when open Activity or Fragment, it does not work.
Hi, Is there any way I can catch this exception? Got the debugging info. So that I can send debugging info to my own service (Slack hook, etc.)
集成时,报错崩溃
在Application中初始化以下代码时,直接报以下错误崩溃 TooLargeTool.startLogging(this); log崩溃日志: Process: com.nacai.bocai, PID: 20013 java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/fragment/app/FragmentManager$FragmentLifecycleCallbacks; at com.gu.toolargetool.TooLargeTool.startLogging(TooLargeTool.kt:96) at com.gu.toolargetool.TooLargeTool.startLogging(TooLargeTool.kt:90) at com.gu.toolargetool.TooLargeTool.startLogging$default(TooLargeTool.kt:89) at com.gu.toolargetool.TooLargeTool.startLogging(Unknown Source:3)
This library is great! ``` 10-11 11:53:13.179 D/TooLargeTool(21791): MainActivity.onSaveInstanceState wrote: Bundle@161550193 contains 7 keys and measures 821.2 KB when serialized as a Parcel 10-11 11:53:13.179 D/TooLargeTool(21791): * android:sessionId = 0.1...
I'm calling `logBundleBreakDown` before calling `startActivity` ``` Intent i = new Intent(activity, ReviewMetaActivity.class); i.putExtra(ReviewMetaActivity.ARG_FULL_PATH, fullPath); i.putExtra(ReviewMetaActivity.REVIEW_META_ID, review_meta_id); i.putExtra(ReviewMetaActivity.REVIEW_THREAD_ID, review_thread_id); i.putExtra(ReviewMetaActivity.REVIEW_META_JSONSTRING, review_meta_jsonstring); TooLargeTool.logBundleBreakdown("review-meta", i.getExtras()); activity.startActivity(i); ``` But log only shows ```...
This PR reliably integrates the repository with the snyk GitHub action which will scan your code’s dependencies and alert you if vulnerabilities are found. This PR has only been raised...
Bumps androidx.test:rules from 1.5.0 to 1.6.1. [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...