Skip to content

Commit 0a34144

Browse files
committed
Readme and Apache licenses
1 parent ac687c3 commit 0a34144

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Kotlin Adaptor for RxJava
2+
3+
This adaptor allows Kotlin Functions to be used and RxJava will know how to invoke them
4+
5+
This enable code such as:
6+
7+
```kotlin
8+
Observable.toObservable("one", "two", "three")
9+
.take(2)
10+
.subscribe{ (arg:String) ->
11+
println(arg)
12+
}
13+
```
14+
15+
In the future this module will expose a more idiomatic way to use RxJava inside Kotlin
16+
17+
# Binaries
18+
19+
Binaries and dependency information for Maven, Ivy, Gradle and others can be found at [http://search.maven.org](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22rxjava-kotlin%22).
20+
21+
Example for Maven:
22+
23+
```xml
24+
<dependency>
25+
<groupId>com.netflix.rxjava</groupId>
26+
<artifactId>rxjava-kotlin</artifactId>
27+
<version>x.y.z</version>
28+
</dependency>
29+
```
30+
31+
and for Ivy:
32+
33+
```xml
34+
<dependency org="com.netflix.rxjava" name="rxjava-kotlin" rev="x.y.z" />
35+
```
36+

language-adaptors/rxjava-kotlin/src/main/kotlin/rx/lang/kotlin/KotlinAdaptor.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/**
2+
* Copyright 2013 Netflix, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package rx.lang.kotlin
218

319
import rx.util.functions.FunctionLanguageAdaptor

language-adaptors/rxjava-kotlin/src/test/kotlin/rx/lang/kotlin/ObservableTests.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/**
2+
* Copyright 2013 Netflix, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package rx.lang.kotlin
218

319
import rx.Observable

0 commit comments

Comments
 (0)