Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build external Java libs into standalone native libs. #431

Merged
merged 1 commit into from
Aug 28, 2015

Conversation

advayDev1
Copy link
Contributor

Rename the old j2objcTranslation to j2objcTranslationClosure

Add a new dependency type j2objcTranslation that allows you to
convert an entire source jar into a standalone library as a separate Gradle project.
You then depend on that project instead of the external library when
you want to use the functionality elsewhere.

This causes the external library to be translated and compiled only once,
and not partially and duplicatively as with --build-closure.

Fixes #429; fixes #419

TESTED=yes

@advayDev1
Copy link
Contributor Author

ping @brunobowden

@@ -26,7 +26,7 @@ import org.gradle.api.artifacts.SelfResolvingDependency

/**
* Converts `[test]compile` dependencies to their
* `j2objcTranslation` and/or `j2objcLinkage` equivalents, depending on the type
* `j2objcTranslationClosure` and/or `j2objcLinkage` equivalents, depending on the type
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improve explanation:

* Converts `[test]compile` dependencies to one of the following (or their equivalent):
* j2objcLinkage - EXPLANATION HERE
* j2objcTranslationClosure - EXPLANATION HERE

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, but for DependencyConverter I just detailed how compile and testCompile get converted.
The definitions of j2objcLinkage, etc. are now in DependencyResolver's javadoc.

@brunobowden
Copy link
Contributor

LGTM

Rename the old `j2objcTranslation` to `j2objcTranslationClosure`

Add a new dependency type `j2objcTranslation` that allows you to
convert an entire source jar into a standalone library as a separate Gradle project.
You then depend on that project instead of the external library when
you want to use the functionality elsewhere.

This causes the external library to be translated and compiled only once,
and not partially and duplicatively as with --build-closure.

Fixes j2objc-contrib#429; fixes j2objc-contrib#419

TESTED=yes
advayDev1 added a commit that referenced this pull request Aug 28, 2015
Build external Java libs into standalone native libs.
@advayDev1 advayDev1 merged commit 7d4a2c7 into j2objc-contrib:master Aug 28, 2015
@advayDev1 advayDev1 deleted the allLocal branch August 28, 2015 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature to convert an entire library jar via j2objc Handle duplicate dependencies
2 participants