Title: Android api level < 26 support · Issue #252 · microsoftgraph/msgraph-sdk-java-core · GitHub
Open Graph Title: Android api level < 26 support · Issue #252 · microsoftgraph/msgraph-sdk-java-core
X Title: Android api level < 26 support · Issue #252 · microsoftgraph/msgraph-sdk-java-core
Description: The goal of this issue is to investigate ways to support Android API level < 26 (current requirement for core 2.X and sdk 3/4). SDK users: please like (and subscribe to get notified of progress) this issue. This will allow us to gage the...
Open Graph Description: The goal of this issue is to investigate ways to support Android API level < 26 (current requirement for core 2.X and sdk 3/4). SDK users: please like (and subscribe to get notified of progress) th...
X Description: The goal of this issue is to investigate ways to support Android API level < 26 (current requirement for core 2.X and sdk 3/4). SDK users: please like (and subscribe to get notified of progress)...
Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java-core/issues/252
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Android api level \u003c 26 support","articleBody":"The goal of this issue is to investigate ways to support Android API level \u003c 26 (current requirement for core 2.X and sdk 3/4).\r\n\r\nSDK users: please like (and subscribe to get notified of progress) this issue. This will allow us to gage the interest of the community for this work. Don't hesitate to engage in the conversation either.\r\n\r\nThe current SDK requires API level >= 26 mostly because of the downstream requirements from azure-core/azure-identity. The azure team made a choice of shipping libraries for Java developers first, which might work for Android developers. We (the graph sdk team) have aligned on that decision because we're dependent on them, lack of resources to develop 2 SDKs for the same eco-system, and because of usage data.\r\n\r\nBesides the authentication aspects, we've later on made the choice to provide the best Java development experience at the expense of Android backwards compatibility: those productivity features include CompletableFutures, some streaming and string encoding capabilities and more. The easiest way to get an exhaustive list of such platform features is to [downgrade the api level of the android linting project](https://github.com/microsoftgraph/msgraph-sdk-java-core/blob/5a4a79ff033a297831dc41d73889dfb84172ad02/android/build.gradle#L31) and look at the list of errors.\r\n\r\nThe eco-system usually targets API level 19 or 21, respectively supporting 98.1% and 94.1% of android phones our there at the time of writing (android studio, file, new project, help me choose the api level). And the library authors go one of multiple ways:\r\n- Complete separate package names between the Java and Android version (most likely what Azure will do)\r\n- Same package names, but variants in the version (guava is a good example)\r\n- Support only a single platform (our current case)\r\n\r\nOn top of all this considerations, the chosen approach should consider the following aspects:\r\n- Don't degrade the Java development experience.\r\n- Avoid significant maintenance burden.\r\n- Be mindful of package sizes as it impacts distribution of the resulting apps. We probably should target an SDK size of \u003c2MB. (excluding downstream dependencies) Proguard/r8 helps keeping apps small but brings a whole set of other issues.\r\n- Look at kotlin.\r\n- Look at the existing closed issues and PRs in this repo and in the service repo. \r\n[AB#10300](https://microsoftgraph.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_workitems/edit/10300)","author":{"url":"https://github.com/baywet","@type":"Person","name":"baywet"},"datePublished":"2021-07-20T14:07:52Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java-core/issues/252"}
| 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:4dc782b8-19c3-8ddf-2351-cfb74c7376c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B862:AC748:117148E:16ABBCB:6B053613 |
| html-safe-nonce | d792b2290d42d1b0215ead1b4d3128b448dd9d9177b4e0c655c9a92e70b2ad90 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODYyOkFDNzQ4OjExNzE0OEU6MTZBQkJDQjo2QjA1MzYxMyIsInZpc2l0b3JfaWQiOiI0ODI2MzA2MzI2Mjc3OTk0MDAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4118fca8eabd3e37465d33434eccd6e1d0de96047f5df5c14405527fb8bc0d0a |
| hovercard-subject-tag | issue:948691306 |
| 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/microsoftgraph/msgraph-sdk-java-core/252/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aac30f207da45412102c37e2d8857897ea170f211036b34218ecd5390fc02210/microsoftgraph/msgraph-sdk-java-core/issues/252 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aac30f207da45412102c37e2d8857897ea170f211036b34218ecd5390fc02210/microsoftgraph/msgraph-sdk-java-core/issues/252 |
| og:image:alt | The goal of this issue is to investigate ways to support Android API level < 26 (current requirement for core 2.X and sdk 3/4). SDK users: please like (and subscribe to get notified of progress) th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | baywet |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoftgraph/msgraph-sdk-java-core git https://github.com/microsoftgraph/msgraph-sdk-java-core.git |
| octolytics-dimension-user_id | 17304259 |
| octolytics-dimension-user_login | microsoftgraph |
| octolytics-dimension-repository_id | 154607328 |
| octolytics-dimension-repository_nwo | microsoftgraph/msgraph-sdk-java-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 154607328 |
| octolytics-dimension-repository_network_root_nwo | microsoftgraph/msgraph-sdk-java-core |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width