diff --git a/Example/Assets/Plugins/Android/libs/arm64-v8a/libsqlite3.so b/Example/Assets/Plugins/Android/libs/arm64-v8a/libsqlite3.so new file mode 100644 index 0000000..1e2ce2d Binary files /dev/null and b/Example/Assets/Plugins/Android/libs/arm64-v8a/libsqlite3.so differ diff --git a/Example/Assets/Scripts/DataService.cs b/Example/Assets/Scripts/DataService.cs index 872f598..558ada1 100644 --- a/Example/Assets/Scripts/DataService.cs +++ b/Example/Assets/Scripts/DataService.cs @@ -42,6 +42,11 @@ public DataService(string DatabaseName){ var loadDb = Application.dataPath + "/StreamingAssets/" + DatabaseName; // this is the path to your StreamingAssets in iOS // then save to Application.persistentDataPath File.Copy(loadDb, filepath); + +#elif UNITY_STANDALONE_OSX + var loadDb = Application.dataPath + "/Resources/Data/StreamingAssets/" + DatabaseName; // this is the path to your StreamingAssets in iOS + // then save to Application.persistentDataPath + File.Copy(loadDb, filepath); #else var loadDb = Application.dataPath + "/StreamingAssets/" + DatabaseName; // this is the path to your StreamingAssets in iOS // then save to Application.persistentDataPath diff --git a/SQLite4Unity3d.zip b/SQLite4Unity3d.zip index 9c91b68..d4452c2 100644 Binary files a/SQLite4Unity3d.zip and b/SQLite4Unity3d.zip differ