<br><br>On Thursday, December 20, 2012, Kris Borchers wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div>On Dec 20, 2012, at 12:20 PM, Burr Sutter <<a href="javascript:_e({}, 'cvml', 'bsutter@redhat.com');" target="_blank">bsutter@redhat.com</a>> wrote:</div>
<br><blockquote type="cite"><div style="word-wrap:break-word">Good point, I was not very clear - I consider the plugin to be at least two deliverables:<div>1) The native code</div><div>2) the JS lib that exposes "wraps" the API for the JS developer</div>
<div><br></div><div>For item 2, ideally the JS API would be identical between iOS and Android.</div></div></blockquote><div><br></div>Yes, that is how I visualize all of this as well. We will just need to have conversations with the iOS and Android folks to see if #2 is possible since they could have different native storage implementations that just can't easily overlap in a single API.</div>
</div></blockquote><div><br></div><div>Yes, should work, I'd assume that (for instance) the SQLite is very much the same.</div><div><br></div><div>Not sure how the Android ContentStoreProvider works (to compare w/ CoreData). But after 1.0 we can dive in here</div>
<div><br></div><div>-M<span></span></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">
<div><br></div><div><br><blockquote type="cite"><div style="word-wrap:break-word"><div><br></div><div><br><div><div>On Dec 20, 2012, at 12:56 PM, Kris Borchers wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word">
<br><div><div>On Dec 20, 2012, at 11:53 AM, Burr Sutter <<a>bsutter@redhat.com</a>> wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word">Ideally, the JS developer will mostly be OS agnostic. Can the Cordova plugin support both the iOS and Android means of "storage"?</div>
</blockquote><div><br></div>Depends on what you mean by "Cordova Plugin". When I say Cordova Plugin, I am talking about the native bits (iOS/Android/etc) that plug into Cordova. The JS side could maybe be made as a "device storage" adapter that would then talk to the correct native pieces but that's a little beyond me at this point as I haven't looked into Cordova contribution much yet.</div>
<div><br><blockquote type="cite"><div style="word-wrap:break-word"><br><div><br><div><div>On Dec 20, 2012, at 12:36 PM, Matthias Wessendorf wrote:</div><br><blockquote type="cite">great!<div><br></div><div>had the same thought, but forgot about it :-)</div>
<div><br></div><div>AGCoreData is not yet ready, though</div><div><br></div><div>-Matthias<span></span><br><br>On Thursday, December 20, 2012, Lucas Holmquist wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><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><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><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>
<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></blockquote></div><br><br>-- <br>Sent from Gmail Mobile<br>
_______________________________________________<br>aerogear-dev mailing list<br><a>aerogear-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</blockquote></div><br></div></div>_______________________________________________<br>aerogear-dev mailing list<br><a>aerogear-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</blockquote></div><br></div>_______________________________________________<br>aerogear-dev mailing list<br><a></a></blockquote></div></div></div></blockquote></div></div></blockquote><div> </div><div> </div><br><br>-- <br>
Sent from Gmail Mobile<br>