Commit Graph

565 Commits

Author SHA1 Message Date
levlam
450a00a8a8 Remove mentions of unused NullPointerException. 2023-10-30 21:45:26 +03:00
levlam
f1efac5caf Update Java example to use type-safe Client.Execute. 2023-10-30 21:38:00 +03:00
levlam
4eaa1674d6 Fix Exception class name and base class. 2023-10-30 21:36:29 +03:00
levlam
3841420014 Fix Client.execute Java documentation. 2023-10-30 21:32:34 +03:00
levlam
d16fc8294c Add td_api::linkPreviewOptions. 2023-10-16 20:12:33 +03:00
Vyacheslav
dd77e4628f Strong typed API for synchronous TDLib method execution in Java interface
`Client.execute` in Java interface is now strongly typed: returned TDLib object type depends on the return type defined in the corresponding Function class.

When TDLib error is occurred, method now throws `Client.ExecutionError`.

This change adds compile-time protection against return type change and allows using this pattern:

```
try {
  TdApi.SpecificReturnType result = Client.execute(function);
  // work with strongly typed resultl without casting and type checks
} catch (Client.ExecutionError error) {
  // Handle error
}
```
2023-10-26 13:15:37 +03:00
AYMEN Mohammed
522d54483c Remove outdated ENVIROMENT variable from tdweb worker. 2023-10-19 11:57:14 +03:00
AYMEN Mohammed
50c3bf2e4f
Fix typos. (#2641) 2023-10-18 19:12:31 +03:00
levlam
4ed0b23c9c Update version to 1.8.20. 2023-10-13 00:45:38 +03:00
levlam
9289270cd9 Close databases and binlog on another thread. 2023-10-05 21:50:53 +03:00
levlam
2589c3fd46 Update version to 1.8.19. 2023-09-22 16:22:03 +03:00
levlam
100ca72b91 Update version to 1.8.18. 2023-09-13 18:14:23 +03:00
levlam
edc528457f Update version to 1.8.17. 2023-09-06 15:37:41 +03:00
levlam
8a6f68f3a2 Find only JVM component of JNI in CMake 3.24+ by @cavallium. 2023-09-06 11:51:47 +03:00
levlam
db5d5da09b Update Java example to the latest TDLib version. 2023-08-16 00:44:12 +03:00
levlam
cde095db6c Update version to 1.8.16. 2023-08-15 18:11:16 +03:00
levlam
a7f8ff6eef Fix Java interface with SplitSource. 2023-08-07 01:47:43 +03:00
levlam
64264b0f77 Update OpenSSL to 3.1.2 in iOS example. 2023-08-03 15:12:43 +03:00
Vincent Neo
6a6cd8af76 update example to build openssl 3.1.1 2023-07-31 00:57:28 +03:00
levlam
2e5319ff36 Update version to 1.8.15. 2023-07-20 22:24:40 +03:00
levlam
bee41cd769 Remove deleted C# library from the list of examples. 2023-07-20 18:08:00 +03:00
levlam
98352f5571 Fix warning NU5128. 2023-06-28 00:42:35 +03:00
levlam
c62c84665a Update sendMessage usages in tests and examples. 2023-06-12 15:30:07 +03:00
Fela Ameghino
90c36b602c Fixed hardcoded architecture in targets 2023-05-22 17:12:50 +03:00
Marco Melorio
caac73c680
Update Telegrand name and link. (#2438) 2023-05-18 15:02:16 +03:00
levlam
7bb96fd575 Use specific vcpkg version in C# and UWP example READMEs. 2023-05-10 16:36:52 +03:00
levlam
4d9dc914be Exit UWP build early if TDLib build failed. 2023-05-03 14:46:03 +03:00
levlam
36a45607f2 Use lazy initialization for Java class identifiers to avoid global reference table overflow on some Android 4 devices. 2023-04-26 17:15:53 +03:00
levlam
419a28125b Remove finalizer from Java Client. 2023-04-26 16:15:44 +03:00
levlam
132566b393 Exit check-environment script if make installation is unsupported. 2023-04-25 19:55:44 +03:00
levlam
8517026415 Update version to 1.8.14. 2023-04-21 13:15:29 +03:00
levlam
be3c2c8c5d Add link to a Golang wrapper. 2023-03-28 15:28:23 +03:00
levlam
9692ecf25b Update default OpenSSL versions in examples. 2023-03-26 22:36:09 +03:00
levlam
eb664b4e9f Update version to 1.8.13. 2023-03-25 09:24:10 +03:00
levlam
5abcf24f1f Update UWP example README. 2023-03-25 09:16:52 +03:00
Fela Ameghino
e9b6313b56 Added nupkg support to UWP example 2023-03-25 09:04:21 +03:00
levlam
0c09070ce5 Update version to 1.8.12. 2023-03-08 21:14:44 +03:00
levlam
25154f1ee7 Update PHP download link. 2023-03-07 14:46:43 +03:00
levlam
82cdc98ecf Fail iOS example building if can't apply OpenSSL patch. 2023-03-03 14:11:46 +03:00
levlam
15944f2a00 Add ARM64 support for watchOS. 2023-03-03 14:10:15 +03:00
levlam
22fdc0258b Use "receive"/"have"/"loaded" instead of "got" and other log message improvements. 2023-02-26 14:22:31 +03:00
levlam
1724002c60 Add Vala example. 2023-02-04 12:51:20 +03:00
AYMENJD
7f8c3e8402 Fix checkAuthenticationEmailCode in Python example. 2023-02-04 12:46:34 +03:00
levlam
3179d35694 Update version to 1.8.11. 2023-02-02 19:19:34 +03:00
levlam
75bdc6292b Remove some getAuthorizationState usages. 2023-01-12 22:25:47 +03:00
levlam
64406035a7 Update rust-tdlib link. 2023-01-10 22:59:37 +03:00
levlam
903d994799 Improve punctuation. 2023-01-02 15:38:04 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
1d07857cbe Keep only full name for Go examples. 2022-12-30 16:30:10 +03:00
Reinhart Previano Koentjoro
9720a750f4 Clarify package names for Go
Third-party Go packages are named after Git repository URLs, which could cause confusion if some libraries are bearing the same name. [go-tdlib](https://github.com/zelenin/go-tdlib) and [go-tdlib](https://github.com/Arman92/go-tdlib) are just some examples which may confuse people. So I added their canonical package names according to Go package registry.
2022-12-30 16:28:55 +03:00
levlam
93c42f6d7c Update version to 1.8.10. 2022-12-30 12:59:58 +03:00
levlam
9e524598a5 Update version to 1.8.9. 2022-12-06 23:49:39 +03:00
levlam
afff4aceee Add more Dart examples. 2022-11-06 23:17:31 +03:00
levlam
bbe37ee594 Update version to 1.8.8. 2022-11-05 02:50:48 +03:00
levlam
bfd8c8dcf3 Fix OpenSSL building in iOS example. 2022-10-14 23:09:16 +03:00
levlam
7f5f6e41ad Minor improvements. 2022-10-09 19:00:14 +03:00
levlam
a7a17b34b3 Update version to 1.8.7. 2022-10-07 01:49:49 +03:00
levlam
68d6c43f02 Add Dockerfile for Android example. 2022-10-07 01:47:03 +03:00
levlam
ff91aa0192 Build and install only OpenSSL libraries in iOS example. Fixes #2152. Update OpenSSL to 1.0.2u. 2022-10-05 14:31:02 +03:00
levlam
23df775c56 Remove bitcode from iOS/tvOS/watchOS binaries as required by https://developer.apple.com/documentation/Xcode-Release-Notes/xcode-14-release-notes. 2022-09-30 14:57:03 +03:00
levlam
15db91b536 Update version to 1.8.6. 2022-09-16 21:38:09 +03:00
levlam
4d5625a06f Explicitly load tdjni in Client.java and TdApi.java. 2022-09-08 14:27:07 +03:00
levlam
612afe63fe Update Java example. 2022-09-08 13:47:16 +03:00
levlam
ed8e11774c Update Swift example. 2022-09-08 13:11:35 +03:00
levlam
a81d3768b4 Update Python example. 2022-09-08 13:11:08 +03:00
levlam
ffdef31e0b Update UWP example. 2022-09-08 12:34:33 +03:00
levlam
d14e3274fd Update C# example. 2022-09-08 12:24:56 +03:00
levlam
8d32a1e143 Update С++ example. 2022-09-08 00:41:35 +03:00
levlam
f6a2ecdded Inline tdlibParameters in setTdlibParameters. 2022-09-07 22:19:08 +03:00
levlam
287cceb162 Remove separate authorizationStateWaitEncryptionKey. 2022-09-07 21:27:23 +03:00
levlam
e49135e542 Use 32-bit native build in UWP example. 2022-08-16 13:28:34 +03:00
levlam
d2348e3c97 Android example: avoid usage of case, which doesn't seem to work in outdated default bash on macOS. 2022-08-15 10:33:15 +03:00
levlam
b52e3e0e12 Add check for JDK to be actually installed. macOS has dummy /usr/bin/java. 2022-08-15 01:00:19 +03:00
levlam
bcd89728c3 Android example: improve AddIntDef.php. 2022-08-14 16:26:40 +03:00
levlam
3ea8255b42 Android example: avoid using of unsupported API versions with new NDK. 2022-08-14 15:24:40 +03:00
levlam
916a5f5848 Android example: change working directory after resolving relative paths. 2022-08-14 13:23:09 +03:00
levlam
d914505ea8 Explicitly specify jar files to Javadoc. 2022-08-13 14:26:52 +03:00
levlam
907e323f47 Use cmake and ninja from Android NDK. 2022-08-13 14:04:47 +03:00
levlam
89c79be45c Android example: quietly generate javadoc. 2022-08-13 12:20:37 +03:00
levlam
eca8cf94f4 Android example: improve checks for existence of output directory. 2022-08-13 10:37:16 +03:00
levlam
d1a6595c20 Allow to specify custom path for prebuilt Android OpenSSL. 2022-08-13 10:31:41 +03:00
levlam
bb6bd4244f Improve name of OPENSSL_VERSION argument. 2022-08-12 22:08:48 +03:00
levlam
9a469eef31 Minor fixes. 2022-08-12 18:39:36 +03:00
levlam
86294f246e Mention c++_shared in Android README. 2022-08-12 17:20:58 +03:00
levlam
0271bf0be0 Support c++_shared build in Android example. 2022-08-12 15:05:18 +03:00
levlam
f43859a3b7 Define HOST_ARCH in check-environment.sh. 2022-08-12 14:11:45 +03:00
levlam
77a8cc6499 Check argument correctness in Android build scripts. 2022-08-12 11:29:28 +03:00
levlam
de8c41a17b Add .gitignore for Android example. 2022-08-12 10:34:14 +03:00
levlam
daebae9183 Add check for glibc presense on Linux. 2022-08-12 00:51:15 +03:00
levlam
c24ed30d5b Use the current directory as classpath for javadoc. Multiple classpath
directory support seems to be broken in newer javadoc.
2022-08-11 20:38:10 +03:00
levlam
eef6f6cfa0 Fix javadoc usage. 2022-08-11 20:11:31 +03:00
levlam
5479c640fe Add example of building TDLib for Android. 2022-08-11 18:18:48 +03:00
levlam
d9cfcf88fe Update version to 1.8.5. 2022-07-31 03:19:36 +03:00
levlam
fdbd438f7f Update a link in example README. 2022-07-29 18:25:22 +03:00
levlam
376476481c Restore Java example compatibility with Java 1.8. 2022-07-21 20:44:22 +03:00
levlam
327babb851 Fix Java example for old Java versions. 2022-07-15 13:58:04 +03:00
levlam
abc9ed2cd9 Minor fixes. 2022-07-14 18:38:48 +03:00
levlam
1dec0e203c Add Java example of fatal error handler. 2022-07-08 18:44:09 +03:00
levlam
9a58bc03ab Fix Java example formatting. 2022-07-08 16:12:31 +03:00
levlam
d94a750685 Remove deprecated for more than 3 years Log.java from example. 2022-07-08 15:08:50 +03:00