feat: only install corresponding abi package when possible #5635
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR changes the way the
installOnDevice
works.The idea is to be compatible with apk split on android.
The reason for this is multiple:
The way it works is this:
.apk
files were built:- 1: always install this one
- more than 1: if 64bit abi or 32bit abi package found use this one
- more than 1: if not look for universal one found use this one
- otherwise => error
I also applied the same rule for
copy copyLatestAppPackage To
(thus renamed tocopyAppPackages
)copyTo
is an existing directory or a path which does not end withaab|ipa|apk
copy all packages tocopyTo
as a directorycopyTo
is a file nameuniversal
package if existingThere is one thing bugging be for which i have not found a solution. Because of this line if there are multiple packages there will be warning about it which is wrong in its meaning when using
run
. Might also be wrong in other cases and we can simply remove the warning ...