On Wed, Dec 21, 2016 at 5:11 PM, Bryan Buchanan <[email protected]> wrote:
> Not sure I understand why it needs native code of server-side stuff. > > It's just a library producing a text file, it's all Java. When I create a > CN1 app, doesn't just the byte code of my app get sent to the build server ? > The jar they produce is for Android, as they say. This likely uses Android specific APIs not available in Codename One. You'd need to include the jar in the native/android directory so that it would be referenced only for the Android build - you could then write a native interface that used their functionality. Many libraries are fairly simple to port over to Codename One if you have the source. The chances of an arbitrary jar just working are slim to none. That is why we have the cn1lib format. > > In any case, I just checked the PDFJet Open Source code, and it's > (unsurprisingly) source code, so I could include that with my code for my > CN1 app, so CN1 can build as per usual (for all platforms), and check with > the PDFJet guys that doing this but purchasing a commercial licence was an > OK option. > You can give that a try. Usually I start a new Codename One project, and copy the java source files into it. Then start fixing errors as they come up. With something like PDF, you're likely to get in deep pretty fast. Which is why I suggested that doing it server-side is the easiest way. Steve > > > On Thursday, December 22, 2016 at 10:59:53 AM UTC+10, Steve Hannah wrote: >> >> You'll need to either do the PDF stuff server-side, or you'll have to do >> it with native interfaces. I've never used this lib, but they say that it >> is compatible with Android and WinPhone. It isn't clear whether their .Net >> version works on UWP. In either case, you'll need to do those using native >> interfaces. You'd need to find a different lib for iOS. >> >> The easiest solution would be to do it server-side. >> >> Steve >> >> -- > You received this message because you are subscribed to the Google Groups > "CodenameOne Discussions" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at https://groups.google.com/ > group/codenameone-discussions. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/codenameone-discussions/c9ee060b-fb3b-45fc-9763- > b765ef6f787d%40googlegroups.com > <https://groups.google.com/d/msgid/codenameone-discussions/c9ee060b-fb3b-45fc-9763-b765ef6f787d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Steve Hannah Software Developer Codename One http://www.codenameone.com -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKV32a14HeHSqL8DA81GXbYZe%2BgxBKBbzDQfZCzi7uNgrw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
