fastlane-plugin-native_symbols
Simple fastlane plugin to zip native symbols and get the retrace mapping file from Android builds.
Getting Started
Add the plugin to your project:
bundle exec fastlane add_plugin native_symbolsUsage
lane :release do
zip_path, mapping_path = native_symbols(variant: "release")
supply(
package_name: 'com.example',
track: 'production',
aab: '12345678.aab',
mapping_paths: [zip_path, mapping_path],
)
endThe action will search your Android project for native symbol directories for the selected variant, zip them into the format expected by the Google Play Console, and return the path to the archive together with the obfuscation retrace mapping file (if present).
With build variant
lane :release do
zip_path, mapping_path = native_symbols(variant: "releaseDev")
endWith app path
lane :release do
zip_path, mapping_path = native_symbols(
app_path: './android',
variant: "release"
)
endWithout fail fast
native_symbols(
app_path: "./android",
variant: "releaseDev",
raise: false
)When building debug or flavor-specific variants you may not always produce merged native libs. Set raise to false to keep the lane running.
Available options
| Option | Description | Default |
|---|---|---|
app_path |
Root directory of the Android project | current directory |
variant |
Build variant to inspect (e.g. release) |
release |
raise |
Raise an error when native symbols cannot be found | true |
Run bundle exec fastlane action native_symbols for details.
Development
- Run
bundle installto install dependencies. - Use
bundle exec rspecto run the test suite.
Issues and Contributions
Please create a GitHub issue if you run into a problem or have a feature request. Pull requests are always welcome.