{"action":"created","issue":{"url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/446","labels_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/446/labels{/name}","comments_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/446/comments","events_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/446/events","html_url":"https://github.com/j2objc-contrib/j2objc-gradle/issues/446","id":104204749,"number":446,"title":"XcodeTask must include references to existing referenced native libraries","user":{"login":"confile","id":64265,"avatar_url":"https://avatars.githubusercontent.com/u/64265?v=3","gravatar_id":"","url":"https://api.github.com/users/confile","html_url":"https://github.com/confile","followers_url":"https://api.github.com/users/confile/followers","following_url":"https://api.github.com/users/confile/following{/other_user}","gists_url":"https://api.github.com/users/confile/gists{/gist_id}","starred_url":"https://api.github.com/users/confile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confile/subscriptions","organizations_url":"https://api.github.com/users/confile/orgs","repos_url":"https://api.github.com/users/confile/repos","events_url":"https://api.github.com/users/confile/events{/privacy}","received_events_url":"https://api.github.com/users/confile/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/labels/cat:xcode","name":"cat:xcode","color":"f0c0e5"},{"url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/labels/status:public-dev-assigned","name":"status:public-dev-assigned","color":"fef2c0"},{"url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/labels/type:enhancement","name":"type:enhancement","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-09-01T07:34:09Z","updated_at":"2015-09-09T17:33:03Z","closed_at":null,"body":"You can use the ``linkJ2objcLibs`` to link precompiled libs with j2objc-gradle. \r\n\r\nWhat I have a pre translated .m and .h files that are not part of .a library. How can I include them too?\r\n\r\nAs an example the following lib: https://github.com/vals-productions/sqlighter It has implementations written in objective-c which should not be translated from any Java source."},"comment":{"url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/comments/138985315","html_url":"https://github.com/j2objc-contrib/j2objc-gradle/issues/446#issuecomment-138985315","issue_url":"https://api.github.com/repos/j2objc-contrib/j2objc-gradle/issues/446","id":138985315,"user":{"login":"brunobowden","id":679339,"avatar_url":"https://avatars.githubusercontent.com/u/679339?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobowden","html_url":"https://github.com/brunobowden","followers_url":"https://api.github.com/users/brunobowden/followers","following_url":"https://api.github.com/users/brunobowden/following{/other_user}","gists_url":"https://api.github.com/users/brunobowden/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobowden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobowden/subscriptions","organizations_url":"https://api.github.com/users/brunobowden/orgs","repos_url":"https://api.github.com/users/brunobowden/repos","events_url":"https://api.github.com/users/brunobowden/events{/privacy}","received_events_url":"https://api.github.com/users/brunobowden/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T17:33:03Z","updated_at":"2015-09-09T17:33:03Z","body":"The plugin will create the podspec for the translated code. it's not that\ndifficult - you can see an example copy below.\n\nAs a stop gap, we could add support for the plugin to reference extra\npodspec's in the Podfile. The Podfile is what is loaded by the Xcode\nWorkspace and the leads to all the magic happening with CocoaPods. For now,\nall these files can be manually edited but the Podfile will be overwritten\nwhen j2objcXcode is run again.\n\n```\nPod::Spec.new do |spec|\nspec.name = 'j2objc-base-debug'\nspec.version = '1.0'\nspec.summary = 'Generated by the J2ObjC Gradle Plugin.'\nspec.public_header_files = 'j2objcOutputs/src/main/objc/**/*.h'\nspec.resources = 'j2objcOutputs/src/main/resources/**/*'\nspec.requires_arc = true\nspec.preserve_paths = 'j2objcOutputs/src/main/objc/**/*'\nspec.libraries = 'ObjC', 'guava', 'javax_inject', 'jre_emul', 'jsr305',\n'z', 'icucore', 'base-j2objc'\nspec.xcconfig = {\n    'HEADER_SEARCH_PATHS' =>\n'/Users/brunobowden/dev/j2objc-versions/j2objc-0.9.8/include',\n    'LIBRARY_SEARCH_PATHS' =>\n'/Users/brunobowden/dev/j2objc-versions/j2objc-0.9.8/lib\n/Users/brunobowden/dev/taptap/base/build/j2objcOutputs/lib/iosDebug'\n}\nend\n\n```\nOn Tue, Sep 8, 2015 at 7:23 PM Advay Mengle <notifications@github.com>\nwrote:\n\n> Let's just solve the issue of an existing native library here, it is\n> simpler than solving all dependencies.\n>\n> Since I am definitely not a pod expert, here is a guess as to how this\n> should work:\n>\n>    - Given an external library, I don't think the plugin should be\n>    responsible for *creating* a podspec for that library. So I'd manually\n>    create one for that other library and put it somewhere easy to find.\n>    - Add an optional map argument to extraNativeLib pointing to the\n>    podspec for that library.\n>    - Somehow reference that podspec in the the files that are created in\n>    XcodeTask.\n>\n> There's more work for referencing other j2objc projects that the plugin\n> itself makes, but first let's get the easier case of an existing library\n> done.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/j2objc-contrib/j2objc-gradle/issues/446#issuecomment-138640367>\n> .\n>\n"}}