-
Notifications
You must be signed in to change notification settings - Fork 391
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
Split custom assets by device ABI? #190
Comments
Unfortunately splitting assets by device ABI is not supported now and we don't have short term plans to support this. |
Thanks @ymakhno, If I were to implement this feature, adding support for a path similar to Assuming I sent a PR and it made it in, would there need to be changes to Google Play's backend as well? Or would it work even if we had our own fork of |
Any reason you can't put the |
@plecesne thanks, I'll give the |
The
In this case, we would want |
Could you please provide a bit more information about these assemblies to be able to identify a better solution for the problem? Why are some assemblies architecture specific and some not? Do architecture specific assemblies contain native code inside, are they effectively native libraries? |
These are .NET assemblies that contain IL that drives languages like C# or F#. It isn't native code. Our Android support was originally a product called Xamarin that we are working on moving to be a general feature of .NET. A developer's C# code in their app would generally work on any architecture, but some libraries are highly optimized per architecture. An example would be parts of the Base Class Libraries such as |
Thank you for the explanation! Two more questions:
|
|
Thanks! Probably instead of me spamming you with questions it would be easier for me to just play with the technology to understand which assemblies are architecture-specific and which are not and how changes in code affect size of both. Could you please share a link to a good manual I can use? |
We are still developing this, but we have working samples with preview builds here: https://github.com/xamarin/net6-samples To build an app bundle, you can build the Android project:
And you should be able to find the build output in If you want to play with Xamarin, in general, you might be better off trying the guides for the stable product here. But we don't have these architecture-specific assemblies today. |
I've played with Xamarin a bit and understand your usecase better now. Currently you put CLI assemblies under
Does it work for you? Will you be able to move |
@ymakhno yes, we can move them to Do you think |
It won't work today, I'll try to land it into next bundletool release. Will update this ticket once done. |
Unfortunately I found out that solution that I wrote above won't be as easy to implement as I thought initially. I'll keep the issue open to keep it on our radar, but a short term workaround I can propose at the moment is only one described in #116. |
Thanks. Are you suggesting to put the files under Would we have to rename their extension to |
I think if you rename to |
Related to: #116
I was reviewing the code and I don't see a way to have custom files split up per ABI:
bundletool/src/main/java/com/android/tools/build/bundletool/model/targeting/TargetedDirectorySegment.java
Lines 52 to 55 in ae0fc01
But you can do it for language or other "dimensions".
I work on .NET (for Android), and we have .NET assembly files such as:
I was looking for a way to split up these custom files per architecture. Is there a way to do this? Thanks!
The text was updated successfully, but these errors were encountered: