Title: sentry-android dependency size · Issue #461 · getsentry/sentry-java · GitHub
Open Graph Title: sentry-android dependency size · Issue #461 · getsentry/sentry-java
X Title: sentry-android dependency size · Issue #461 · getsentry/sentry-java
Description: I was just comparing the new official sentry-android library (group name io.sentry), and the older (now deprecated) one by @joshdholtz (group name: com.joshdholtz.sentry) using the Methods Count service. In values below were obtained fro...
Open Graph Description: I was just comparing the new official sentry-android library (group name io.sentry), and the older (now deprecated) one by @joshdholtz (group name: com.joshdholtz.sentry) using the Methods Count se...
X Description: I was just comparing the new official sentry-android library (group name io.sentry), and the older (now deprecated) one by @joshdholtz (group name: com.joshdholtz.sentry) using the Methods Count se...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/461
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sentry-android dependency size","articleBody":"I was just comparing the new official `sentry-android` library (group name `io.sentry`), and the [older (now deprecated) one](https://github.com/joshdholtz/Sentry-Android) by @joshdholtz (group name: `com.joshdholtz.sentry`) using the [Methods Count](http://www.methodscount.com/) service.\r\n\r\nIn values below were obtained from the following libraries:\r\n- [`com.joshdholtz.sentry:sentry-android:1.6.2`](http://www.methodscount.com/?lib=com.joshdholtz.sentry%3Asentry-android%3A1.6.2)\r\n- [`io.sentry:sentry-android:1.2.2`](http://www.methodscount.com/?lib=io.sentry%3Asentry-android%3A1.2.2)\r\n\r\nlibrary | dependencies | total methods | total size\r\n--- | --- | --- | ---\r\n`com.joshdholtz.sentry` | 0 | 283 | 34 kB\r\n`io.sentry` | 3 | 4171 | 515 kB\r\n\r\nIt is quite surprising that two libraries doing something very similar show such a huge discrepancy in method count and total size. The method count in particular is quite alarming, as there is a **hard limit of 65k** for a single dex file on Android. If this number is exceeded, it will cause all kinds of trouble (especially for versions without native multidex support).\r\n\r\nI completely understand the desire to have a common code base for Java projects (which also includes Android). For a server-side integration, the method count or 500kB of added dependencies does not matter that much. For Android, this is a much more sensitive topic.\r\n\r\nLooking at the transitive dependencies in more detail, it seems that the Jackson library alone is adding almost 2400 new methods.\r\n\r\nOpening this issue to discuss this issue and potential solutions.","author":{"url":"https://github.com/friederbluemle","@type":"Person","name":"friederbluemle"},"datePublished":"2017-07-13T11:08:09Z","url":"https://github.com/getsentry/sentry-java/issues/461"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d7c59e46-56c6-d3e8-679c-938e2f4f4e96 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D296:322010:BCE99:101CD6:6AFBF9BF |
| html-safe-nonce | 51be9bfe9870c80ddf583b79312fa69476b667254721820ad91327c2eae24700 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjk2OjMyMjAxMDpCQ0U5OToxMDFDRDY6NkFGQkY5QkYiLCJ2aXNpdG9yX2lkIjoiNDgwNzEwMjk2NDg1NjI1Njk1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 963f560828d34f752ca4d2d9a1b7b385763d7cc7da011cd9b8784eb14d3a0363 |
| hovercard-subject-tag | issue:242665476 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/461/issue_layout |
| twitter:image | https://opengraph.githubassets.com/db95f6c1e7a635aacc34f4c6e7c5cd20763578d1e49bc71d347e02e581c549d2/getsentry/sentry-java/issues/461 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/db95f6c1e7a635aacc34f4c6e7c5cd20763578d1e49bc71d347e02e581c549d2/getsentry/sentry-java/issues/461 |
| og:image:alt | I was just comparing the new official sentry-android library (group name io.sentry), and the older (now deprecated) one by @joshdholtz (group name: com.joshdholtz.sentry) using the Methods Count se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | friederbluemle |
| hostname | github.com |
| expected-hostname | github.com |
| None | fa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b3b5633a74535d9c23385512d534c66c8fde1907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width