Add kotlin to examples

This commit is contained in:
whyoleg 2019-09-20 19:43:39 +03:00 committed by Aliaksei Levin
parent b6a483dc41
commit 5cca461115
2 changed files with 12 additions and 0 deletions

View File

@ -23,6 +23,7 @@ select.large { font-size: large; }
<option>JavaScript</option>
<option>Go</option>
<option>Java</option>
<option>Kotlin</option>
<option>C#</option>
<option>C++</option>
<option>Swift</option>
@ -165,6 +166,7 @@ function getSupportedOs(language) {
case 'JavaScript':
return ['Windows (Node.js)', 'Linux (Node.js)', 'macOS (Node.js)', 'FreeBSD (Node.js)', 'OpenBSD (Node.js)', 'NetBSD (Node.js)', 'Browser'];
case 'Java':
case 'Kotlin':
return ['Windows', 'Linux', 'macOS', 'FreeBSD', 'OpenBSD', 'Android'];
case 'C#':
return ['Windows (through C++/CLI)', 'Universal Windows Platform (through C++/CX)', 'Windows (.Net Core)', 'Linux (.Net Core)', 'macOS (.Net Core)', 'FreeBSD (.Net Core)'];
@ -182,6 +184,7 @@ function getExampleAnchor(language) {
case 'JavaScript':
case 'Go':
case 'Java':
case 'Kotlin':
case 'Swift':
case 'Objective-C':
case 'Rust':
@ -272,6 +275,7 @@ function getTarget(language, os) {
case 'C++':
return 'tdclient';
case 'Java':
case 'Kotlin':
return 'JNI';
default:
return 'tdjson';

View File

@ -13,6 +13,7 @@ Choose your preferred programming language to see examples of usage and a detail
- [JavaScript](#javascript)
- [Go](#go)
- [Java](#java)
- [Kotlin](#kotlin)
- [C#](#csharp)
- [C++](#cxx)
- [Swift](#swift)
@ -86,6 +87,13 @@ To use TDLib to create Android Java applications, use our [prebuilt library for
You can also see [JTDLib](https://github.com/ErnyTech/JTDLib) for another example of Java wrapper for TDLib.
<a name="kotlin"></a>
## Using TDLib in Kotlin projects
TDLib can be used from the Kotlin/JVM programming language through same way as in [JAVA](#java).
You can also use [ktd](https://github.com/whyoleg/ktd) library with kotlin specific bindings.
<a name="csharp"></a>
## Using TDLib in C# projects