forked from Kotlin/kotlinx.serialization
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Readme and docs updated, license and copyright added
- Loading branch information
Showing
68 changed files
with
825 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Building Kotlin Serialization from the source | ||
|
||
## Runtime library | ||
|
||
To build Kotlin Serialization library from the source run `./gradlew publishToMavenLocal`. | ||
After that, you can include this library in arbitrary projects like usual gradle dependency: | ||
|
||
```gradle | ||
repositories { | ||
jcenter() | ||
mavenLocal() | ||
} | ||
dependencies { | ||
compile "org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.1" | ||
} | ||
``` | ||
|
||
## Compiler plugin for Gradle | ||
|
||
Compiler plugin for Gradle is hosted in a separate branch of Kotlin compiler. | ||
Steps to build it are explained | ||
[here](https://github.com/JetBrains/kotlin/tree/rr/kotlinx.serialization/libraries#kotlin-serialization-gradle-plugin). | ||
|
||
## IDEA plugin | ||
|
||
IDEA plugin for is hosted in serialization is likewise hosted in a separate branch of Kotlin compiler. | ||
Steps to build it are explained | ||
[here](https://github.com/JetBrains/kotlin/blob/rr/kotlinx.serialization/plugins/kotlin-serialization/kotlin-serialization-compiler/README.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Kotlin Serialization JS example | ||
# Example Kotlin serialization project for JS | ||
|
||
This project showcases conversion of objects from and to different formats on Kotlin/JS frontend. | ||
|
||
1. Run `./gradlew build` | ||
2. Point your browser to `web/index.html` | ||
|
||
You can see how easily one can convert objects from and to different formats |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,18 @@ | ||
/* | ||
* Copyright 2017 JetBrains s.r.o. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
rootProject.name = 'example-js' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Example Kotlin serialization project for JVM | ||
|
||
This project showcases various built-in and custom serialization formats and | ||
test cases for classes that can be serialized into those formats. | ||
|
||
Use `./gradlew runApp` to run a self-test showing how classes are serialization into those formats | ||
and back into Kotlin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.