Commit Graph

141 Commits

Author SHA1 Message Date
Kevin Ring 7c9ea84178 Merge remote-tracking branch 'origin/main' into vcpkg-swl 2024-07-02 17:39:20 +10:00
Kevin Ring 5abceec862 Add missing header in UWP build. 2024-06-26 14:42:13 +10:00
Brian L 74653140f3 Rename to CESIUM_ASSERT 2024-06-20 10:14:38 -06:00
Kevin Ring ca42500d54 Merge remote-tracking branch 'origin/main' into vcpkg-2 2024-06-05 14:06:47 +10:00
Brian L 47414f09fb Make our ASSERT macro. Move everything to use this. 2024-05-03 12:50:50 -06:00
Janine Liu c8c9df2d56 Add documentation and changelog entry 2024-04-26 16:57:42 -04:00
Ashley Rogers 22124e3e42 Renaming 2024-04-26 15:31:20 -04:00
Ashley Rogers fb81b78886 Add test for single-user /me 2024-04-19 15:27:52 -04:00
Ashley Rogers 7b80cd916e thenImmediately instead of thenInMainThread 2024-04-04 11:11:19 -04:00
Ashley Rogers 9dee9f4361 Forgot to update for rename 2024-04-04 11:10:10 -04:00
Ashley Rogers ce856e5efa Update ApplicationData.h 2024-04-04 11:08:24 -04:00
Ashley Rogers c868ccb8a0 Fix test 2024-04-02 13:51:57 -04:00
Ashley Rogers 46be089bf4 Implement dummy tokens list response for single-user mode. 2024-04-02 13:29:47 -04:00
Ashley Rogers d240e446a8 Add const modifier 2024-03-29 14:37:31 -04:00
Ashley Rogers 304d151949 Merge branch 'main' of github.com:CesiumGS/cesium-native into ion-single-user 2024-03-29 13:47:20 -04:00
Ashley Rogers d25958fb14 Support /appData endpoint and single-user mode. 2024-03-29 13:47:14 -04:00
Sean Lilley 2bb28a1335 Fix compiling in gcc-13 2024-03-11 10:47:14 -04:00
Bradley Austin Davis 24d783fb01 Migrate dependencies to vcpkg 2024-02-24 00:37:37 +00:00
Kevin Ring c341a72806 Revert "Merge pull request #786 from jherico/feature-vcpkg"
This reverts commit 198ed9d4b4, reversing
changes made to 09c1eb76b4.
2024-02-23 09:08:15 +11:00
Bradley Austin Davis e20c154c55 Migrating dependencies to vcpkg 2024-02-02 10:40:59 -08:00
Kevin Ring 6437281d71 Merge remote-tracking branch 'origin/fix-api-url' into cesium-ion-defaults 2023-12-12 10:17:48 +11:00
Kevin Ring 2aaa97269a Make api hostname into a complete URL. 2023-12-11 17:24:55 +11:00
Kevin Ring eaa33bbfb5 Add doc for CesiumIonClient::Defaults. 2023-12-05 11:25:25 +11:00
Kevin Ring 606200135f Add support for new defaults service to CesiumIonClient. 2023-12-04 18:00:54 +11:00
Joseph Kaile d54ee1f496 return generated api url when Get fails 2023-11-30 14:11:01 -05:00
Joseph Kaile f52ade460c free URI, return valid URL 2023-10-31 14:16:05 -04:00
Joseph Kaile 4468b87f96 add method to get api url async 2023-10-26 22:28:12 -04:00
Joseph Kaile e8990ce108 add utility function to extract key-value from url 2023-10-23 15:18:58 -04:00
Adam N. Morris a9c27487a6 Updated ion authorization url to the current url 2023-10-03 16:58:59 -05:00
Kevin Ring 4194e31a10 sizeof(uint32_t) instead of 4. Tweak test comment. 2023-08-24 15:57:22 +10:00
Kevin Ring a495c7e88d Formatting. 2023-08-04 19:49:44 +10:00
Kevin Ring 53ed812fe3 Add test for fillWithRandomBytes. 2023-08-04 19:28:53 +10:00
Kevin Ring f54556704e Restore compatibility with non-Windows platforms. 2023-08-04 18:26:18 +10:00
Kevin Ring 335ea90678 Hackily get cesium-native compiling on UWP. 2023-08-04 08:53:12 +10:00
Kevin Ring c88838194c Add missing #include. 2022-05-02 16:57:02 +10:00
Kevin Ring fe2ff2e939 Fix clang warning. 2022-01-28 17:10:15 +11:00
Kevin Ring 2da364a3f6 Fix base64 decoding of ion tokens that require padding. 2022-01-28 10:17:27 +11:00
Kevin Ring 4c56014fdc Merge remote-tracking branch 'origin/asset-accessor-verb' into load-error-reporting 2022-01-20 11:18:25 +11:00
Kevin Ring f498c631de startRequest -> reqest. 2022-01-20 11:08:23 +11:00
Kevin Ring 518b7cbaf0 Rename IAssetAccessor methods, allow use of any verb. 2022-01-20 11:00:29 +11:00
Kevin Ring 588cad930f Formatting. 2022-01-19 12:13:54 +11:00
Kevin Ring 007af04991 Fix token ID extraction. 2022-01-18 20:24:44 +11:00
Kevin Ring f6168c8754 Add find getIdFromToken method. 2022-01-18 16:08:59 +11:00
Kevin Ring a6c7fa3934 Add token service. 2021-12-21 23:29:24 +11:00
Kevin Ring 11eae10d2c Rename requestAsset->get, post->startRequest (and supoprt any verb) 2021-12-14 22:30:04 +11:00
Kevin Ring 5d68828888 Add missing file. 2021-12-14 15:27:09 +11:00
Kevin Ring 524df0cf9e Better token paging. 2021-12-14 15:26:26 +11:00
Kevin Ring 38d168aad8 Switch to ion tokens API v2. 2021-12-13 15:56:54 +11:00
Sean Lilley 2cdcb92e20 Namespace cleanup 2021-12-02 18:34:22 -05:00
Marco Hutter 9855400417 Use proper relative paths in all public headers 2021-09-28 17:23:07 +02:00
Marco Hutter 27fdd26e27 Merge remote-tracking branch 'origin/main' into include-style-fixes
# Conflicts:
#	Cesium3DTilesSelection/include/Cesium3DTilesSelection/GltfContent.h
#	Cesium3DTilesSelection/src/Batched3DModelContent.cpp
#	Cesium3DTilesSelection/src/CompositeContent.cpp
#	Cesium3DTilesSelection/src/ExternalTilesetContent.cpp
#	Cesium3DTilesSelection/src/GltfContent.cpp
#	Cesium3DTilesSelection/src/QuantizedMeshContent.cpp
#	Cesium3DTilesSelection/src/Tile.cpp
#	Cesium3DTilesSelection/src/TileContentFactory.cpp
#	Cesium3DTilesSelection/src/calcQuadtreeMaxGeometricError.h
2021-09-28 14:38:33 +02:00
Kevin Ring 62ff744d4f Treat `<something.h>` as third-party include. 2021-09-27 10:46:26 +10:00
Marco Hutter 0e827f7afd Updated includes based on clang-format with Regroup
This MAINLY inserted some blank lines between
the blocks.
2021-09-26 17:46:27 +02:00
Marco Hutter 8abb3141ae Remove const from another rvalue reference parameter 2021-09-22 15:47:43 +02:00
Marco Hutter 00847ed17f Include style fixes for CesiumIonClient 2021-09-19 15:24:32 +02:00
Marco Hutter 6a5e0d3d48 Added missing const for reference parameters
C26460: The reference argument ... for function ... can be marked as const
2021-09-15 17:43:42 +02:00
Marco Hutter 17abaee26d Formatting after initializing member variables 2021-09-15 16:14:15 +02:00
Marco Hutter 0e1e2f33df Initialized member variables 2021-09-15 16:13:48 +02:00
Marco Hutter de8145ab9e Added missing const keyword
C26496: The variable ... is assigned only once, mark it as const
2021-09-15 15:37:29 +02:00
Marco Hutter 97a2757e39 Added missing noexcept specifiers
Reported as "C26440 Function ... can be declared noexcept"
2021-09-14 16:12:50 +02:00
Kevin Ring a1ebce1dcd Allow direct creation of a Promise.
Rather than the JavaScript-like create a future by providing a callback
that is given a promise. This can be less exception safe (allow
exceptions to escape from a Future-returning method instead of being
turned into Promise rejection) but also tends to be much easier to work
with.
2021-07-07 14:12:15 +10:00
Kevin Ring 355c486683 Make Future::wait return T and throw on reject. 2021-07-06 23:29:59 +10:00
Marco Hutter fbea991d2d Formatting 2021-04-16 21:56:15 +02:00
Marco Hutter bbf2400baa Handle denied access with sensible message 2021-04-16 21:55:27 +02:00
Marco Hutter 4a5b6a77ed Connection error message improvements 2021-04-16 21:34:25 +02:00
Kevin Ring b2c6b29b6c Add method to get a single asset from ion. 2021-03-18 18:52:49 +11:00
Shehzan Mohammed 8a2957d32f Run clang format 2021-03-08 20:39:46 -05:00
Kevin Ring d20f89c421 Add methods to get other Connection params too. 2021-03-08 19:02:25 +11:00
Kevin Ring ab4efdf555 Add method to get the access token from a Connection. 2021-03-08 18:59:53 +11:00
Kevin Ring 589a0098fc
Merge pull request #145 from CesiumGS/install
Add ability to CMake install cesium-native
2021-03-05 16:03:29 +11:00
Kevin Ring 68d711e1de Mark some libs private, remove commented-out code. 2021-03-05 14:21:55 +11:00
Marco Hutter f1078aeb4c Use bytes for raw data 2021-03-04 17:22:38 +01:00
Shehzan Mohammed 887744202d Remove other PRIVATE flags from link libraries 2021-03-04 10:50:19 -05:00
Shehzan Mohammed 3faff010d7 Installing thirdparty deps working on linux 2021-03-03 20:47:31 -05:00
Kevin Ring 34bbd2aa31 WIP cmake install. 2021-03-04 09:48:09 +11:00
Kevin Ring bad3c5fe2a Fix typo. 2021-03-03 15:54:56 +11:00
Samuel Vargas 7f059ebbe7
Add missing newlines [skip ci] 2021-03-02 14:40:21 -05:00
Samuel Vargas 5d03477551
Rearchitecture cesium-native's CMake structure
This is necessary to support using cesium-native as submodule in
in asset-pipeline

