Skip to content
Commits on Dec 21, 2012
  1. Run tests against Android 4.2, to verify compatibility.

    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.)
    committed Dec 20, 2012
Commits on Oct 1, 2012
  1. Corrected QueueRunnerThread implementation, per Andreas Osowski.

    See GitHub issue #8.
    committed Sep 30, 2012
Commits on Sep 13, 2012
  1. @isaacseymour
  2. @isaacseymour
Commits on Aug 27, 2012
  1. Merge branch 'content_export'

    committed Aug 26, 2012
  2. Re-expose 'mgr' on RecordIds, for back-compatibility.

    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).
    committed Aug 26, 2012
Commits on Aug 23, 2012
  1. One more from Isaac Seymour ... PositronicExpandableListView.

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

    Added PositronicRelativeLayout

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

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

    …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...
    committed Aug 17, 2012
  3. Squeryl-ish 'join models' can now accept columns with " as " aliases.

    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.
    committed Aug 17, 2012
Commits on Aug 10, 2012
Commits on Aug 9, 2012
  1. Tooling for building one ContentQuery from conditions in another.

    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).
    committed Aug 9, 2012
Commits on Aug 5, 2012
  1. Make ActivityResponseDispatch stuff cope better with serialization.

    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...
    committed Aug 5, 2012
Commits on Jul 27, 2012
  1. Add ContentProvider Contract class for ContentProvider sample app.

    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.)
    committed Jul 27, 2012
  2. New sample app that defines and uses a ContentProvider.

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

    See design note on DataStreams for discussion here.
    committed Jul 27, 2012
  4. New RecordManager subclass which can handle multiple base queries.

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

    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.
    committed Jul 27, 2012
  6. Catch some invalid conditions (particularly "null" args) as they arise.

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

    …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...
    committed Jul 27, 2012
  8. Fix evaluation-order issue in constructor for ContentObservationDataS…

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

    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).
    committed Jul 27, 2012
Commits on Jul 22, 2012
Commits on Jul 20, 2012
  1. Much more general DSL for defining ContentProviders.

    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...
    committed Jul 20, 2012
Commits on Jul 19, 2012
  1. ContentProvider shorthand tests now use a Java "Contract" class...

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

    …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.)
    committed Jul 8, 2012
Commits on Jul 8, 2012
  1. Further refactoring: Scopes refer to a RecordWrangler, not a RecordMa…

    …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...
    committed Jul 7, 2012
Something went wrong with that request. Please try again.