toolargetool

A tool for debugging TransactionTooLargeException on Android

Лицензия

Лицензия

Группа

Группа

com.gu.android
Идентификатор

Идентификатор

toolargetool
Последняя версия

Последняя версия

0.3.0
Дата

Дата

Тип

Тип

aar
Описание

Описание

toolargetool
A tool for debugging TransactionTooLargeException on Android
Ссылка на сайт

Ссылка на сайт

https://github.com/guardian/toolargetool
Система контроля версий

Система контроля версий

https://github.com/guardian/toolargetool

Скачать toolargetool

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.gu.android/toolargetool/ -->
<dependency>
    <groupId>com.gu.android</groupId>
    <artifactId>toolargetool</artifactId>
    <version>0.3.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.gu.android/toolargetool/
implementation 'com.gu.android:toolargetool:0.3.0'
// https://jarcasting.com/artifacts/com.gu.android/toolargetool/
implementation ("com.gu.android:toolargetool:0.3.0")
'com.gu.android:toolargetool:aar:0.3.0'
<dependency org="com.gu.android" name="toolargetool" rev="0.3.0">
  <artifact name="toolargetool" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.gu.android', module='toolargetool', version='0.3.0')
)
libraryDependencies += "com.gu.android" % "toolargetool" % "0.3.0"
[com.gu.android/toolargetool "0.3.0"]

Зависимости

runtime (2)

Идентификатор библиотеки Тип Версия
androidx.appcompat » appcompat jar 1.2.0
org.jetbrains.kotlin : kotlin-stdlib jar 1.4.20

Модули Проекта

Данный проект не имеет модулей.

toolargetool

A tool for debugging TransactionTooLargeException on Android.

"Most underrated solution." - Kedar Paranjape, Jun 7 '18 at 14:26

Usage

  1. Include toolargetool as a dependency (you can remove it again once you've debugged your crash):

    • toolargetool is available from mavenCentral()

    • Add implementation 'com.gu.android:toolargetool:0.3.0' in your module's build.gradle:

      dependencies {
          ...
          implementation 'com.gu.android:toolargetool:0.3.0'
      }
      
  2. Import The package

    import com.gu.toolargetool.TooLargeTool;
    
  3. Add code to start logging during app start, for example in your Application.onCreate method:

    TooLargeTool.startLogging(this);
    
  4. Monitor logcat output to see which components are writing substantial data to the transaction buffer and when:

    $ adb logcat -s TooLargeTool
    

    Example logcat output (TODO: improve this example):

    D/TooLargeTool: MainActivity.onSaveInstanceState wrote: Bundle@200090398 contains 1 keys and measures 0.6 KB when serialized as a Parcel
                                                                            * android:viewHierarchyState = 0.6 KB
    

Release process

Note: these instructions will only work if you have the required credentials for publishing to the com.gu Sonatype repository.

  1. Increase all the version number in toolargetool/build.gradle
  2. Make a commit and tag it with git tag -a v<version number> -m "<message>".
  3. Run ./gradlew publishReleasePublicationToSnapshotRepository.
com.gu.android

The Guardian

The source code of the world's leading liberal voice

Версии библиотеки

Версия
0.3.0