Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Dec 21, 2012
  1. Run tests against Android 4.2, to verify compatibility.

    authored
    This requires a minor dink to some of the test code itself, to
    work around a compatibility glitch.  (The underlying problem is
    robolectric/robolectric#372 but it's so easy
    for me to work around that there's no point messing around with
    patched versions while the fix makes its way through their release
    pipeline.)
Commits on Oct 1, 2012
Commits on Sep 13, 2012
  1. @isaacseymour

    Corrected return type and name of onLongClick

    isaacseymour authored committed
  2. @isaacseymour

    Added onLongClick similar to onClick

    isaacseymour authored committed
Commits on Aug 27, 2012
  1. Merge branch 'content_export'

    authored
  2. Re-expose 'mgr' on RecordIds, for back-compatibility.

    authored
    It may no longer function as a top-level scope in all cases, but there
    are other uses for it (e.g., to get the discriminant of a variant record
    type, which was already in use for the Contacts sample app).
Commits on Aug 23, 2012
  1. One more from Isaac Seymour ... PositronicExpandableListView.

    authored
    Patching this one in manually, since it wasn't cleanly isolated in
    his git history.
  2. @isaacseymour
  3. @isaacseymour

    Added PositronicRelativeLayout

    isaacseymour authored committed
    (cherry picked from commit 3810e88)
Commits on Aug 21, 2012
Commits on Aug 17, 2012
  1. Test DB schemas now use SQLite notation...

    authored
    ... since current Robolectric versions now run tests with SQLite.
  2. Upgrade test support to Robolectric 1.1, running tests on SQLite dire…

    authored
    …ctly.
    
    This requires minor changes to the TestRunner-cloned glue, in order to
    set up a DatabaseMap.  Right now, you're stuck with the default behavior
    on that; good enough for me, for now, but support for UsingDatabaseMap
    annotations, or the equivalent, wouldn't be hard...
  3. Squeryl-ish 'join models' can now accept columns with " as " aliases.

    authored
    This is happening now because Robolectric's SQLite cursors can't handle
    qualified column names, and require aliasing to disambiguate.  It's not
    clear that the platform's real cursors have the same restriction, but
    aliasing has other uses anyway, so we might as well support it.
Commits on Aug 10, 2012
Commits on Aug 9, 2012
  1. Tooling for building one ContentQuery from conditions in another.

    authored
    The intended use case (as shown in the API sample) is when you've
    got an association (say, TodoLists to TodoItems), you've got a query
    for objects on one side of the association (say, lists whose names
    contain the string 'blue'), and you'd like to query for the other
    (say, identifying all the items in such a list).
Commits on Aug 5, 2012
  1. Make ActivityResponseDispatch stuff cope better with serialization.

    authored
    The Activity mixin that did the dispatch was declaring "PendingResponse"
    as a nested class --- which means it gets a reference to the parent object.
    The parent object is the Activity itself, which ... doesn't serialize well.
    
    Not sure how this ever worked...
Commits on Jul 27, 2012
  1. Add ContentProvider Contract class for ContentProvider sample app.

    authored
    Left out of the initial commit for the app.  (oops)
    
    I try to avoid Java stubs in sample apps, but in this case, we need
    to define one to follow platform conventions.  (It's a bag of "vals"
    and functions defining conventions for accessing our app's
    ContentProvider.)
  2. New sample app that defines and uses a ContentProvider.

    authored
    APIs still need polishing, but it runs and doesn't blow up...
  3. Add "Durations" for when an Activity is alive or running.

    authored
    See design note on DataStreams for discussion here.
  4. New RecordManager subclass which can handle multiple base queries.

    authored
    The intended usage here is for a ContentProvider which lets you fetch
    records of a particular type through multiple URIs.
  5. Partially undo "top-level scope" changes; surplus to requirements.

    authored
    The idea had been to have DependentRecordManagers (next commit)
    special-case ID handling --- in particular, to have extra state
    associated with the IDs they manage.  But the values to use for
    that state are not available in all cases (in particular, not when
    the ID is being fetched out of a column in a query on some other
    table from the same content provider), so we punt.
  6. Catch some invalid conditions (particularly "null" args) as they arise.

    authored
    Generally friendlier than catching them later, when it's often not obvious
    where they came from or how they got screwed up.
  7. Add "mapFuture" to DataStreams; like flatMap, but for fns. returning …

    authored
    …a Future.
    
    Name could change, but this actually covers an intended use case:
    a DataStream that does an orm query (returning a future) when new
    values arrive...
  8. Fix evaluation-order issue in constructor for ContentObservationDataS…

    authored
    …tream.
    
    If 'initialFuture' is a val, things initialized from it turn up null.
    If it's a 'def', they don't.
  9. A content provider with a UriMatch shouldn't query DB until it's open!

    authored
    Make the 'baseQuery' parameter to the constructors by-name and deferred
    so we don't actually try to construct the ContentQuery objects until the
    provider is fully open (and onCreate, etc., have been invoked).
Commits on Jul 22, 2012
Commits on Jul 20, 2012
  1. Much more general DSL for defining ContentProviders.

    authored
    Unlike the last try, this version lets you define special-case handlers
    for CRUD operations matching specific patterns in a reasonably convenient
    way, and also easily massage the ContentValues of the data going in on
    an insert or update.
    
    May still want to do some tweaking around the edges.  I've mocked out
    a child/parent record case, in which a delete on parent records should
    also clobber the children.  It works, but it isn't exactly pretty.
    And there's still rather more monkey business invovled in plugging in
    parent record IDs into contentValues than would ideally be required...
Commits on Jul 19, 2012
  1. ContentProvider shorthand tests now use a Java "Contract" class...

    authored
    ... to test harmonization with platform conventions.
Commits on Jul 9, 2012
  1. Clearly distinguish between "top-level scopes" and "primitive record …

    authored
    …mgrs".
    
    In most cases, the same object serves for both, but we want to support
    situations where the two are distinct.  (E.g., a ContentProvider that
    allows the same record type to be accessed through multiple URIs.)
Commits on Jul 8, 2012
  1. Further refactoring: Scopes refer to a RecordWrangler, not a RecordMa…

    authored
    …nager.
    
    For future classes with multiple managers, the manager is the heavyweight
    object that should not be duplicated.  Although... manager here is getting
    *awfully* thin and indistinct from Scope, which suggests a little renaming
    might be in order...
Something went wrong with that request. Please try again.