97 Commits
Author SHA1 Message Date
Mo Firouz 818349c8da Add option to specify OkHttp dispatcher for socket connectivity. (#85) 2024-11-30 15:16:19 +00:00
Mo Firouz afc257b7b6 Add overloaded methods for async disconnect methods. (#83)
* Add overloaded methods for async disconnect methods.

* Keep socket reference until OnClose is invoked

* Correct session logout. Shutdown executor correctly.

* WebSocket client resources are released immediately after disconnection and are made ready again in case of reconnection.
2024-10-27 10:25:08 +00:00
Mo Firouz c79783367a Include generated Protobuf code in the repository to allow CI tools to build the codebase without Buf tooling. 2024-10-16 11:41:10 +01:00
Mo Firouz 00d0796b7b Update to Nakama 3.32.0. Add auto-refresh logic. (#82) 2024-10-14 10:23:37 +01:00
Mo Firouz fe8e852b4d Update dependencies. Move to use Buf to manage Protobuf compilation. (#81)
* Update dependencies. Move to use Buf to manage Protobuf compilation.
2024-10-12 16:03:00 +01:00
Gabriel 7f04a70e14 Typos (#79) 2023-07-26 14:11:52 +02:00
Simon Esposito 29d40c4157 Add fromSigningKey method to DefaultSession (#77) 2023-07-25 10:53:45 +01:00
Chris Molozian 52981f4bf6 Update Gradle javadoc task and regenerate code documentation. 2023-07-20 21:39:32 +01:00
Luke Gehorsam 1ec9b27cdf 2.3 release (#76) 2023-07-18 11:40:09 -04:00
Fernando Takagi 32a2a01325 Satori HTTP Client (#75) 2023-07-18 09:13:24 -03:00
Luke Gehorsam 3237873ce1 Satori client (#72) 2023-07-07 13:11:12 -04:00
Fernando Takagi 3a2aafb524 Test fixes (#62) 2022-09-21 11:32:09 -04:00
Tom Glenn 7bd15200c2 Add API docs (#60)
Pull Request #60
2022-01-11 16:10:31 +00:00
Luke Gehorsam cacb383dd7 set exception on connect future if socket receives failure or close while connecting 2021-03-18 20:58:20 -04:00
Luke Gehorsam ba95f1af66 rename connect future in web socket client 2021-03-18 20:53:22 -04:00
Luke Gehorsam 9e577bf82b rename cidFuture in websocketclient 2021-03-18 20:52:59 -04:00
Luke Gehorsam 4cc4cd495f add test for socket connect callbacks 2021-03-18 20:51:19 -04:00
Luke Gehorsam 76b4af4d14 add proper compilation step for google common protos and manually downlaod descriptor.proto 2021-03-16 14:13:05 -04:00
Lokesh Jangid 8090c059e9 DefaultError: allow null collationId in constructor 2021-02-17 10:28:45 +00:00
Luke 8669697d95 Add Facebook Instant Game authentication and Apple authentication (#49)
* update nakama protos

* update grpc gateway proto files

* implement auth., link, unlink apple

* add facebook instant game authentication

* add link and unlink facebook instant game

* implement demote group users and test their promotion and demotion
2021-01-25 20:59:22 -05:00
Luke Gehorsam 7ad14bee4a update grpc gateway proto files 2021-01-06 14:57:32 -05:00
Luke Gehorsam e7c0d9d05e update nakama protos 2021-01-06 11:09:53 -05:00
Luke 3dde5b3baf Fix Eclipse/IDEA support and web socket message executor (#44)
* fix idea and eclipse support for protobuf intellisense

* process web socket messages using a single thread

* allow executor service to be passed into socket, but default to single-threaded

* add multithreading socket note to java sdk

* Fix extra newline
2020-09-06 12:01:49 -04:00
Luke Gehorsam fe18af2e3d fix createSocket() overload 2020-08-17 09:32:11 -04:00
Luke 2fa7356b0e Remove protobuf-java transitive dependency and add configurable ping to socket (#37)
* extract common protos from protobuf-java rather than including it as a transitive dependency in the common-protos package

* pass socket ping to pingInterval

* pass in timeout and ping as static defaults

* update changelog

* retain old interface and simply add a new method to interface that accepts ping
2020-08-13 18:29:14 -04:00
Luke 88bcef0d15 Make GSON parse UTC properly from Nakama (#36)
* add custon Date deserializer to GSON

* don't use two different date formats

* write test verifying proper createTime() for notifs

* oops, use math.abs

* reword DateTime -> Date because this is Java not .NET

* add license header and summary to gsondateserializer
2020-08-07 09:54:23 -04:00
LukeandLuke Gehorsam b8786c50a6 Update to Gradle 6.5.1 (#35)
* update copyright to 2020

* bundle all protos with the repo and simplify build.gradle

* commit new generated source

* update to gradle 5.0

* upgrade to gradle 6.0

* upgrade to gradle 6.5.1

* suppress warnings from generate code in eclipse

* Support for logs in tests

* add basic test for listing tournaments

* replace instances of DateTime with getEpochSecond() in tournament tests

* add end time to tournament objects that don't have reset schedules

* oops, don't set end time multiple times on some objects

* don't rely on leaky tournamenet list size for end time tests

* fix assertion on tournament record expiry

* remove 'no end' from tourney descriptions that do in fact end

* remove undefined getNextReset result from tourney test with no reset schedule

* update test on creation of future tournaments

* Add support for banning users to the Java SDK

* update changelog re: tourney test suite

* Allow .proto files to be imported without needing to flatten import statements

* add newline to EOF in download-protos

* remove unused build code

* exclude actual .proto files from .jar

* exclude grpc gateway meta protos from codegen

* update shadowjar dependency and document it

* add relocation support to shadowjar

Co-authored-by: Luke Gehorsam <[email protected]>
2020-08-05 12:16:04 -04:00
Mo Firouz 46ba09b80b Update to use latest gRPC dependencies. 2020-01-23 09:39:47 +00:00
Mo Firouz 15456d4e8c Add support for more ways to create a socket. 2019-10-25 15:36:18 +02:00
Mo Firouz 2222f178a6 Fix typo in UserPresence variable naming. 2019-10-16 17:17:03 +02:00
Mo Firouz dc96afe168 Nakama-Java 2.0.2 release. 2019-10-14 12:15:07 +02:00
Mo Firouz 0b839aaea1 Add support for changes in Nakama 2.7.0 and custom Events API. #26 2019-10-14 11:43:57 +02:00
Mo Firouz 89f991b3fb Add support for listing expired leaderboard/tournament records. Fix tests. 2019-06-11 16:27:21 +01:00
Mo Firouz fc88aba004 Add basic group create, update, list test 2019-03-13 23:24:27 +00:00
Mo Firouz f7eacd10bd Update to use updated server proto 2019-02-08 16:40:04 +00:00
Nitzan Zada ea616f9c93 matched api.proto with server's v2.3.2 2019-02-08 15:33:48 +00:00
Tregub Tatiana 610f177395 listUsersStorageObjects returns only 1 object 2018-12-07 13:51:04 +00:00
Tregub Tatiana 92ca9f61bc remove failed test 2018-12-07 13:51:04 +00:00
Tregub Tatiana 37c731878d fix arguments order 2018-12-07 13:51:04 +00:00
Tregub Tatiana 8a7172d8ac test fail 2018-12-07 13:51:04 +00:00
Tregub Tatiana d4d632aa71 fix arguments ordering 2018-12-07 10:59:59 +00:00
Mo Firouz 991d78b21d Ensure storage write objects are correctly added. 2018-11-16 10:17:27 +00:00
Sergey Zalozhnikov 8c49666f58 Enable access to enums from code outside of the package 2018-11-15 15:11:43 +00:00
Mo Firouz ed8a11e7de Base64 match data. Don't set collation ID on match data 2018-11-07 09:54:07 +00:00
Sergey Zalozhnikov 2c209a8848 Enable access to join channels from code outside of the package 2018-11-01 10:37:15 +10:00
Mo Firouz 1d2f2132a6 Disable client-initiated pings 2018-10-21 05:37:58 +10:00
Mo Firouz a3026badf1 Execute listener on a new thread to avoid blocking network calls. 2018-10-17 23:58:40 +08:00
Mo Firouz ad4cc6c61a Enhance matchmaker tests 2018-10-16 16:35:26 +08:00
Mo Firouz a063bb6f56 Add MatchmakerTest 2018-10-16 15:13:55 +08:00
Mo Firouz cd4ea151c4 Rename OnMatchmakeMatched to OnMatchmakerMatched 2018-10-16 09:33:38 +08:00