<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Yea, &nbsp;just wanted to get the idea down so we don't forget and to see if its in the right direction<br><div><div>On Dec 20, 2012, at 11:55 AM, Kris Borchers &lt;<a href="mailto:kris@redhat.com">kris@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Cordova is something I want to dig into after 1.0. I like the spirit of the idea. See comments inline.<div><br><div><div>On Dec 20, 2012, at 10:34 AM, Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com">lholmqui@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><p style="margin-top: 0px !important; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; ">I know we really haven't talked about cordova plugins to much, but i want to just get this thought down so i didn't forget about it.</p><p style="margin: 15px 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; ">would it make sense to have a cordova plugin for accessing the core data stuff from our iOS libs, that is once it's ready.</p><div><br></div></div></blockquote>I think so<br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><p style="margin: 15px 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; ">I know cordova has a storage api, but it looks like it is just based on the W3C web storage/web sql specs</p><div><br></div></div></blockquote>That would probably be the basis of the "default adapter" for DataManager on Cordova.&nbsp;I see a separate Cordova repo that can include a copy of AeroGear.js with the default adapters (Pipeline:Rest, Auth:Rest, DataManager:Memory), then we could implement other adapters, like a DataManager:CoreData adapter on top of that. Our custom build system should allow for building a custom Cordova download as well as be able to include other pieces from the AeroGear.js core (DataManager:SessionLocal for example).<br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><p style="margin: 15px 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; ">i guess i was thinking this is how it would work:</p><p style="margin: 15px 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; ">Possibley have an aerogear.js datamanager plugin for the front end that then calls the aerogear ios libs coredata plugin</p><div><br></div></div></blockquote>Yes, though this is where we would need to involve someone with Cordova plugin and iOS experience to get that connection between the JS and iOS libs.<br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><p style="margin: 15px 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; ">In JS</p><pre style="font-size: 13px; line-height: 19px; font-family: Consolas, 'Liberation Mono', Courier, monospace; word-wrap: break-word; margin-top: 15px; margin-bottom: 15px; background-color: rgb(248, 248, 248); border: 1px solid rgb(204, 204, 204); overflow: auto; padding: 6px 10px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; "><code style="font-size: 12px; line-height: normal; font-family: Consolas, 'Liberation Mono', Courier, monospace; margin: 0px; padding: 0px; border: none; background-color: transparent; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; ">var dataManager = AeroGear.DataManager({
    name: coreDataStore,
    type: CoreData //or something
});

var coreDataStore = dataManager.stores[0];

coreDataStore.read() // this would access the Aerogear ios core data part
</code></pre><p style="margin-top: 15px; margin-right: 0px; margin-bottom: 0px !important; margin-left: 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 14px; line-height: 22px; ">I'm not really familiar with core data, so i could be way off base with this idea</p><div><br></div><div><br></div><div>-Luke</div></div>_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div></div>_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev<br></blockquote></div><br></body></html>