You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[databinding] Fix databinding templates and resources for AndroidX
This adds a flag for AndroidX and wires it through to the processing
steps. Additionally, the shell command run to fix databinding compiled
resources was not cross-platform:
* BSD `head` won't take a negative int as its argument (GNU does).
The better way to accomplish this goal here (listing all files in
the archive) is just to use `zipinfo(1)`. `zipinfo -1` shows in its
man page to be intended for exactly this purpose.
* BSD `sed` requires passsing an argument to the `-i` flag for a file
extension to use when writing a back-up. A file without a back-up
must be explicitly signaled by using an empty argument, i.e.
`sed -i '' file`. However, a spaced argument to `-i` on GNU sed is
interpreted as the next positional argument to `sed`, which is an
error. The only cross-platform way to accomplish this appears to be
to combine it into one like `-i.bak`. This then needs to be removed.
(From [StackOverflow](https://stackoverflow.com/a/22084103/1819790))
* Using `sed` to change a string in an otherwise binary file may require
changing the localization variables. At least, it does on standard
BSD/macOS: otherwise, `sed` assumes files are encoded as text, and
the class files contain invalid bytes. `LC_ALL` overrides all
categories not set.
0 commit comments