Skip to content

Android support - #149

Closed
bruno-garcia wants to merge 7 commits into
mainfrom
exp/android
Closed

bruno-garcia wants to merge 7 commits into
mainfrom
exp/android

Conversation

@bruno-garcia

@bruno-garcia bruno-garcia commented May 10, 2021 •

Copy link
Copy Markdown
Member

Brings back the crash stuff I did on: https://github.com/bruno-garcia/unity-of-bugs

Starting to look on the best approach for the Android support. I believe the submodule is the way to go. The PoC used a gradle dependency on the template (done directly on the app. Not sure it's possible through a library) but I anyway believe it's best to build from source, using git submodule as the ideal dev loop/quick patch.

We can have CI build in separate steps that run in parallel and have a final assemble part with integration tests for the bits that put together the Sentry Unity/.NET stuff with native plugins. What y'all think?

To figure out:

  • How do bring dependencies in? Currently only Gson is missing. Ideally we'd automate copying all dependencies of the gradle build into the Unity page. Similar to how we did with .NET. @marandaneto might have ideas here
  • Build project as part of msbuild build. Result of build should go into package-dev. Publish script to copy artifacts to final package. Clean task from msbuild to remove artifacts and call gradlew clean
  • Add Gradle plugin to upload symbols (or use MSBuild wrapping sentry-cli, part of this PR)
  • Add back manifest manipulation to pass DSN (or opt-out of auto init to use programatic approach)
  • If we're letting it init via content provider, how do we sync scope/session/etc?
  • Define story to opt-out from native dependencies (i.e: SentryWindow option to remove the .aar/jar ?)

@semuserable

Copy link
Copy Markdown
Contributor

A little demo would be helpful :)

@bruno-garcia

Copy link
Copy Markdown
Member Author

Will do once I get time to mature this a bit

@bitsandfoxes bitsandfoxes self-assigned this Jul 6, 2021
@bitsandfoxes bitsandfoxes added the Feature new feature label Jul 6, 2021
@bitsandfoxes bitsandfoxes changed the title wip android Android support Jul 6, 2021
@bruno-garcia
bruno-garcia deleted the exp/android branch September 11, 2021 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants