Fix example with native dependencies and update readme with native list
This commit is contained in:
parent
17a930d009
commit
262406a80c
41
README.md
41
README.md
|
@ -44,11 +44,19 @@ Repository:
|
||||||
```
|
```
|
||||||
Dependency:
|
Dependency:
|
||||||
```xml
|
```xml
|
||||||
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>it.tdlight</groupId>
|
<groupId>it.tdlight</groupId>
|
||||||
<artifactId>tdlight-java</artifactId>
|
<artifactId>tdlight-java</artifactId>
|
||||||
<version>REPLACE_WITH_LATEST_VERSION</version>
|
<version>REPLACE_WITH_LATEST_VERSION</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>it.tdlight</groupId>
|
||||||
|
<artifactId>tdlight-natives-linux-amd64</artifactId>
|
||||||
|
<version>REPLACE_WITH_LATEST_NATIVES_VERSION</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- include other native versions that you want, for example for macos, windows, and other architectures here -->
|
||||||
|
</dependencies>
|
||||||
```
|
```
|
||||||
#### Gradle
|
#### Gradle
|
||||||
```groovy
|
```groovy
|
||||||
|
@ -57,8 +65,21 @@ repositories {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'it.tdlight:tdlight-java:REPLACE_WITH_LATEST_VERSION'
|
implementation 'it.tdlight:tdlight-java:REPLACE_WITH_LATEST_VERSION'
|
||||||
|
implementation 'it.tdlight:tdlight-natives-linux-amd64:REPLACE_WITH_LATEST_NATIVES_VERSION'
|
||||||
|
// include other native versions that you want, for example for macos, windows, and other architectures here
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
#### Natives inclusion
|
||||||
|
To use TDLight java for a specific platform, you need to include the related native dependencies:
|
||||||
|
- `tdlight-natives-linux-amd64`
|
||||||
|
- `tdlight-natives-linux-aarch64`
|
||||||
|
- `tdlight-natives-linux-x86`
|
||||||
|
- `tdlight-natives-linux-armv6`
|
||||||
|
- `tdlight-natives-linux-armv7`
|
||||||
|
- `tdlight-natives-linux-ppc64le`
|
||||||
|
- `tdlight-natives-windows-amd64`
|
||||||
|
- `tdlight-natives-osx-amd64`
|
||||||
|
|
||||||
### For TDLight Java with official TDLib
|
### For TDLight Java with official TDLib
|
||||||
#### Maven
|
#### Maven
|
||||||
Repository:
|
Repository:
|
||||||
|
@ -73,11 +94,19 @@ Repository:
|
||||||
```
|
```
|
||||||
Dependency:
|
Dependency:
|
||||||
```xml
|
```xml
|
||||||
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>it.tdlight</groupId>
|
<groupId>it.tdlight</groupId>
|
||||||
<artifactId>tdlib-java</artifactId>
|
<artifactId>tdlib-java</artifactId>
|
||||||
<version>REPLACE_WITH_LATEST_VERSION</version>
|
<version>REPLACE_WITH_LATEST_VERSION</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>it.tdlight</groupId>
|
||||||
|
<artifactId>tdlib-natives-linux-amd64</artifactId>
|
||||||
|
<version>REPLACE_WITH_LATEST_NATIVES_VERSION</version>
|
||||||
|
</dependency>
|
||||||
|
<!-- include other native versions that you want, for example for macos, windows, and other architectures here -->
|
||||||
|
</dependencies>
|
||||||
```
|
```
|
||||||
#### Gradle
|
#### Gradle
|
||||||
```groovy
|
```groovy
|
||||||
|
@ -86,8 +115,20 @@ repositories {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'it.tdlight:tdlib-java:REPLACE_WITH_LATEST_VERSION'
|
implementation 'it.tdlight:tdlib-java:REPLACE_WITH_LATEST_VERSION'
|
||||||
|
implementation 'it.tdlight:tdlib-natives-linux-amd64:REPLACE_WITH_LATEST_NATIVES_VERSION'
|
||||||
|
// include other native versions that you want, for example for macos, windows, and other architectures here
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
#### Natives inclusion
|
||||||
|
To use TDLight java for a specific platform, you need to include the related native dependencies:
|
||||||
|
- `tdlib-natives-linux-amd64`
|
||||||
|
- `tdlib-natives-linux-aarch64`
|
||||||
|
- `tdlib-natives-linux-x86`
|
||||||
|
- `tdlib-natives-linux-armv6`
|
||||||
|
- `tdlib-natives-linux-armv7`
|
||||||
|
- `tdlib-natives-linux-ppc64le`
|
||||||
|
- `tdlib-natives-windows-amd64`
|
||||||
|
- `tdlib-natives-osx-amd64`
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
Simple initialization of a native TDLib client
|
Simple initialization of a native TDLib client
|
||||||
|
|
|
@ -26,6 +26,26 @@
|
||||||
<artifactId>tdlight-java</artifactId>
|
<artifactId>tdlight-java</artifactId>
|
||||||
<version>RELEASE</version>
|
<version>RELEASE</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>it.tdlight</groupId>
|
||||||
|
<artifactId>tdlight-natives-linux-amd64</artifactId>
|
||||||
|
<version>RELEASE</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>it.tdlight</groupId>
|
||||||
|
<artifactId>tdlight-natives-linux-aarch64</artifactId>
|
||||||
|
<version>RELEASE</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>it.tdlight</groupId>
|
||||||
|
<artifactId>tdlight-natives-windows-amd64</artifactId>
|
||||||
|
<version>RELEASE</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>it.tdlight</groupId>
|
||||||
|
<artifactId>tdlight-natives-osx-amd64</artifactId>
|
||||||
|
<version>RELEASE</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
|
@ -337,7 +337,7 @@ public final class Example {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class OrderedChat implements Comparable<OrderedChat> {
|
public static class OrderedChat implements Comparable<OrderedChat> {
|
||||||
final long chatId;
|
final long chatId;
|
||||||
final TdApi.ChatPosition position;
|
final TdApi.ChatPosition position;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user