Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically search for NDK shared object files in unity projects #316

Merged

Conversation

fractalwrench
Copy link
Contributor

@fractalwrench fractalwrench commented Sep 30, 2020

Goal

NDK shared object mapping files are not currently uploaded by the plugin in Unity projects. This changeset ensures that mapping files are now uploaded automatically.

Changeset

In addition to the user-defined value of bugsnag.sharedObjectPaths, the plugin will automatically search two additional directories: one which covers Unity projects using the Gradle build system, the other which covers Unity 2019+ projects which have been exported to a standalone Gradle project. SO mapping files will be generated for any SO files in these directories.

This additionally fixes a bug with the default behaviour of isNdkUploadEnabled, so that it returns true by default for Unity projects. Previously this heuristic checked whether cmake was in use in a project; however, in a Unity project this would not be the case.

Testing

Adapted E2E tests so that NDK SO files are uploaded against a test fixture of an exported Unity project. Additionally verified in a non-exported Unity project that SO mapping files were generated when NDK files were present, and added unit tests for bugsnag.sharedObjectPaths behaviour.

@fractalwrench fractalwrench changed the title Automatically for shared object files in unity projects Automatically searched for NDK shared object files in unity projects Oct 1, 2020
@fractalwrench fractalwrench changed the title Automatically searched for NDK shared object files in unity projects Automatically searche for NDK shared object files in unity projects Oct 1, 2020
@fractalwrench fractalwrench changed the title Automatically searche for NDK shared object files in unity projects Automatically search for NDK shared object files in unity projects Oct 1, 2020
@fractalwrench fractalwrench force-pushed the PLAT-4426/unity-ndk-so-path branch 4 times, most recently from d7869bc to 3732833 Compare October 1, 2020 11:13
@fractalwrench fractalwrench marked this pull request as ready for review October 1, 2020 12:40
@fractalwrench fractalwrench merged commit 5b179a6 into proj-symbolicate-android-unity Oct 1, 2020
@fractalwrench fractalwrench deleted the PLAT-4426/unity-ndk-so-path branch October 1, 2020 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants