yahoo / squidb

SquiDB is a SQLite database library for Android and iOS
https://github.com/yahoo/squidb/wiki
Apache License 2.0
1.31k stars 132 forks source link

Use net.ltgt.apt for core modules when using j2objc #185

Closed aminelaadhari closed 8 years ago

aminelaadhari commented 8 years ago

When using J2objc it doesn't make sense to use com.android.library for core modules.

There is an equivalent plugin to android-apt which works with java projects: https://plugins.gradle.org/plugin/net.ltgt.apt https://bitbucket.org/hvisser/android-apt/issues/18/support-java-plugin

This plugin should be used when the core module is intended to be translated with j2objc.

sbosley commented 8 years ago

Actually, j2objc supports a few Android packages, as seen here: http://j2objc.org/reference/packages.html. We've found that we often want to take advantage of these classes, so we still recommend setting up any shared code as an Android library project. Of course, there are many different ways one could set up a j2objc project; we've just documented the particular things we've found most useful.

aminelaadhari commented 8 years ago

It makes sense. Thanks for the explanation.

sbosley commented 8 years ago

Sure thing! If you find that a different project setup works better for your use case, feel free to write up some details and we can see about adding it to the wiki.