threerings / react

A signals/slots plus FRP-like library for Java and Objective-C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React

React is a low-level library that provides signal/slot and functional reactive programming-like primitives. It can serve as the basis for a user interface toolkit, or any other library that has a model on which clients will listen and to which they will react.

Building (Java)

The library is built using SBT or Maven.

Invoke sbt publish-local to build and install the library to your local Ivy repository (i.e. ~/.ivy2/local).

Invoke mvn install to build and install the library to your local Maven repository (i.e. ~/.m2/repository).

Building (Objective-C)

The Objective-C library is distributed as an Xcode project with no external dependencies. Add react.xcodeproj to your project, add /path/to/react/src/main/objc to your user header search paths, and add #import "React.h" to your project's pre-compiled header.

Artifacts

To add a React dependency to a Maven project, add the following to your pom.xml:

<dependencies>
  <dependency>
    <groupId>com.threerings</groupId>
    <artifactId>react</artifactId>
    <version>1.5.1</version>
  </dependency>
</dependencies>

To add it to an Ivy, SBT, or other Maven-repository-using build configuration, simply remove the vast majority of the boilerplate above.

If you prefer to download a pre-built binary, that can be found here:

GWT

React is also usable from GWT. Add the jar to your project per the above instructions and add the following to your .gwt.xml file:

<inherits name="react"/>

Distribution

React is released under the New BSD License. The most recent version of the library is available at http://github.com/threerings/react

Contact

Questions, comments, and other communications should be directed to the Three Rings Libraries Google Group.

About

A signals/slots plus FRP-like library for Java and Objective-C

License:Other


Languages

Language:Java 99.6%Language:Scala 0.4%