Add odk core to odk survey to produce a single .apk

Hi all!

I'm a bit of a noob in coding for ODK but I'm liking it so far. My
questions is, there is the ODK Survey .apk which is standalone meaning it
has obviously incorporated ODK core. But in my devEnv I am not sure how to
intergrate the two to genrate a similar single .apk such that I don't have
to first install the core services first then the survey app. What would I
have to do? Add the core as a module in Survey? Is there a Gradle/maven
module for the core app that I should add as a dependency?

Thanks for your time

··· - Mso

The ODK 2.0 software is in a high state of flux.

At the rev 126 tag, there is no ODK Core APK. There are just:

ODK Sync
ODK Survey
ODK Tables
ODK Scan
ODK Sensor Frameworks
and APKs for each sensor driver

At the development tip, we have added the ODK Core APK, which isolates all
database interactions behind content providers and a database service AIDL
(rather than having each APK independently and directly open and interact
with the database file). The APKs that exist at the development tip are:

ODK Core
ODK Sync
ODK Survey
ODK Tables
ODK Scan
ODK Sensor Frameworks
and APKs for each sensor driver

We are in the process of moving most, if not all, of ODK Sync into ODK
Core. With other changes that are in process, we will then eliminate
beginTransaction ... endTransaction fuctionality in the exposed AIDLs of
ODK Core. This will make all state-changing interactions with ODK Core
atomic.

It will also allow updates of the other APKs independently of the updates
to the database interactions, which will all be isolated inside ODK Core.
If we then ever need to update our database schema, we can do so by
updating ODK Core, rather than needing to do a coordinated joint update of
all of the above APKs.

After that, we want to move the legacy download/upload functionality in ODK
Survey into a separate APK, reducing ODK Survey to a pure presentation
layer container, with call-outs to other APKs to either sync or
download/upload submissions off the system.

··· ------- Mitch

On Thu, Nov 5, 2015 at 12:47 PM, Muthoni Nguthi flyra67@gmail.com wrote:

Hi all!

I'm a bit of a noob in coding for ODK but I'm liking it so far. My
questions is, there is the ODK Survey .apk which is standalone meaning it
has obviously incorporated ODK core. But in my devEnv I am not sure how to
intergrate the two to genrate a similar single .apk such that I don't have
to first install the core services first then the survey app. What would I
have to do? Add the core as a module in Survey? Is there a Gradle/maven
module for the core app that I should add as a dependency?

Thanks for your time

Mso

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com