levlam
98d2c80f86
Fix misprint.
2024-06-16 22:29:38 +03:00
levlam
f9b7e1bc2e
Add example of JSON interface usage from Java.
2024-05-31 08:10:40 +03:00
levlam
91ac878840
Improve relative paths in .gitignore.
2024-05-31 01:17:34 +03:00
levlam
3c8ceaeeed
Delete also class-file directory before building in Java example.
2024-05-30 22:52:54 +03:00
levlam
b336bf524a
Generate documentation only for specific files in Java example.
2024-05-30 22:49:04 +03:00
levlam
7cab37afe7
Remove docs directory before generation of new documentation in Java example.
2024-05-30 22:16:03 +03:00
Vyacheslav
d0ff90bb19
Replace noinspection
instruction with proper @SuppressWarnings
annotation
...
`//noinspection unchecked` suppresses unchecked cast warning only in the IDE. `@SuppressWarning` annotation properly suppresses both IDE and the compiler warnings.
2024-02-16 11:26:46 +03:00
levlam
2a8156a1bc
Add registerUser.disable_notification.
2024-01-29 16:43:42 +03:00
levlam
562374088c
Remove setTdlibParameters.enable_storage_optimizer/ignore_file_names parameters in favor of "use_storage_optimizer" and "ignore_file_names" options.
2024-01-11 13:54:23 +03:00
levlam
d963044eb9
Update copyright year.
2024-01-01 03:07:21 +03:00
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
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
a7f8ff6eef
Fix Java interface with SplitSource.
2023-08-07 01:47:43 +03:00
levlam
c62c84665a
Update sendMessage usages in tests and examples.
2023-06-12 15:30:07 +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
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
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
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
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
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
levlam
89aaf648fc
Add Client.setLogMessageHandler to Java example.
2022-07-08 15:01:38 +03:00
levlam
8edd406dea
Explicitly specify charset for javadoc.
2022-06-16 16:12:51 +03:00
levlam
3edf14b64e
Explicitly specify encoding for javac and javadoc.
2022-06-04 23:22:01 +03:00
levlam
8085779cdc
Update copyright year.
2022-01-01 03:35:39 +03:00
levlam
26d2ee649d
Add some missing new lines at the end of files.
2021-12-27 14:03:50 +03:00
levlam
4eaae33068
Improve Java example README.
2021-12-19 18:10:59 +03:00
levlam
059fe9911e
Documentation improvements.
2021-12-17 16:28:14 +03:00
levlam
1e49f6dc13
Use auto as variable type if it is initialized with a cast.
2021-10-20 01:27:02 +03:00
levlam
41c391f140
Update layer to 133.
2021-09-03 12:27:59 +03:00
levlam
0ec10947d5
Fix some misprints.
2021-09-06 13:58:40 +03:00
levlam
438ae78e8a
Enable some CMake policies in Java example.
2021-09-01 19:25:00 +03:00
levlam
b002c2d4a8
Use loadChats instead of getChats in examples.
2021-08-10 18:09:51 +03:00
levlam
9ad1b3b49a
Use set_log_message_callback in Java example.
2021-05-18 16:36:11 +03:00
levlam
f37f9a78c1
Fix chat list printing in Java example.
2021-01-18 14:07:06 +03:00
levlam
52c1da0a70
Update copyright year.
2021-01-01 15:57:46 +03:00
levlam
5eea5b7501
Rename create_client to create_client_id.
2020-11-15 01:13:11 +03:00
levlam
66af1a439a
Use getOptions as first request.
2020-11-14 23:00:05 +03:00