Skip to main content

upload-android-app-symbols

Description

Upload symbols & R8/ProGuard mapping for an Android app build.

Pass the root 'build' directory of the Android app as argument, for example:

memfault upload-android-app-symbols --build-variant=release ~/my/app/build

The command will automatically try to locate the mapping.txt and extract the
version and package identifier from the .apk file.

If this automatic behavior does not work in your use case, consider using
option flags (i.e. --version-code, --version-name, --package, etc.) to specify
the required information directly.

Arguments

ArgumentTypeRequired
pathPathTrue

Options

OptionShortRequiredDefaultDescription
--build-variantNoneTrueNone

The build variant for which to upload the Android app symbols

--packageNoneFalseNone

The package identifier of the app. When not specified, it is read from the .apk

--version-nameNoneFalseNone

The version name of the app. When not specified, it is read from the .apk

--version-codeNoneFalseNone

The version code of the app. When not specified, it is read from the .apk

--mapping-txtNoneFalseNone

The path to the Proguard/R8 mapping.txt file. When not specified, the gradle default locations are searched.

--native-libs-dirNoneFalseNone

The path to the dir containing native libs. When not specified, the gradle default locations are searched.

--apk-dirNoneFalseNone

The path to the apk. When not specified, the gradle default locations are searched.

--concurrencyNoneFalse8

Max number of concurrent web requests

--helpNoneFalseFalse

Show this message and exit.