Hi Jens,

I would just go ahead and use PhoneGap; otherwise you’ll be reinventing 
> most of what it does.
> Even if you wrote your own UIKit wrapper code, it’s still iOS-only, so 
> you’d still need to write new code for a Mac OS version. 
>

I'm sorry, your rationale appears to be contradictory: if I need to come up 
with a solution that works on the Mac anyway, why not figure one out that 
works on iOS too?

If PhoneGap offers the only way to do this now, I guess the question moves 
on to "how do they do it?" If this is the project you're talking about 
(https://github.com/couchbaselabs/Couchbase-Lite-PhoneGap-Plugin), there's 
surprisingly little code in that project, at the core of which is this 
method:

- (void)launchCouchbaseLite
{
    NSLog(@"Launching Couchbase Lite...");
    CBLManager* dbmgr = [CBLManager sharedInstance];
    CBLRegisterJSViewCompiler();
    self.liteURL = dbmgr.internalURL;
    NSLog(@"Couchbase Lite url = %@", self.liteURL);
}

In my own attempt I used the -internalURL method without success, but this 
CBLRegisterJSViewCompiler(), which digs into an included binary 
framework... and this is where I lose the trail at the moment. Is this path 
worth pursuing, do you think? Or is this a rabbit hole that leads to 
requiring PhoneGap, and I'm back to square one?

Cheers,
Aaron 

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/e4c64f64-09aa-4cee-87a6-406aa4600643%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to