- `draco` and `sqlite3` are guarded with if target blocks to allow
  asset-pipeline to provide their own version of the targets.
- Tests are now a dedicated target that clients don't have to build
- Test sources / headers are now a target property instead of using the $<BUILD_INTERFACE... hack
- Added common include variables in extern/CMakeLists.txt
- Defined `RAPIDJSON_HAS_CXX11_RVALUE_REFS` for move support for RapidJson
- Private include directories are automatically extracted via CMake magic
  for use in catch tests
- Globbing is now wrapped in a dedicated function that allows one to use
  CONFIGURE_DEPENDS depending on their preferences (defaults to OFF)
  to retain the old behavior.
2021-03-02 14:28:04 -05:00
Kevin Ring 1a62ae6dc4 Fix Clang and GCC errors. 2021-02-28 23:10:53 +11:00
Kevin Ring 1f2eb257ef Implement PKCE. 2021-02-28 22:51:57 +11:00
Kevin Ring 92eb8ae1de Include `state` in OAuth2 handshake. 2021-02-28 22:12:56 +11:00
Kevin Ring 2dc61d90c4 CesiumIonClient doc. 2021-02-26 21:36:29 +11:00
Kevin Ring 415de32231 Better names, remove old code. 2021-02-26 17:03:45 +11:00
Kevin Ring 25c92609e3 Doc for Connection class. 2021-02-26 15:38:11 +11:00
Kevin Ring 5b616af8b0 Ion auth via OAuth2. 2021-02-25 22:48:22 +11:00
Kevin Ring 2e42fd45fb Adjust for recent changes in master. 2021-02-24 13:54:33 +11:00
Kevin Ring bb882a15f4 Support listing and creating tokens. 2021-02-15 23:49:04 +11:00
Kevin Ring a837e5b49f Fix field name. 2021-02-11 14:19:04 +11:00
Kevin Ring 38a59039ea Add support for ion assets service. 2021-02-10 22:12:22 +11:00
Kevin Ring d10bd2a16d Move JsonHelps to CesiumUtility, at ion "me" service. 2021-02-09 22:50:18 +11:00
Kevin Ring f7caafa626 Add CesiumIonClient library.
Also move Uri to CesiumUtility, and add a `post` method to
`IAssetAccessor`.
2021-02-08 21:59:53 +11:00