dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.99k stars 4.66k forks source link

Make SPC shareable for multiple architectures #44028

Open marek-safar opened 3 years ago

marek-safar commented 3 years ago

Android apk can include multiple architectures (e.g. x86 and arm64) in the bundle. Majority of managed libraries can be shared because they are architecture-independent but not so SPC which is unfortunately large assembly. It'd help to reduce the size of all multi-architecture apk if we could somehow isolate the architecture-independent code of SPC.

@jkotas any thoughts on this?

Dotnet-GitSync-Bot commented 3 years ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

jkotas commented 3 years ago

I think it would be better to spend time on making sure that the Xamarin apps play well with https://developer.android.com/training/multiple-apks/api and https://developer.android.com/guide/app-bundle. It would take care of this issue as well as unmanaged code and AOT compiled managed code.

marek-safar commented 3 years ago

App Bundles are different mechanism than apk and both deployments are used. The enterprises tend to prefer apk as they don't deal with Google store and they are easier for them to deploy.

ghost commented 8 months ago

Tagging subscribers to 'arch-android': @steveisok, @akoeplinger See info in area-owners.md if you want to be subscribed.

Issue Details
Android apk can include multiple architectures (e.g. x86 and arm64) in the bundle. Majority of managed libraries can be shared because they are architecture-independent but not so SPC which is unfortunately large assembly. It'd help to reduce the size of all multi-architecture apk if we could somehow isolate the architecture-independent code of SPC. @jkotas any thoughts on this?
Author: marek-safar
Assignees: -
Labels: `os-android`, `area-CoreLib-mono`
Milestone: Future