Skip to content

Commit

Permalink
Merge pull request #744 from CesiumGS/android-crash
Browse files Browse the repository at this point in the history
Revert change to Android cache DB location
  • Loading branch information
kring authored Feb 1, 2022
2 parents a1a2ed6 + a268c62 commit e4158fd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

### v1.10.1 - 2022-02-01

##### Fixes :wrench:

- Fixed a crash at startup on Android devices introduced in v1.10.0.

### v1.10.0 - 2022-02-01

##### Breaking Changes :mega:
Expand Down
4 changes: 2 additions & 2 deletions CesiumForUnreal.uplugin
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"FileVersion": 3,
"Version": 20,
"VersionName": "1.10.0",
"Version": 21,
"VersionName": "1.10.1",
"FriendlyName": "Cesium for Unreal",
"Description": "Unlock the 3D geospatial ecosystem in Unreal Engine with real-world 3D content and a high accuracy full-scale WGS84 globe.",
"Category": "Geospatial",
Expand Down
4 changes: 3 additions & 1 deletion Source/CesiumRuntime/Private/Cesium3DTileset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,9 @@ class UnrealResourcePreparer
};

static std::string getCacheDatabaseName() {
#if PLATFORM_ANDROID || PLATFORM_IOS
#if PLATFORM_ANDROID
FString BaseDirectory = FPaths::ProjectPersistentDownloadDir();
#elif PLATFORM_IOS
FString BaseDirectory =
FPaths::Combine(*FPaths::ProjectSavedDir(), TEXT("Cesium"));
if (!IFileManager::Get().DirectoryExists(*BaseDirectory)) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cesium-unreal",
"version": "1.10.0",
"version": "1.10.1",
"description": "Cesium for Unreal",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit e4158fd

Please sign in to comment.