Comments (8)
@advayDev1 I suppose you know more about this?
from j2objc-gradle.
Can you be more specific about what you mean by dependencies? Are these transitive dependencies of the instant jars on other jars?
from j2objc-gradle.
@advayDev1 I mean transitive dependencies.
from j2objc-gradle.
I mean that they should be resolved like in:
dependencies {
compile ...
}
from j2objc-gradle.
are you asking for:
- compile dependencies named in the dependencies DSL block should be automatically converted into translate* flags?
or - such dependencies, whether in the dependencies DSL block or mentioned in translate* flags, should have their transitive dependencies included automatically?
from j2objc-gradle.
No to make it simple. I want that our plugin auto resolves transitive dependencies. That's it.
from j2objc-gradle.
I don't know if we should do that. I know in my case it would actually be harmful, and I can imagine it would be for many people. Consider that your projectA uses libB. libB relies on Guava. With this, we would use the public Guava jar as referenced in libB's pom file (for example), but that would be wrong, we should instead use the guava in the j2objc dist library. This could happen for any library. There is no way to map say a Maven pom file transitive dependency to the name in the j2objc lib directory (afaik).
I assume you want this to make --build-closure easier to manage, as it would be for me as well. But as soon as I started doing something that wasn't simple (for example, in my case my projectA relies on libB which relies on libC which has some JNI components that I then had to create a libCModified version myself which stubs or replaces with OCNI those JNI components), it did not work to do it automatically.
from j2objc-gradle.
So, the right way to do this is use:
project.sourceSets.main.compileClasspath.getAsPath()
project.sourceSets.test.compileClasspath.getAsPath()
they can just be added to translateClasspath.
Also, #112 does not need to be done to do this, only nice-to-have.
Need to solve #180 because otherwise the junit.jar for example we reference in the translateClasspath may be of a different version than the junit.jar in the j2objc dist.
from j2objc-gradle.
Related Issues (20)
- Possible to add *junit* to *spec.libraries* in generated podspec? HOT 1
- Setting xcodeTargetsManualConfig to false for a multi-module project fails HOT 2
- Translation fails to link dependencies HOT 1
- Possible to run an Android build whilst skipping all tasks of the J2ObjC Gradle plugin?
- Extracting resources from source jars HOT 1
- Does not convert app android to Ios HOT 5
- Stripping reflection applies to and breaks tests
- Need to add Guava headers to native compile header search path HOT 2
- Latest version of the Android Plugin for Gradle (2.0.0) requires Gradle 2.10 or later HOT 2
- Test source cannot be moved from default location
- Require way to set extended podspec values HOT 1
- I wrote a few gradle tasks to generate `name.framework`, without pods, >3 votes -> pull request HOT 7
- How to verify translated objective c unit tests ran successfully? HOT 1
- Regexp does not remove zeros at the beginning
- j2objcTestDebug is stuck when prefixes specified HOT 1
- Is this project still active? HOT 3
- Could not compile Source project with createIos_arm64
- How to install or implement in Android studio ??? HOT 1
- Test issue
- rat checks fail with basic $ ./gradlew check on mac HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from j2objc-gradle.