Latest 1.0.1.1
Homepage https://github.com/AJ9/j2objc
License Apache License, Version 2.0
Platforms ios , requires ARC

J2ObjC: Java to Objective-C Translator and Runtime

This product is owned and maintained by Google. This repository/Cocoapod (J2ObjC101) has been created in good faith to allow others to use the J2ObjC 1.0.1 release as a Cocoapod. Should this break any laws or regulations, please contact me through Github where I will remove this on request.

Build Status

Project site: http://j2objc.org
J2ObjC blog: http://j2objc.blogspot.com
Questions and discussion: http://groups.google.com/group/j2objc-discuss

What J2ObjC Is

J2ObjC is an open-source command-line tool from Google that translates
Java source code to Objective-C for the iOS (iPhone/iPad) platform. This tool
enables Java source to be part of an iOS application’s build, as no editing
of the generated files is necessary. The goal is to write an app’s non-UI
code (such as application logic and data models) in Java, which is then
shared by web apps (using GWT), Android apps,
and iOS apps.

J2ObjC supports most Java language and runtime features required by
client-side application developers, including exceptions, inner and
anonymous classes, generic types, threads and reflection. JUnit test
translation and execution is also supported.

J2ObjC is currently beta quality. Several Google projects rely on it, but
when new projects first start working with it, they usually find new bugs
to be fixed. If you run into issues with your project, please report them!

What J2ObjC isn’t

J2ObjC does not provide any sort of platform-independent UI toolkit, nor are
there any plans to do so in the future. We believe that iOS UI code needs to
be written in Objective-C, Objective-C++ or Swift using Apple’s iOS SDK (Android
UIs using Android’s API, web app UIs using GWT, etc.).

J2ObjC cannot convert Android binary applications. Developers must have source
code for their Android app, which they either own or are licensed to use.

Requirements

  • JDK 1.7 or higher
  • Mac workstation or laptop
  • OS X 10.10 or higher
  • Xcode 7 or higher

License

This library is distributed under the Apache 2.0 license found in the
LICENSE file with the following exceptions.
The protocol buffers library is distributed under the same BSD license as
Google’s protocol buffers. See README and
LICENSE.

Latest podspec

{
    "name": "J2ObjC101",
    "version": "1.0.1.1",
    "license": {
        "type": "Apache License, Version 2.0",
        "file": "LICENSE"
    },
    "summary": "J2ObjC's 1.0.1 JRE emulation library, emulates a subset of the Java runtime library.",
    "homepage": "https://github.com/AJ9/j2objc",
    "authors": "Google Inc.",
    "source": {
        "git": "https://github.com/AJ9/j2objc.git",
        "tag": "1.0.1.1"
    },
    "platforms": {
        "ios": null
    },
    "default_subspecs": "lib/jre",
    "requires_arc": true,
    "header_mappings_dir": "dist/include",
    "public_header_files": "dist/**/*.{h,m}",
    "prepare_command": "scripts/download_distribution.sh",
    "subspecs": [
        {
            "name": "lib",
            "frameworks": "Security",
            "osx": {
                "frameworks": "ExceptionHandling"
            },
            "xcconfig": {
                "LIBRARY_SEARCH_PATHS": ""$(PODS_ROOT)/J2ObjC101/dist/lib"",
                "HEADER_SEARCH_PATHS": ""${PODS_ROOT}/J2ObjC101/dist/include""
            },
            "subspecs": [
                {
                    "name": "jre",
                    "preserve_paths": "dist",
                    "libraries": [
                        "jre_emul",
                        "icucore",
                        "z"
                    ]
                },
                {
                    "name": "jsr305",
                    "dependencies": {
                        "J2ObjC101/lib/jre": []
                    },
                    "libraries": "jsr305"
                },
                {
                    "name": "junit",
                    "dependencies": {
                        "J2ObjC101/lib/jre": []
                    },
                    "libraries": [
                        "j2objc_main",
                        "junit",
                        "mockito"
                    ]
                },
                {
                    "name": "guava",
                    "dependencies": {
                        "J2ObjC101/lib/jre": []
                    },
                    "libraries": "guava"
                }
            ]
        }
    ]
}

Pin It on Pinterest

Share This