Sep 19 | 8:55 AM |
Mark M. | has entered the room |
Mark M. | turned on guest access |
Sep 19 | 9:00 AM |
olivier | has entered the room |
Mark M. |
hello, olivier!
|
Mark M. |
how can I help you today?
|
olivier |
Hi, the instructions on how to configure the uploadArchives task saved my day. Almost everything else I could find was bitrotted to death.
|
Mark M. |
um, you're welcome!
|
olivier |
However I would like to push both a release (at mylib) and a debug version (at mylib-debug) and I can't find out how to dothat.
|
Mark M. |
what does "at mylib" and "at mylib-debug" mean?
|
olivier |
In another case I would like to push several release flavors and likewise I have no idea how to do it. I gave up googling because everything is baroque, does not work or both.
|
Mark M. |
I do not mess with flavors in libraries, and so I have no experience with that, sorry
|
Sep 19 | 9:05 AM |
Mark M. |
if by "at mylib" and "at mylib-debug", you mean those are two separate artifact names, I do not know how to do that for a single library
|
Mark M. |
I try to keep my library publishing fairly simple
|
Sep 19 | 9:10 AM |
Mark M. |
if you have additional questions, go right ahead
|
Sep 19 | 9:25 AM |
Test A. | has entered the room |
Test A. | has left the room |
Sep 19 | 9:40 AM |
olivier |
sorry, a JS blocker had interfered with the chat functionality
|
Mark M. |
OK
|
Sep 19 | 9:45 AM |
olivier |
my understanding is that maven can serve only one artifact per directory, so release and debug have to be uploaded to different directories
|
Mark M. |
that's very possible
|
Mark M. |
I don't distribute debug and release versions, so I have no idea how to do that
|
olivier |
the release variant of "mylib" goes to "mylib", as per defaults, and I would like the debug variant to go to "mylib-debug" or anything else.
|
Mark M. |
that might be possible, but I do not know how to do that
|
Mark M. |
my experience here is very narrow
|
olivier |
that's probably not a common scenario, admittedly. but the flavors one might be a bit more common and should be similar.
|
olivier |
it would be nice if you could figure it out at some point
|
olivier |
documentation on this is very scant and this is one way your book could add real value
|
Mark M. |
I would place about a 0.1% chance that I will get around to that, sorry
|
Sep 19 | 9:50 AM |
Mark M. |
from what I've seen, that whole area is fraught with complications
|
olivier |
bummer. meanwhile, in your experience, is the lifecycle stuff in architecture ready for prime time? I wired it up to an AppCompatActivity and it did not work. I saw a bug re. plain Activities but apparently it doesn't work even with AppCompatActivity. and yes I had set it up as a custom LifeCycleObserver as per the docs
|
Mark M. |
make sure you are using 26.1.0
|
Mark M. |
of the support libraries
|
Mark M. |
AppCompatActivity should now be lifecycle-aware
|
Mark M. |
that being said, this stuff still has an alpha label
|
olivier |
good. and how is arch coming along? it has been stuck at alpha9 for ages.
|
Mark M. |
well, it bumped to the strange alpha9-1 last week
|
Mark M. |
and alpha9 itself is only a few weeks old IIRC
|
Mark M. |
about four weeks (August 19th)
|
olivier |
ok
|
Mark M. |
my guess is that their attention turned to the Paging stuff for a while
|
Mark M. |
and I don't know how many engineers are working on this
|
Mark M. |
plus, unlike ConstraintLayout being tied to Android Studio (and driving deadlines), Google has no obvious pressure to get a significant chunk of the Architecture Components to a 1.0.0
|
Sep 19 | 9:55 AM |
Mark M. |
they *did* release a few artifacts as 1.0.0, which ties into the 26.1.0 support libraries point from before
|
Mark M. |
so, if you're planning on shipping your app in 2017, I would not use the Architecture Components just yet
|
Mark M. |
I don't know that even Google has a formal release schedule for these bits
|
olivier |
ok. that's a pity because Room is one of the few compelling things I have seen in a while and I'd like to use it. the est, not so much
|
olivier |
Room IMO is exactly what an ORM should be
|
Mark M. |
they're doing fairly good scope control on Room with respect to stuff being logged in the issue tracker
|
Mark M. |
and so getting to a 1.0.0 final is clearly a priority objective
|
Mark M. |
I just can't tell you when that will be
|
olivier |
it takes care of the CRUD boilerplate but wisely defers to SQL for queries
|
olivier |
one last thing: am I the only one to be underwhelmed by RecyclerView? other than pluggable layout managers (finally!) I don't see what it brings to the table. it has *less* functionality than the old ListView
|
Mark M. |
oh, RecyclerView is *much* more flexible than ListView
|
Mark M. |
it is tougher to use "out of the box"
|
olivier |
you don't say. I can't believe it forces you to implement single selection yourself
|
Mark M. |
there's little question that they could use more standard implementations of that sort of thing
|
Mark M. |
but still have them be pluggable
|
Sep 19 | 10:00 AM |
Mark M. |
akin to how they didn't have divider rows, but had a decorator API with no implementation
|
Sep 19 | 10:00 AM |
olivier |
yes. it feels half-baked
|
Mark M. |
later, they added a stock implementation for handling simple divider rows, which covers a decent-sized chunk of the use cases
|
Mark M. |
I'd phrase it more as their focus was on extensibility, more so than providing a simple out-of-the-box experience
|
Mark M. |
and that causes some amount of pain
|
Mark M. |
given staffing limits, I don't know that I would have done it differently
|
Mark M. |
but having one more engineer focused on the out-of-the-box experience surely would have helped
|
Mark M. |
and that's a wrap for today's chat
|
Mark M. |
the next chat is Thursday, also at 9am US Eastern
|
olivier |
ok, thank you
|
Mark M. |
and, as usual, the transcript will be published to https://commonsware.com/office-hours/ shortly
|
Mark M. |
have a pleasant day!
|
olivier | has left the room |
Mark M. | turned off guest access |