├── .github └── FUNDING.yml ├── .gitignore ├── LICENSE ├── README.md ├── Rakefile ├── SqlCipher4Unity3D ├── .gitignore ├── .vscode │ ├── extensions.json │ ├── launch.json │ └── settings.json ├── .vsconfig ├── Assets │ ├── SqlCipher4Unity3D.meta │ ├── SqlCipher4Unity3D │ │ ├── Interop.meta │ │ ├── Interop │ │ │ ├── Fts5Context.cs │ │ │ ├── Fts5Context.cs.meta │ │ │ ├── Fts5ExtensionApi.cs │ │ │ ├── Fts5ExtensionApi.cs.meta │ │ │ ├── Fts5PhraseIter.cs │ │ │ ├── Fts5PhraseIter.cs.meta │ │ │ ├── Fts5Tokenizer.cs │ │ │ ├── Fts5Tokenizer.cs.meta │ │ │ ├── NativeTypeNameAttribute.cs │ │ │ ├── NativeTypeNameAttribute.cs.meta │ │ │ ├── fts5_api.cs │ │ │ ├── fts5_api.cs.meta │ │ │ ├── fts5_extension_function.cs │ │ │ ├── fts5_extension_function.cs.meta │ │ │ ├── fts5_tokenizer.cs │ │ │ ├── fts5_tokenizer.cs.meta │ │ │ ├── sqlite3.cs │ │ │ ├── sqlite3.cs.meta │ │ │ ├── sqlite3_api_routines.cs │ │ │ ├── sqlite3_api_routines.cs.meta │ │ │ ├── sqlite3_backup.cs │ │ │ ├── sqlite3_backup.cs.meta │ │ │ ├── sqlite3_blob.cs │ │ │ ├── sqlite3_blob.cs.meta │ │ │ ├── sqlite3_callback.cs │ │ │ ├── sqlite3_callback.cs.meta │ │ │ ├── sqlite3_context.cs │ │ │ ├── sqlite3_context.cs.meta │ │ │ ├── sqlite3_destructor_type.cs │ │ │ ├── sqlite3_destructor_type.cs.meta │ │ │ ├── sqlite3_file.cs │ │ │ ├── sqlite3_file.cs.meta │ │ │ ├── sqlite3_index_info.cs │ │ │ ├── sqlite3_index_info.cs.meta │ │ │ ├── sqlite3_io_methods.cs │ │ │ ├── sqlite3_io_methods.cs.meta │ │ │ ├── sqlite3_mem_methods.cs │ │ │ ├── sqlite3_mem_methods.cs.meta │ │ │ ├── sqlite3_module.cs │ │ │ ├── sqlite3_module.cs.meta │ │ │ ├── sqlite3_mutex.cs │ │ │ ├── sqlite3_mutex.cs.meta │ │ │ ├── sqlite3_mutex_methods.cs │ │ │ ├── sqlite3_mutex_methods.cs.meta │ │ │ ├── sqlite3_pcache.cs │ │ │ ├── sqlite3_pcache.cs.meta │ │ │ ├── sqlite3_pcache_methods.cs │ │ │ ├── sqlite3_pcache_methods.cs.meta │ │ │ ├── sqlite3_pcache_methods2.cs │ │ │ ├── sqlite3_pcache_methods2.cs.meta │ │ │ ├── sqlite3_pcache_page.cs │ │ │ ├── sqlite3_pcache_page.cs.meta │ │ │ ├── sqlite3_rtree_geometry.cs │ │ │ ├── sqlite3_rtree_geometry.cs.meta │ │ │ ├── sqlite3_rtree_query_info.cs │ │ │ ├── sqlite3_rtree_query_info.cs.meta │ │ │ ├── sqlite3_snapshot.cs │ │ │ ├── sqlite3_snapshot.cs.meta │ │ │ ├── sqlite3_stmt.cs │ │ │ ├── sqlite3_stmt.cs.meta │ │ │ ├── sqlite3_str.cs │ │ │ ├── sqlite3_str.cs.meta │ │ │ ├── sqlite3_syscall_ptr.cs │ │ │ ├── sqlite3_syscall_ptr.cs.meta │ │ │ ├── sqlite3_value.cs │ │ │ ├── sqlite3_value.cs.meta │ │ │ ├── sqlite3_vfs.cs │ │ │ ├── sqlite3_vfs.cs.meta │ │ │ ├── sqlite3_vtab.cs │ │ │ ├── sqlite3_vtab.cs.meta │ │ │ ├── sqlite3_vtab_cursor.cs │ │ │ └── sqlite3_vtab_cursor.cs.meta │ │ ├── NativeLibcipher.cs │ │ ├── NativeLibcipher.cs.meta │ │ ├── Plugins.meta │ │ ├── Plugins │ │ │ ├── Android.meta │ │ │ ├── Android │ │ │ │ ├── libs.meta │ │ │ │ └── libs │ │ │ │ │ ├── android-database-sqlcipher-4.5.4.aar │ │ │ │ │ ├── android-database-sqlcipher-4.5.4.aar.meta │ │ │ │ │ ├── sqlite-2.2.0.aar │ │ │ │ │ └── sqlite-2.2.0.aar.meta │ │ │ ├── iOS.meta │ │ │ ├── iOS │ │ │ │ ├── libsqlcipher.a │ │ │ │ └── libsqlcipher.a.meta │ │ │ ├── macOS.meta │ │ │ ├── macOS │ │ │ │ ├── sqlcipher.bundle │ │ │ │ └── sqlcipher.bundle.meta │ │ │ ├── tvOS.meta │ │ │ ├── tvOS │ │ │ │ ├── libsqlcipher.a │ │ │ │ └── libsqlcipher.a.meta │ │ │ ├── x64.meta │ │ │ ├── x64 │ │ │ │ ├── libcrypto-1_1-x64.dll │ │ │ │ ├── libcrypto-1_1-x64.dll.meta │ │ │ │ ├── libcrypto.so │ │ │ │ ├── libcrypto.so.meta │ │ │ │ ├── libsqlcipher.so │ │ │ │ ├── libsqlcipher.so.meta │ │ │ │ ├── sqlcipher.dll │ │ │ │ └── sqlcipher.dll.meta │ │ │ ├── x86.meta │ │ │ └── x86 │ │ │ │ ├── libcrypto-1_1.dll │ │ │ │ ├── libcrypto-1_1.dll.meta │ │ │ │ ├── sqlcipher.dll │ │ │ │ └── sqlcipher.dll.meta │ │ ├── SQLite.Attribute.meta │ │ ├── SQLite.Attribute │ │ │ ├── SQLiteAttribute.cs │ │ │ └── SQLiteAttribute.cs.meta │ │ ├── SQLiteAsync.cs │ │ ├── SQLiteAsync.cs.meta │ │ ├── SqlCipher4Unity3D.asmdef │ │ ├── SqlCipher4Unity3D.asmdef.meta │ │ ├── Sqlite3.cs │ │ ├── Sqlite3.cs.meta │ │ ├── Sqlite3Connection.cs │ │ ├── Sqlite3Connection.cs.meta │ │ ├── Sqlite3Define.cs │ │ ├── Sqlite3Define.cs.meta │ │ ├── package.json │ │ └── package.json.meta │ ├── StreamingAssets.meta │ ├── StreamingAssets │ │ ├── existing.db │ │ ├── existing.db.meta │ │ ├── tempDatabase.db │ │ └── tempDatabase.db.meta │ ├── example.async.meta │ ├── example.async │ │ ├── CreateDBScriptAsync.cs │ │ ├── CreateDBScriptAsync.cs.meta │ │ ├── CreateDBScriptAsync.unity │ │ ├── CreateDBScriptAsync.unity.meta │ │ ├── DataServiceAsync.cs │ │ ├── DataServiceAsync.cs.meta │ │ ├── ExistingDBScriptAsync.cs │ │ ├── ExistingDBScriptAsync.cs.meta │ │ ├── ExistingDBScriptAsync.unity │ │ ├── ExistingDBScriptAsync.unity.meta │ │ ├── Person.cs │ │ └── Person.cs.meta │ ├── example.meta │ ├── example │ │ ├── CreateDBFromScript.unity │ │ ├── CreateDBFromScript.unity.meta │ │ ├── CreateDBScript.cs │ │ ├── CreateDBScript.cs.meta │ │ ├── DataService.cs │ │ ├── DataService.cs.meta │ │ ├── ExistingDBScript.cs │ │ ├── ExistingDBScript.cs.meta │ │ ├── ExistingDBScript.unity │ │ ├── ExistingDBScript.unity.meta │ │ ├── Person.cs │ │ └── Person.cs.meta │ ├── test.meta │ ├── test │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── IgnoreTest.cs │ │ │ ├── IgnoreTest.cs.meta │ │ │ ├── Tests.asmdef │ │ │ └── Tests.asmdef.meta │ │ ├── test_update.meta │ │ ├── test_update │ │ │ ├── test_update.cs │ │ │ ├── test_update.cs.meta │ │ │ ├── test_update.db │ │ │ ├── test_update.db.meta │ │ │ ├── test_update.unity │ │ │ └── test_update.unity.meta │ │ ├── test_update_async.meta │ │ └── test_update_async │ │ │ ├── test_update_async.cs │ │ │ ├── test_update_async.cs.meta │ │ │ ├── test_update_async.db │ │ │ ├── test_update_async.db.meta │ │ │ ├── test_update_async.unity │ │ │ └── test_update_async.unity.meta │ ├── unitypackage-builder.meta │ └── unitypackage-builder │ │ ├── Editor.meta │ │ └── Editor │ │ ├── PackageTool.cs │ │ └── PackageTool.cs.meta ├── Packages │ ├── manifest.json │ └── packages-lock.json ├── ProjectSettings │ ├── AudioManager.asset │ ├── ClusterInputManager.asset │ ├── DynamicsManager.asset │ ├── EditorBuildSettings.asset │ ├── EditorSettings.asset │ ├── GraphicsSettings.asset │ ├── InputManager.asset │ ├── MemorySettings.asset │ ├── NavMeshAreas.asset │ ├── PackageManagerSettings.asset │ ├── Physics2DSettings.asset │ ├── PresetManager.asset │ ├── ProjectSettings.asset │ ├── ProjectVersion.txt │ ├── QualitySettings.asset │ ├── TagManager.asset │ ├── TimeManager.asset │ ├── UnityConnectSettings.asset │ ├── VFXManager.asset │ ├── VersionControlSettings.asset │ └── XRSettings.asset ├── codeformatter.csproj └── qwe123.keystore └── interop-convert ├── .gitignore └── ClangShap_libcipher.rsp /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: netpyoung 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.apk 3 | *.unitypackage 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Eunpyoung Kim 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SqlCipher4Unity3D 2 | 3 | ## What's this? 4 | 5 | I decided that there should be a simpler way and I created **SqlCipher4Unity3D**, a plugin that helps you to use [libsqlcipher](https://github.com/sqlcipher/sqlcipher/) in your Unity3d projects in a clear and easy way and works in **iOS, Android, OSX, Windows, Android** projects. 6 | 7 | - based on 8 | - [codecoding/SQLite4Unity3d](https://github.com/codecoding/SQLite4Unity3d) 9 | - [sqlite-net](https://github.com/praeclarum/sqlite-net) 10 | 11 | ## prebuilt library 12 | 13 | - prebuilt library are maintained by [prebuilt-libsqlcipher](https://github.com/netpyoung/prebuilt-libsqlcipher) 14 | - libsqlcipher v4.5.5 15 | - libsqlcipher v4.5.4 (android) 16 | - libsqlcipher v4.5.0 (windows x86) 17 | 18 | ## installation 19 | 20 | ## using .unitypackage 21 | 22 | - [Download this .unitypackage from Release Page](https://github.com/netpyoung/SqlCipher4Unity3D/releases) 23 | 24 | ## using UPM 25 | 26 | using #{version} for versioning. 27 | 28 | ``` json 29 | "com.netpyoung.sqlcipher4unity3d": "https://github.com/netpyoung/SqlCipher4Unity3D.git?path=SqlCipher4Unity3D/Assets/SqlCipher4Unity3D#1.3.0" 30 | ``` 31 | 32 | ## Watchout 33 | 34 | - Check [Issues](https://github.com/netpyoung/SqlCipher4Unity3D/issues) 35 | - If You are on iOS, need to modify [link.xml](https://docs.unity3d.com/Manual/iphone-playerSizeOptimization.html) for prevent stripping by Unity. 36 | 37 | ## Compatibility 38 | 39 | From `1.1.0` I removed `v` prefix for support UPM. 40 | 41 | | SqlCipher4Unity3D tag | sqlcipher version | 42 | | --------------------- | --------------------------------------------------------------------------------------------------------------- | 43 | | 1.1.x ~ | 4.x.x | 44 | | v1.0.x ~ | [3.x.x](https://github.com/netpyoung/SqlCipher4Unity3D/blob/2c642b3f0387dadfb4a145cb7236e99c9109fb94/README.md) | 45 | 46 | ## Example & Test 47 | 48 | - [example](./SqlCipher4Unity3D/Assets/example/), [test](./SqlCipher4Unity3D/Assets/test/) 49 | 50 | ## Contributer(❤️) 51 | 52 | - [@jfcontart](https://github.com/jfcontart) 53 | 54 | ## LICENCE 55 | 56 | | project | license | 57 | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | 58 | | [netpyoung/SqlCipher4Unity3d](./) | [MIT](./LICENSE) | 59 | | [jfcontart/SqlCipher4Unity3D_Apple](https://github.com/jfcontart/SqlCipher4Unity3D_Apple) | [copyleft](https://github.com/jfcontart/SqlCipher4Unity3D_Apple) | 60 | | [robertohuertasm/SQLite4Unity3d](https://github.com/robertohuertasm/SQLite4Unity3d) | [MIT](https://github.com/codecoding/SQLite4Unity3d/blob/master/LICENSE) | 61 | | [praeclarum/Sqlite-net](https://github.com/praeclarum/sqlite-net) | [MIT](https://github.com/praeclarum/sqlite-net/blob/master/LICENSE.txt) | 62 | | [SQLite](sqlite370_banner.gif) | [SQLite's License](https://sqlite.org/copyright.html) | 63 | | [SQLCipher](https://www.zetetic.net/sqlcipher/) | [SQLCipher's License](https://www.zetetic.net/sqlcipher/license/) | 64 | 65 | ### SQLite's Licnese 66 | 67 | ``` license 68 | All of the code and documentation in SQLite has been dedicated to the public domain by 69 | the authors. All code authors, and representatives of the companies they work for, have 70 | signed affidavits dedicating their contributions to the public domain and originals of 71 | those signed affidavits are stored in a firesafe at the main offices of Hwaci. Anyone 72 | is free to copy, modify, publish, use, compile, sell, or distribute the original SQLite 73 | code, either in source code form or as a compiled binary, for any purpose, commercial 74 | or non-commercial, and by any means. 75 | 76 | The previous paragraph applies to the deliverable code and documentation in SQLite - 77 | those parts of the SQLite library that you actually bundle and ship with a larger 78 | application. Some scripts used as part of the build process (for example the "configure" 79 | scripts generated by autoconf) might fall under other open-source licenses. Nothing 80 | from these build scripts ever reaches the final deliverable SQLite library, however, 81 | and so the licenses associated with those scripts should not be a factor in assessing 82 | your rights to copy and use the SQLite library. 83 | 84 | All of the deliverable code in SQLite has been written from scratch. No code has been 85 | taken from other projects or from the open internet. Every line of code can be traced 86 | back to its original author, and all of those authors have public domain dedications on 87 | file. So the SQLite code base is clean and is uncontaminated with licensed code from 88 | other projects. 89 | ``` 90 | 91 | ### SQLCipher's Licnese 92 | 93 | ``` license 94 | Copyright (c) 2008-2012 Zetetic LLC 95 | All rights reserved. 96 | 97 | Redistribution and use in source and binary forms, with or without 98 | modification, are permitted provided that the following conditions are met: 99 | * Redistributions of source code must retain the above copyright 100 | notice, this list of conditions and the following disclaimer. 101 | * Redistributions in binary form must reproduce the above copyright 102 | notice, this list of conditions and the following disclaimer in the 103 | documentation and/or other materials provided with the distribution. 104 | * Neither the name of the ZETETIC LLC nor the 105 | names of its contributors may be used to endorse or promote products 106 | derived from this software without specific prior written permission. 107 | 108 | THIS SOFTWARE IS PROVIDED BY ZETETIC LLC ''AS IS'' AND ANY 109 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 110 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 111 | DISCLAIMED. IN NO EVENT SHALL ZETETIC LLC BE LIABLE FOR ANY 112 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 113 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 114 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 115 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 116 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 117 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 118 | ``` 119 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/.gitignore: -------------------------------------------------------------------------------- 1 | ### Unity ### 2 | /[Ll]ibrary/ 3 | /[Tt]emp/ 4 | /[Oo]bj/ 5 | /[Bb]uild/ 6 | /[Bb]uilds/ 7 | /[Ll]ogs/ 8 | /[Uu]ser[Ss]ettings/ 9 | 10 | # MemoryCaptures can get excessive in size. 11 | # They also could contain extremely sensitive data 12 | /[Mm]emoryCaptures/ 13 | 14 | # Recordings can get excessive in size 15 | /[Rr]ecordings/ 16 | 17 | # Uncomment this line if you wish to ignore the asset store tools plugin 18 | # /[Aa]ssets/AssetStoreTools* 19 | 20 | # Autogenerated Jetbrains Rider plugin 21 | /[Aa]ssets/Plugins/Editor/JetBrains* 22 | 23 | # Visual Studio cache directory 24 | .vs/ 25 | 26 | # Gradle cache directory 27 | .gradle/ 28 | 29 | # Autogenerated VS/MD/Consulo solution and project files 30 | ExportedObj/ 31 | .consulo/ 32 | *.csproj 33 | *.unityproj 34 | *.sln 35 | *.suo 36 | *.tmp 37 | *.user 38 | *.userprefs 39 | *.pidb 40 | *.booproj 41 | *.svd 42 | *.pdb 43 | *.mdb 44 | *.opendb 45 | *.VC.db 46 | 47 | # Unity3D generated meta files 48 | *.pidb.meta 49 | *.pdb.meta 50 | *.mdb.meta 51 | 52 | # Unity3D generated file on crash reports 53 | sysinfo.txt 54 | 55 | # Builds 56 | *.apk 57 | *.aab 58 | *.unitypackage 59 | *.app 60 | 61 | # Crashlytics generated file 62 | crashlytics-build.properties 63 | 64 | # Packed Addressables 65 | /[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* 66 | 67 | # Temporary auto-generated Android Assets 68 | /[Aa]ssets/[Ss]treamingAssets/aa.meta 69 | /[Aa]ssets/[Ss]treamingAssets/aa/* 70 | 71 | /.vs/ 72 | !codeformatter.csproj 73 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "visualstudiotoolsforunity.vstuc" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "name": "Attach to Unity", 6 | "type": "vstuc", 7 | "request": "attach" 8 | } 9 | ] 10 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.exclude": { 3 | "**/.DS_Store": true, 4 | "**/.git": true, 5 | "**/.gitmodules": true, 6 | "**/*.booproj": true, 7 | "**/*.pidb": true, 8 | "**/*.suo": true, 9 | "**/*.user": true, 10 | "**/*.userprefs": true, 11 | "**/*.unityproj": true, 12 | "**/*.dll": true, 13 | "**/*.exe": true, 14 | "**/*.pdf": true, 15 | "**/*.mid": true, 16 | "**/*.midi": true, 17 | "**/*.wav": true, 18 | "**/*.gif": true, 19 | "**/*.ico": true, 20 | "**/*.jpg": true, 21 | "**/*.jpeg": true, 22 | "**/*.png": true, 23 | "**/*.psd": true, 24 | "**/*.tga": true, 25 | "**/*.tif": true, 26 | "**/*.tiff": true, 27 | "**/*.3ds": true, 28 | "**/*.3DS": true, 29 | "**/*.fbx": true, 30 | "**/*.FBX": true, 31 | "**/*.lxo": true, 32 | "**/*.LXO": true, 33 | "**/*.ma": true, 34 | "**/*.MA": true, 35 | "**/*.obj": true, 36 | "**/*.OBJ": true, 37 | "**/*.asset": true, 38 | "**/*.cubemap": true, 39 | "**/*.flare": true, 40 | "**/*.mat": true, 41 | "**/*.meta": true, 42 | "**/*.prefab": true, 43 | "**/*.unity": true, 44 | "build/": true, 45 | "Build/": true, 46 | "Library/": true, 47 | "library/": true, 48 | "obj/": true, 49 | "Obj/": true, 50 | "ProjectSettings/": true, 51 | "temp/": true, 52 | "Temp/": true 53 | }, 54 | "dotnet.defaultSolution": "SqlCipher4Unity3D.sln" 55 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/.vsconfig: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0", 3 | "components": [ 4 | "Microsoft.VisualStudio.Workload.ManagedGame" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5b3ebeb3a43f4f88b5db02b56b5c6f7 3 | folderAsset: yes 4 | timeCreated: 1474981526 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 81fbc5439457e4be9a3c93236aafff4a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/Fts5Context.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public partial struct Fts5Context 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/Fts5Context.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18dfd20db58434787b0aca2efaaacfe3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/Fts5ExtensionApi.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | public partial struct Fts5ExtensionApi 6 | { 7 | public int iVersion; 8 | 9 | [NativeTypeName("void *(*)(Fts5Context *)")] 10 | public IntPtr xUserData; 11 | 12 | [NativeTypeName("int (*)(Fts5Context *)")] 13 | public IntPtr xColumnCount; 14 | 15 | [NativeTypeName("int (*)(Fts5Context *, sqlite3_int64 *)")] 16 | public IntPtr xRowCount; 17 | 18 | [NativeTypeName("int (*)(Fts5Context *, int, sqlite3_int64 *)")] 19 | public IntPtr xColumnTotalSize; 20 | 21 | [NativeTypeName("int (*)(Fts5Context *, const char *, int, void *, int (*)(void *, int, const char *, int, int, int))")] 22 | public IntPtr xTokenize; 23 | 24 | [NativeTypeName("int (*)(Fts5Context *)")] 25 | public IntPtr xPhraseCount; 26 | 27 | [NativeTypeName("int (*)(Fts5Context *, int)")] 28 | public IntPtr xPhraseSize; 29 | 30 | [NativeTypeName("int (*)(Fts5Context *, int *)")] 31 | public IntPtr xInstCount; 32 | 33 | [NativeTypeName("int (*)(Fts5Context *, int, int *, int *, int *)")] 34 | public IntPtr xInst; 35 | 36 | [NativeTypeName("sqlite3_int64 (*)(Fts5Context *)")] 37 | public IntPtr xRowid; 38 | 39 | [NativeTypeName("int (*)(Fts5Context *, int, const char **, int *)")] 40 | public IntPtr xColumnText; 41 | 42 | [NativeTypeName("int (*)(Fts5Context *, int, int *)")] 43 | public IntPtr xColumnSize; 44 | 45 | [NativeTypeName("int (*)(Fts5Context *, int, void *, int (*)(const Fts5ExtensionApi *, Fts5Context *, void *))")] 46 | public IntPtr xQueryPhrase; 47 | 48 | [NativeTypeName("int (*)(Fts5Context *, void *, void (*)(void *))")] 49 | public IntPtr xSetAuxdata; 50 | 51 | [NativeTypeName("void *(*)(Fts5Context *, int)")] 52 | public IntPtr xGetAuxdata; 53 | 54 | [NativeTypeName("int (*)(Fts5Context *, int, Fts5PhraseIter *, int *, int *)")] 55 | public IntPtr xPhraseFirst; 56 | 57 | [NativeTypeName("void (*)(Fts5Context *, Fts5PhraseIter *, int *, int *)")] 58 | public IntPtr xPhraseNext; 59 | 60 | [NativeTypeName("int (*)(Fts5Context *, int, Fts5PhraseIter *, int *)")] 61 | public IntPtr xPhraseFirstColumn; 62 | 63 | [NativeTypeName("void (*)(Fts5Context *, Fts5PhraseIter *, int *)")] 64 | public IntPtr xPhraseNextColumn; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/Fts5ExtensionApi.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 758e058234f174eea8106f5a508262f3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/Fts5PhraseIter.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public unsafe partial struct Fts5PhraseIter 4 | { 5 | [NativeTypeName("const unsigned char *")] 6 | public byte* a; 7 | 8 | [NativeTypeName("const unsigned char *")] 9 | public byte* b; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/Fts5PhraseIter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 025d239ca9d484c39910566126c69de3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/Fts5Tokenizer.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public partial struct Fts5Tokenizer 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/Fts5Tokenizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5cdf297260f1d4602a42badf0156d820 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/NativeTypeNameAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | 4 | namespace unity.libcipher.Interop 5 | { 6 | /// Defines the type of a member as it was used in the native signature. 7 | [AttributeUsage(AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = false, Inherited = true)] 8 | [Conditional("DEBUG")] 9 | internal sealed partial class NativeTypeNameAttribute : Attribute 10 | { 11 | private readonly string _name; 12 | 13 | /// Initializes a new instance of the class. 14 | /// The name of the type that was used in the native signature. 15 | public NativeTypeNameAttribute(string name) 16 | { 17 | _name = name; 18 | } 19 | 20 | /// Gets the name of the type that was used in the native signature. 21 | public string Name => _name; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/NativeTypeNameAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ade742552de444ef6bfa91d116072532 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/fts5_api.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | public partial struct fts5_api 6 | { 7 | public int iVersion; 8 | 9 | [NativeTypeName("int (*)(fts5_api *, const char *, void *, fts5_tokenizer *, void (*)(void *))")] 10 | public IntPtr xCreateTokenizer; 11 | 12 | [NativeTypeName("int (*)(fts5_api *, const char *, void **, fts5_tokenizer *)")] 13 | public IntPtr xFindTokenizer; 14 | 15 | [NativeTypeName("int (*)(fts5_api *, const char *, void *, fts5_extension_function, void (*)(void *))")] 16 | public IntPtr xCreateFunction; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/fts5_api.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c68dec75da000413cb12e2056bf074bf 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/fts5_extension_function.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.InteropServices; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | [UnmanagedFunctionPointer(CallingConvention.Cdecl)] 6 | public unsafe delegate void fts5_extension_function([NativeTypeName("const Fts5ExtensionApi *")] Fts5ExtensionApi* pApi, Fts5Context* pFts, sqlite3_context* pCtx, int nVal, sqlite3_value** apVal); 7 | } 8 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/fts5_extension_function.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6af7ea5d6018b4e0fa7904d9faada069 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/fts5_tokenizer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | public partial struct fts5_tokenizer 6 | { 7 | [NativeTypeName("int (*)(void *, const char **, int, Fts5Tokenizer **)")] 8 | public IntPtr xCreate; 9 | 10 | [NativeTypeName("void (*)(Fts5Tokenizer *)")] 11 | public IntPtr xDelete; 12 | 13 | [NativeTypeName("int (*)(Fts5Tokenizer *, void *, int, const char *, int, int (*)(void *, int, const char *, int, int, int))")] 14 | public IntPtr xTokenize; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/fts5_tokenizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fdc63a4d54b4e41b7b05d476f8bbff8b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public partial struct sqlite3 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f57269f6e32cb422fad26b75a2844a6a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_api_routines.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public partial struct sqlite3_api_routines 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_api_routines.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aee698e83bf6b43fa8514f4b030c784f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_backup.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public partial struct sqlite3_backup 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_backup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6556a675adc0416c857bf156a37b8a1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_blob.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public partial struct sqlite3_blob 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_blob.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c250c5ec6ba9b446cb51b3aa27910238 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_callback.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.InteropServices; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | [UnmanagedFunctionPointer(CallingConvention.Cdecl)] 6 | public unsafe delegate int sqlite3_callback(void* param0, int param1, [NativeTypeName("char **")] sbyte** param2, [NativeTypeName("char **")] sbyte** param3); 7 | } 8 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_callback.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 108b0aee7e6ab434f8e619487afa4122 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_context.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public partial struct sqlite3_context 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_context.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1be39125ccdd54ccfa56b9c8fa3834d7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_destructor_type.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.InteropServices; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | [UnmanagedFunctionPointer(CallingConvention.Cdecl)] 6 | public unsafe delegate void sqlite3_destructor_type(void* param0); 7 | } 8 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_destructor_type.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d867bc595269541d483347e9c6cd434d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_file.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public unsafe partial struct sqlite3_file 4 | { 5 | [NativeTypeName("const struct sqlite3_io_methods *")] 6 | public sqlite3_io_methods* pMethods; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_file.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b7dcb92ca6504712a943ddc40a5362f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_index_info.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public unsafe partial struct sqlite3_index_info 4 | { 5 | public int nConstraint; 6 | 7 | [NativeTypeName("struct sqlite3_index_constraint *")] 8 | public sqlite3_index_constraint* aConstraint; 9 | 10 | public int nOrderBy; 11 | 12 | [NativeTypeName("struct sqlite3_index_orderby *")] 13 | public sqlite3_index_orderby* aOrderBy; 14 | 15 | [NativeTypeName("struct sqlite3_index_constraint_usage *")] 16 | public sqlite3_index_constraint_usage* aConstraintUsage; 17 | 18 | public int idxNum; 19 | 20 | [NativeTypeName("char *")] 21 | public sbyte* idxStr; 22 | 23 | public int needToFreeIdxStr; 24 | 25 | public int orderByConsumed; 26 | 27 | public double estimatedCost; 28 | 29 | [NativeTypeName("sqlite3_int64")] 30 | public long estimatedRows; 31 | 32 | public int idxFlags; 33 | 34 | [NativeTypeName("sqlite3_uint64")] 35 | public ulong colUsed; 36 | 37 | public partial struct sqlite3_index_constraint 38 | { 39 | public int iColumn; 40 | 41 | [NativeTypeName("unsigned char")] 42 | public byte op; 43 | 44 | [NativeTypeName("unsigned char")] 45 | public byte usable; 46 | 47 | public int iTermOffset; 48 | } 49 | 50 | public partial struct sqlite3_index_orderby 51 | { 52 | public int iColumn; 53 | 54 | [NativeTypeName("unsigned char")] 55 | public byte desc; 56 | } 57 | 58 | public partial struct sqlite3_index_constraint_usage 59 | { 60 | public int argvIndex; 61 | 62 | [NativeTypeName("unsigned char")] 63 | public byte omit; 64 | } 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_index_info.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7570e55925344f8b9cc3757e5a05f6f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_io_methods.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | public partial struct sqlite3_io_methods 6 | { 7 | public int iVersion; 8 | 9 | [NativeTypeName("int (*)(sqlite3_file *)")] 10 | public IntPtr xClose; 11 | 12 | [NativeTypeName("int (*)(sqlite3_file *, void *, int, sqlite3_int64)")] 13 | public IntPtr xRead; 14 | 15 | [NativeTypeName("int (*)(sqlite3_file *, const void *, int, sqlite3_int64)")] 16 | public IntPtr xWrite; 17 | 18 | [NativeTypeName("int (*)(sqlite3_file *, sqlite3_int64)")] 19 | public IntPtr xTruncate; 20 | 21 | [NativeTypeName("int (*)(sqlite3_file *, int)")] 22 | public IntPtr xSync; 23 | 24 | [NativeTypeName("int (*)(sqlite3_file *, sqlite3_int64 *)")] 25 | public IntPtr xFileSize; 26 | 27 | [NativeTypeName("int (*)(sqlite3_file *, int)")] 28 | public IntPtr xLock; 29 | 30 | [NativeTypeName("int (*)(sqlite3_file *, int)")] 31 | public IntPtr xUnlock; 32 | 33 | [NativeTypeName("int (*)(sqlite3_file *, int *)")] 34 | public IntPtr xCheckReservedLock; 35 | 36 | [NativeTypeName("int (*)(sqlite3_file *, int, void *)")] 37 | public IntPtr xFileControl; 38 | 39 | [NativeTypeName("int (*)(sqlite3_file *)")] 40 | public IntPtr xSectorSize; 41 | 42 | [NativeTypeName("int (*)(sqlite3_file *)")] 43 | public IntPtr xDeviceCharacteristics; 44 | 45 | [NativeTypeName("int (*)(sqlite3_file *, int, int, int, volatile void **)")] 46 | public IntPtr xShmMap; 47 | 48 | [NativeTypeName("int (*)(sqlite3_file *, int, int, int)")] 49 | public IntPtr xShmLock; 50 | 51 | [NativeTypeName("void (*)(sqlite3_file *)")] 52 | public IntPtr xShmBarrier; 53 | 54 | [NativeTypeName("int (*)(sqlite3_file *, int)")] 55 | public IntPtr xShmUnmap; 56 | 57 | [NativeTypeName("int (*)(sqlite3_file *, sqlite3_int64, int, void **)")] 58 | public IntPtr xFetch; 59 | 60 | [NativeTypeName("int (*)(sqlite3_file *, sqlite3_int64, void *)")] 61 | public IntPtr xUnfetch; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_io_methods.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03ed85efd0e02465eae7ce9995491557 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_mem_methods.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | public unsafe partial struct sqlite3_mem_methods 6 | { 7 | [NativeTypeName("void *(*)(int)")] 8 | public IntPtr xMalloc; 9 | 10 | [NativeTypeName("void (*)(void *)")] 11 | public IntPtr xFree; 12 | 13 | [NativeTypeName("void *(*)(void *, int)")] 14 | public IntPtr xRealloc; 15 | 16 | [NativeTypeName("int (*)(void *)")] 17 | public IntPtr xSize; 18 | 19 | [NativeTypeName("int (*)(int)")] 20 | public IntPtr xRoundup; 21 | 22 | [NativeTypeName("int (*)(void *)")] 23 | public IntPtr xInit; 24 | 25 | [NativeTypeName("void (*)(void *)")] 26 | public IntPtr xShutdown; 27 | 28 | public void* pAppData; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_mem_methods.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b84f5e84d9d942fb8d84aea4e63be24 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_module.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | public partial struct sqlite3_module 6 | { 7 | public int iVersion; 8 | 9 | [NativeTypeName("int (*)(sqlite3 *, void *, int, const char *const *, sqlite3_vtab **, char **)")] 10 | public IntPtr xCreate; 11 | 12 | [NativeTypeName("int (*)(sqlite3 *, void *, int, const char *const *, sqlite3_vtab **, char **)")] 13 | public IntPtr xConnect; 14 | 15 | [NativeTypeName("int (*)(sqlite3_vtab *, sqlite3_index_info *)")] 16 | public IntPtr xBestIndex; 17 | 18 | [NativeTypeName("int (*)(sqlite3_vtab *)")] 19 | public IntPtr xDisconnect; 20 | 21 | [NativeTypeName("int (*)(sqlite3_vtab *)")] 22 | public IntPtr xDestroy; 23 | 24 | [NativeTypeName("int (*)(sqlite3_vtab *, sqlite3_vtab_cursor **)")] 25 | public IntPtr xOpen; 26 | 27 | [NativeTypeName("int (*)(sqlite3_vtab_cursor *)")] 28 | public IntPtr xClose; 29 | 30 | [NativeTypeName("int (*)(sqlite3_vtab_cursor *, int, const char *, int, sqlite3_value **)")] 31 | public IntPtr xFilter; 32 | 33 | [NativeTypeName("int (*)(sqlite3_vtab_cursor *)")] 34 | public IntPtr xNext; 35 | 36 | [NativeTypeName("int (*)(sqlite3_vtab_cursor *)")] 37 | public IntPtr xEof; 38 | 39 | [NativeTypeName("int (*)(sqlite3_vtab_cursor *, sqlite3_context *, int)")] 40 | public IntPtr xColumn; 41 | 42 | [NativeTypeName("int (*)(sqlite3_vtab_cursor *, sqlite3_int64 *)")] 43 | public IntPtr xRowid; 44 | 45 | [NativeTypeName("int (*)(sqlite3_vtab *, int, sqlite3_value **, sqlite3_int64 *)")] 46 | public IntPtr xUpdate; 47 | 48 | [NativeTypeName("int (*)(sqlite3_vtab *)")] 49 | public IntPtr xBegin; 50 | 51 | [NativeTypeName("int (*)(sqlite3_vtab *)")] 52 | public IntPtr xSync; 53 | 54 | [NativeTypeName("int (*)(sqlite3_vtab *)")] 55 | public IntPtr xCommit; 56 | 57 | [NativeTypeName("int (*)(sqlite3_vtab *)")] 58 | public IntPtr xRollback; 59 | 60 | [NativeTypeName("int (*)(sqlite3_vtab *, int, const char *, void (**)(sqlite3_context *, int, sqlite3_value **), void **)")] 61 | public IntPtr xFindFunction; 62 | 63 | [NativeTypeName("int (*)(sqlite3_vtab *, const char *)")] 64 | public IntPtr xRename; 65 | 66 | [NativeTypeName("int (*)(sqlite3_vtab *, int)")] 67 | public IntPtr xSavepoint; 68 | 69 | [NativeTypeName("int (*)(sqlite3_vtab *, int)")] 70 | public IntPtr xRelease; 71 | 72 | [NativeTypeName("int (*)(sqlite3_vtab *, int)")] 73 | public IntPtr xRollbackTo; 74 | 75 | [NativeTypeName("int (*)(const char *)")] 76 | public IntPtr xShadowName; 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_module.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34e64c32ca7f84c9eb02bfbc6545ce08 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_mutex.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public partial struct sqlite3_mutex 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_mutex.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c17787e234ea7487dbe83d84c3809c7c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_mutex_methods.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | public partial struct sqlite3_mutex_methods 6 | { 7 | [NativeTypeName("int (*)()")] 8 | public IntPtr xMutexInit; 9 | 10 | [NativeTypeName("int (*)()")] 11 | public IntPtr xMutexEnd; 12 | 13 | [NativeTypeName("sqlite3_mutex *(*)(int)")] 14 | public IntPtr xMutexAlloc; 15 | 16 | [NativeTypeName("void (*)(sqlite3_mutex *)")] 17 | public IntPtr xMutexFree; 18 | 19 | [NativeTypeName("void (*)(sqlite3_mutex *)")] 20 | public IntPtr xMutexEnter; 21 | 22 | [NativeTypeName("int (*)(sqlite3_mutex *)")] 23 | public IntPtr xMutexTry; 24 | 25 | [NativeTypeName("void (*)(sqlite3_mutex *)")] 26 | public IntPtr xMutexLeave; 27 | 28 | [NativeTypeName("int (*)(sqlite3_mutex *)")] 29 | public IntPtr xMutexHeld; 30 | 31 | [NativeTypeName("int (*)(sqlite3_mutex *)")] 32 | public IntPtr xMutexNotheld; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_mutex_methods.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57c894580f1024ee8846c3d124920ad2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_pcache.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public partial struct sqlite3_pcache 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_pcache.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e472fdf147444fd6b50a9e8bd14256a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_pcache_methods.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | public unsafe partial struct sqlite3_pcache_methods 6 | { 7 | public void* pArg; 8 | 9 | [NativeTypeName("int (*)(void *)")] 10 | public IntPtr xInit; 11 | 12 | [NativeTypeName("void (*)(void *)")] 13 | public IntPtr xShutdown; 14 | 15 | [NativeTypeName("sqlite3_pcache *(*)(int, int)")] 16 | public IntPtr xCreate; 17 | 18 | [NativeTypeName("void (*)(sqlite3_pcache *, int)")] 19 | public IntPtr xCachesize; 20 | 21 | [NativeTypeName("int (*)(sqlite3_pcache *)")] 22 | public IntPtr xPagecount; 23 | 24 | [NativeTypeName("void *(*)(sqlite3_pcache *, unsigned int, int)")] 25 | public IntPtr xFetch; 26 | 27 | [NativeTypeName("void (*)(sqlite3_pcache *, void *, int)")] 28 | public IntPtr xUnpin; 29 | 30 | [NativeTypeName("void (*)(sqlite3_pcache *, void *, unsigned int, unsigned int)")] 31 | public IntPtr xRekey; 32 | 33 | [NativeTypeName("void (*)(sqlite3_pcache *, unsigned int)")] 34 | public IntPtr xTruncate; 35 | 36 | [NativeTypeName("void (*)(sqlite3_pcache *)")] 37 | public IntPtr xDestroy; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_pcache_methods.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b9669b11040247ee84435b8062211db 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_pcache_methods2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | public unsafe partial struct sqlite3_pcache_methods2 6 | { 7 | public int iVersion; 8 | 9 | public void* pArg; 10 | 11 | [NativeTypeName("int (*)(void *)")] 12 | public IntPtr xInit; 13 | 14 | [NativeTypeName("void (*)(void *)")] 15 | public IntPtr xShutdown; 16 | 17 | [NativeTypeName("sqlite3_pcache *(*)(int, int, int)")] 18 | public IntPtr xCreate; 19 | 20 | [NativeTypeName("void (*)(sqlite3_pcache *, int)")] 21 | public IntPtr xCachesize; 22 | 23 | [NativeTypeName("int (*)(sqlite3_pcache *)")] 24 | public IntPtr xPagecount; 25 | 26 | [NativeTypeName("sqlite3_pcache_page *(*)(sqlite3_pcache *, unsigned int, int)")] 27 | public IntPtr xFetch; 28 | 29 | [NativeTypeName("void (*)(sqlite3_pcache *, sqlite3_pcache_page *, int)")] 30 | public IntPtr xUnpin; 31 | 32 | [NativeTypeName("void (*)(sqlite3_pcache *, sqlite3_pcache_page *, unsigned int, unsigned int)")] 33 | public IntPtr xRekey; 34 | 35 | [NativeTypeName("void (*)(sqlite3_pcache *, unsigned int)")] 36 | public IntPtr xTruncate; 37 | 38 | [NativeTypeName("void (*)(sqlite3_pcache *)")] 39 | public IntPtr xDestroy; 40 | 41 | [NativeTypeName("void (*)(sqlite3_pcache *)")] 42 | public IntPtr xShrink; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_pcache_methods2.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77c1f7d890dca4992a84d99d7272934f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_pcache_page.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public unsafe partial struct sqlite3_pcache_page 4 | { 5 | public void* pBuf; 6 | 7 | public void* pExtra; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_pcache_page.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 595f62f018f3949fd850c5d24657a7d8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_rtree_geometry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | public unsafe partial struct sqlite3_rtree_geometry 6 | { 7 | public void* pContext; 8 | 9 | public int nParam; 10 | 11 | [NativeTypeName("sqlite3_rtree_dbl *")] 12 | public double* aParam; 13 | 14 | public void* pUser; 15 | 16 | [NativeTypeName("void (*)(void *)")] 17 | public IntPtr xDelUser; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_rtree_geometry.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c047d1862a7e45999f4f4ee7a7c7d90 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_rtree_query_info.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | public unsafe partial struct sqlite3_rtree_query_info 6 | { 7 | public void* pContext; 8 | 9 | public int nParam; 10 | 11 | [NativeTypeName("sqlite3_rtree_dbl *")] 12 | public double* aParam; 13 | 14 | public void* pUser; 15 | 16 | [NativeTypeName("void (*)(void *)")] 17 | public IntPtr xDelUser; 18 | 19 | [NativeTypeName("sqlite3_rtree_dbl *")] 20 | public double* aCoord; 21 | 22 | [NativeTypeName("unsigned int *")] 23 | public uint* anQueue; 24 | 25 | public int nCoord; 26 | 27 | public int iLevel; 28 | 29 | public int mxLevel; 30 | 31 | [NativeTypeName("sqlite3_int64")] 32 | public long iRowid; 33 | 34 | [NativeTypeName("sqlite3_rtree_dbl")] 35 | public double rParentScore; 36 | 37 | public int eParentWithin; 38 | 39 | public int eWithin; 40 | 41 | [NativeTypeName("sqlite3_rtree_dbl")] 42 | public double rScore; 43 | 44 | public sqlite3_value** apSqlParam; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_rtree_query_info.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27d962068567c419aa5966a95883bc9c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_snapshot.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public unsafe partial struct sqlite3_snapshot 4 | { 5 | [NativeTypeName("unsigned char[48]")] 6 | public fixed byte hidden[48]; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_snapshot.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 670fb90e7f7624556ae153b4b268c367 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_stmt.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public partial struct sqlite3_stmt 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_stmt.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2d7c22e0d9e24fe9b01bb5b1c0b2966 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_str.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public partial struct sqlite3_str 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_str.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e34cd22d54df4b12867c50c6ec8b044 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_syscall_ptr.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.InteropServices; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | [UnmanagedFunctionPointer(CallingConvention.Cdecl)] 6 | public delegate void sqlite3_syscall_ptr(); 7 | } 8 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_syscall_ptr.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f39c674c7ef24df5a94c2c48fccb669 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_value.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public partial struct sqlite3_value 4 | { 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_value.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95a5c4e22da9c4c1689dcade2f3df5b2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_vfs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace unity.libcipher.Interop 4 | { 5 | public unsafe partial struct sqlite3_vfs 6 | { 7 | public int iVersion; 8 | 9 | public int szOsFile; 10 | 11 | public int mxPathname; 12 | 13 | public sqlite3_vfs* pNext; 14 | 15 | [NativeTypeName("const char *")] 16 | public sbyte* zName; 17 | 18 | public void* pAppData; 19 | 20 | [NativeTypeName("int (*)(sqlite3_vfs *, sqlite3_filename, sqlite3_file *, int, int *)")] 21 | public IntPtr xOpen; 22 | 23 | [NativeTypeName("int (*)(sqlite3_vfs *, const char *, int)")] 24 | public IntPtr xDelete; 25 | 26 | [NativeTypeName("int (*)(sqlite3_vfs *, const char *, int, int *)")] 27 | public IntPtr xAccess; 28 | 29 | [NativeTypeName("int (*)(sqlite3_vfs *, const char *, int, char *)")] 30 | public IntPtr xFullPathname; 31 | 32 | [NativeTypeName("void *(*)(sqlite3_vfs *, const char *)")] 33 | public IntPtr xDlOpen; 34 | 35 | [NativeTypeName("void (*)(sqlite3_vfs *, int, char *)")] 36 | public IntPtr xDlError; 37 | 38 | [NativeTypeName("void (*(*)(sqlite3_vfs *, void *, const char *))()")] 39 | public IntPtr xDlSym; 40 | 41 | [NativeTypeName("void (*)(sqlite3_vfs *, void *)")] 42 | public IntPtr xDlClose; 43 | 44 | [NativeTypeName("int (*)(sqlite3_vfs *, int, char *)")] 45 | public IntPtr xRandomness; 46 | 47 | [NativeTypeName("int (*)(sqlite3_vfs *, int)")] 48 | public IntPtr xSleep; 49 | 50 | [NativeTypeName("int (*)(sqlite3_vfs *, double *)")] 51 | public IntPtr xCurrentTime; 52 | 53 | [NativeTypeName("int (*)(sqlite3_vfs *, int, char *)")] 54 | public IntPtr xGetLastError; 55 | 56 | [NativeTypeName("int (*)(sqlite3_vfs *, sqlite3_int64 *)")] 57 | public IntPtr xCurrentTimeInt64; 58 | 59 | [NativeTypeName("int (*)(sqlite3_vfs *, const char *, sqlite3_syscall_ptr)")] 60 | public IntPtr xSetSystemCall; 61 | 62 | [NativeTypeName("sqlite3_syscall_ptr (*)(sqlite3_vfs *, const char *)")] 63 | public IntPtr xGetSystemCall; 64 | 65 | [NativeTypeName("const char *(*)(sqlite3_vfs *, const char *)")] 66 | public IntPtr xNextSystemCall; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_vfs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a41f9d78ed0343c1b44e599829c4ed9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_vtab.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public unsafe partial struct sqlite3_vtab 4 | { 5 | [NativeTypeName("const sqlite3_module *")] 6 | public sqlite3_module* pModule; 7 | 8 | public int nRef; 9 | 10 | [NativeTypeName("char *")] 11 | public sbyte* zErrMsg; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_vtab.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb6f22d5fae1f41bbb005d1b3fb2872a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_vtab_cursor.cs: -------------------------------------------------------------------------------- 1 | namespace unity.libcipher.Interop 2 | { 3 | public unsafe partial struct sqlite3_vtab_cursor 4 | { 5 | public sqlite3_vtab* pVtab; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Interop/sqlite3_vtab_cursor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e63035a3fe68746be89eba391e680e2b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/NativeLibcipher.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0eb2cd450d0ca4aafb066e7252ce91a5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6672b8bdaedd568468bd6e5a724edba2 3 | folderAsset: yes 4 | timeCreated: 1453576960 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/Android.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ffd58226463b67b4ab900d41d100a210 3 | folderAsset: yes 4 | timeCreated: 1445131378 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/Android/libs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ecc37cde00565d439803ae86521a2be 3 | folderAsset: yes 4 | timeCreated: 1445131378 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/Android/libs/android-database-sqlcipher-4.5.4.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/Android/libs/android-database-sqlcipher-4.5.4.aar -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/Android/libs/android-database-sqlcipher-4.5.4.aar.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2308cc4a0792eae4297be976d0563846 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Android: Android 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Any: 21 | second: 22 | enabled: 0 23 | settings: {} 24 | - first: 25 | Editor: Editor 26 | second: 27 | enabled: 0 28 | settings: 29 | DefaultValueInitialized: true 30 | userData: 31 | assetBundleName: 32 | assetBundleVariant: 33 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/Android/libs/sqlite-2.2.0.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/Android/libs/sqlite-2.2.0.aar -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/Android/libs/sqlite-2.2.0.aar.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8111488daa6b0614da5916b02fb65bd2 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 0 20 | Exclude Editor: 1 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude WindowsStoreApps: 1 26 | Exclude iOS: 1 27 | - first: 28 | Android: Android 29 | second: 30 | enabled: 1 31 | settings: 32 | CPU: ARMv7 33 | - first: 34 | Any: 35 | second: 36 | enabled: 0 37 | settings: {} 38 | - first: 39 | Editor: Editor 40 | second: 41 | enabled: 0 42 | settings: 43 | CPU: AnyCPU 44 | DefaultValueInitialized: true 45 | OS: AnyOS 46 | - first: 47 | Standalone: Linux64 48 | second: 49 | enabled: 0 50 | settings: 51 | CPU: AnyCPU 52 | - first: 53 | Standalone: OSXUniversal 54 | second: 55 | enabled: 0 56 | settings: 57 | CPU: x86_64 58 | - first: 59 | Standalone: Win 60 | second: 61 | enabled: 0 62 | settings: 63 | CPU: x86 64 | - first: 65 | Standalone: Win64 66 | second: 67 | enabled: 0 68 | settings: 69 | CPU: x86_64 70 | - first: 71 | Windows Store Apps: WindowsStoreApps 72 | second: 73 | enabled: 0 74 | settings: 75 | CPU: AnyCPU 76 | DontProcess: false 77 | PlaceholderPath: 78 | SDK: AnySDK 79 | ScriptingBackend: AnyScriptingBackend 80 | - first: 81 | iPhone: iOS 82 | second: 83 | enabled: 0 84 | settings: 85 | AddToEmbeddedBinaries: false 86 | CPU: AnyCPU 87 | CompileFlags: 88 | FrameworkDependencies: 89 | userData: 90 | assetBundleName: 91 | assetBundleVariant: 92 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/iOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6f70158f44d34742a832333dd9a0f48 3 | folderAsset: yes 4 | timeCreated: 1474977842 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/iOS/libsqlcipher.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/iOS/libsqlcipher.a -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/iOS/libsqlcipher.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7710a0ae91244637b8815736396b2f2 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Linux 16 | second: 17 | enabled: 0 18 | settings: 19 | CPU: x86 20 | - first: 21 | : OSXIntel 22 | second: 23 | enabled: 0 24 | settings: 25 | CPU: AnyCPU 26 | - first: 27 | : OSXIntel64 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | - first: 33 | Android: Android 34 | second: 35 | enabled: 0 36 | settings: 37 | CPU: AnyCPU 38 | - first: 39 | Any: 40 | second: 41 | enabled: 0 42 | settings: {} 43 | - first: 44 | Editor: Editor 45 | second: 46 | enabled: 0 47 | settings: 48 | CPU: AnyCPU 49 | DefaultValueInitialized: true 50 | OS: AnyOS 51 | - first: 52 | Standalone: Linux64 53 | second: 54 | enabled: 0 55 | settings: 56 | CPU: AnyCPU 57 | - first: 58 | Standalone: Win 59 | second: 60 | enabled: 0 61 | settings: 62 | CPU: AnyCPU 63 | - first: 64 | Standalone: Win64 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: AnyCPU 69 | - first: 70 | iPhone: iOS 71 | second: 72 | enabled: 1 73 | settings: 74 | CompileFlags: 75 | FrameworkDependencies: Security; 76 | userData: 77 | assetBundleName: 78 | assetBundleVariant: 79 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/macOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9749a0633f0e8834b9b887ca6a03b7a7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/macOS/sqlcipher.bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/macOS/sqlcipher.bundle -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/macOS/sqlcipher.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a28af5cea529be4196fb3073708cda0 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 0 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 0 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude iOS: 1 26 | Exclude tvOS: 1 27 | - first: 28 | Android: Android 29 | second: 30 | enabled: 0 31 | settings: 32 | AndroidSharedLibraryType: Executable 33 | CPU: ARMv7 34 | - first: 35 | Any: 36 | second: 37 | enabled: 0 38 | settings: {} 39 | - first: 40 | Editor: Editor 41 | second: 42 | enabled: 1 43 | settings: 44 | CPU: AnyCPU 45 | DefaultValueInitialized: true 46 | OS: OSX 47 | - first: 48 | Standalone: Linux64 49 | second: 50 | enabled: 0 51 | settings: 52 | CPU: AnyCPU 53 | - first: 54 | Standalone: OSXUniversal 55 | second: 56 | enabled: 1 57 | settings: 58 | CPU: AnyCPU 59 | - first: 60 | Standalone: Win 61 | second: 62 | enabled: 0 63 | settings: 64 | CPU: x86 65 | - first: 66 | Standalone: Win64 67 | second: 68 | enabled: 0 69 | settings: 70 | CPU: x86_64 71 | - first: 72 | iPhone: iOS 73 | second: 74 | enabled: 0 75 | settings: 76 | AddToEmbeddedBinaries: false 77 | CPU: AnyCPU 78 | CompileFlags: 79 | FrameworkDependencies: 80 | - first: 81 | tvOS: tvOS 82 | second: 83 | enabled: 0 84 | settings: 85 | CPU: AnyCPU 86 | CompileFlags: 87 | FrameworkDependencies: 88 | userData: 89 | assetBundleName: 90 | assetBundleVariant: 91 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/tvOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b0446679e6a9c904eb4b229b09ad402b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/tvOS/libsqlcipher.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/tvOS/libsqlcipher.a -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/tvOS/libsqlcipher.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 050d138e88a0d3b479d752d96c78449a 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 1 21 | Exclude Linux64: 1 22 | Exclude OSXUniversal: 1 23 | Exclude Win: 1 24 | Exclude Win64: 1 25 | Exclude iOS: 1 26 | Exclude tvOS: 0 27 | - first: 28 | Android: Android 29 | second: 30 | enabled: 0 31 | settings: 32 | CPU: ARMv7 33 | - first: 34 | Any: 35 | second: 36 | enabled: 0 37 | settings: {} 38 | - first: 39 | Editor: Editor 40 | second: 41 | enabled: 0 42 | settings: 43 | CPU: AnyCPU 44 | DefaultValueInitialized: true 45 | OS: AnyOS 46 | - first: 47 | Standalone: Linux64 48 | second: 49 | enabled: 0 50 | settings: 51 | CPU: None 52 | - first: 53 | Standalone: OSXUniversal 54 | second: 55 | enabled: 0 56 | settings: 57 | CPU: None 58 | - first: 59 | Standalone: Win 60 | second: 61 | enabled: 0 62 | settings: 63 | CPU: None 64 | - first: 65 | Standalone: Win64 66 | second: 67 | enabled: 0 68 | settings: 69 | CPU: None 70 | - first: 71 | iPhone: iOS 72 | second: 73 | enabled: 0 74 | settings: 75 | AddToEmbeddedBinaries: false 76 | CPU: AnyCPU 77 | CompileFlags: 78 | FrameworkDependencies: 79 | - first: 80 | tvOS: tvOS 81 | second: 82 | enabled: 1 83 | settings: 84 | CPU: AnyCPU 85 | CompileFlags: 86 | FrameworkDependencies: Security; 87 | userData: 88 | assetBundleName: 89 | assetBundleVariant: 90 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d080ad26255213a459eabfbd537e41b5 3 | folderAsset: yes 4 | timeCreated: 1445131378 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x64/libcrypto-1_1-x64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x64/libcrypto-1_1-x64.dll -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x64/libcrypto-1_1-x64.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4905f87dcd14491469d1286d50ef52c4 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 0 21 | Exclude Linux64: 0 22 | Exclude OSXUniversal: 0 23 | Exclude Win: 1 24 | Exclude Win64: 0 25 | Exclude WindowsStoreApps: 0 26 | Exclude iOS: 1 27 | - first: 28 | Android: Android 29 | second: 30 | enabled: 0 31 | settings: 32 | CPU: ARMv7 33 | - first: 34 | Any: 35 | second: 36 | enabled: 0 37 | settings: {} 38 | - first: 39 | Editor: Editor 40 | second: 41 | enabled: 1 42 | settings: 43 | CPU: x86_64 44 | DefaultValueInitialized: true 45 | OS: Windows 46 | - first: 47 | Standalone: Linux64 48 | second: 49 | enabled: 1 50 | settings: 51 | CPU: AnyCPU 52 | - first: 53 | Standalone: OSXUniversal 54 | second: 55 | enabled: 1 56 | settings: 57 | CPU: x86_64 58 | - first: 59 | Standalone: Win 60 | second: 61 | enabled: 0 62 | settings: 63 | CPU: None 64 | - first: 65 | Standalone: Win64 66 | second: 67 | enabled: 1 68 | settings: 69 | CPU: AnyCPU 70 | - first: 71 | Windows Store Apps: WindowsStoreApps 72 | second: 73 | enabled: 1 74 | settings: 75 | CPU: X64 76 | DontProcess: false 77 | PlaceholderPath: 78 | SDK: UWP 79 | ScriptingBackend: AnyScriptingBackend 80 | - first: 81 | iPhone: iOS 82 | second: 83 | enabled: 0 84 | settings: 85 | AddToEmbeddedBinaries: false 86 | CPU: AnyCPU 87 | CompileFlags: 88 | FrameworkDependencies: 89 | userData: 90 | assetBundleName: 91 | assetBundleVariant: 92 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x64/libcrypto.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x64/libcrypto.so -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x64/libcrypto.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df3b1f3ce94281c459ecdc390f8ae257 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 0 21 | Exclude Linux: 0 22 | Exclude Linux64: 0 23 | Exclude LinuxUniversal: 0 24 | Exclude OSXUniversal: 0 25 | Exclude Win: 0 26 | Exclude Win64: 0 27 | Exclude iOS: 1 28 | Exclude tvOS: 1 29 | - first: 30 | Android: Android 31 | second: 32 | enabled: 0 33 | settings: 34 | CPU: ARMv7 35 | - first: 36 | Any: 37 | second: 38 | enabled: 0 39 | settings: {} 40 | - first: 41 | Editor: Editor 42 | second: 43 | enabled: 1 44 | settings: 45 | CPU: x86_64 46 | DefaultValueInitialized: true 47 | OS: Linux 48 | - first: 49 | Facebook: Win 50 | second: 51 | enabled: 0 52 | settings: 53 | CPU: None 54 | - first: 55 | Facebook: Win64 56 | second: 57 | enabled: 1 58 | settings: 59 | CPU: AnyCPU 60 | - first: 61 | Standalone: Linux 62 | second: 63 | enabled: 1 64 | settings: 65 | CPU: None 66 | - first: 67 | Standalone: Linux64 68 | second: 69 | enabled: 1 70 | settings: 71 | CPU: x86_64 72 | - first: 73 | Standalone: LinuxUniversal 74 | second: 75 | enabled: 1 76 | settings: 77 | CPU: x86_64 78 | - first: 79 | Standalone: OSXUniversal 80 | second: 81 | enabled: 1 82 | settings: 83 | CPU: x86_64 84 | - first: 85 | Standalone: Win 86 | second: 87 | enabled: 1 88 | settings: 89 | CPU: None 90 | - first: 91 | Standalone: Win64 92 | second: 93 | enabled: 1 94 | settings: 95 | CPU: AnyCPU 96 | - first: 97 | iPhone: iOS 98 | second: 99 | enabled: 0 100 | settings: 101 | AddToEmbeddedBinaries: false 102 | CPU: AnyCPU 103 | CompileFlags: 104 | FrameworkDependencies: 105 | - first: 106 | tvOS: tvOS 107 | second: 108 | enabled: 0 109 | settings: 110 | CPU: AnyCPU 111 | CompileFlags: 112 | FrameworkDependencies: 113 | userData: 114 | assetBundleName: 115 | assetBundleVariant: 116 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x64/libsqlcipher.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x64/libsqlcipher.so -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x64/libsqlcipher.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25342efbb63fb5346b0100dc754b2c91 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 0 21 | Exclude Linux: 0 22 | Exclude Linux64: 0 23 | Exclude LinuxUniversal: 0 24 | Exclude OSXUniversal: 0 25 | Exclude Win: 0 26 | Exclude Win64: 0 27 | Exclude iOS: 1 28 | Exclude tvOS: 1 29 | - first: 30 | Android: Android 31 | second: 32 | enabled: 0 33 | settings: 34 | CPU: ARMv7 35 | - first: 36 | Any: 37 | second: 38 | enabled: 0 39 | settings: {} 40 | - first: 41 | Editor: Editor 42 | second: 43 | enabled: 1 44 | settings: 45 | CPU: x86_64 46 | DefaultValueInitialized: true 47 | OS: Linux 48 | - first: 49 | Facebook: Win 50 | second: 51 | enabled: 0 52 | settings: 53 | CPU: None 54 | - first: 55 | Facebook: Win64 56 | second: 57 | enabled: 1 58 | settings: 59 | CPU: AnyCPU 60 | - first: 61 | Standalone: Linux 62 | second: 63 | enabled: 1 64 | settings: 65 | CPU: None 66 | - first: 67 | Standalone: Linux64 68 | second: 69 | enabled: 1 70 | settings: 71 | CPU: x86_64 72 | - first: 73 | Standalone: LinuxUniversal 74 | second: 75 | enabled: 1 76 | settings: 77 | CPU: x86_64 78 | - first: 79 | Standalone: OSXUniversal 80 | second: 81 | enabled: 1 82 | settings: 83 | CPU: x86_64 84 | - first: 85 | Standalone: Win 86 | second: 87 | enabled: 1 88 | settings: 89 | CPU: None 90 | - first: 91 | Standalone: Win64 92 | second: 93 | enabled: 1 94 | settings: 95 | CPU: AnyCPU 96 | - first: 97 | iPhone: iOS 98 | second: 99 | enabled: 0 100 | settings: 101 | AddToEmbeddedBinaries: false 102 | CPU: AnyCPU 103 | CompileFlags: 104 | FrameworkDependencies: 105 | - first: 106 | tvOS: tvOS 107 | second: 108 | enabled: 0 109 | settings: 110 | CPU: AnyCPU 111 | CompileFlags: 112 | FrameworkDependencies: 113 | userData: 114 | assetBundleName: 115 | assetBundleVariant: 116 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x64/sqlcipher.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x64/sqlcipher.dll -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x64/sqlcipher.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 553c4748fe7ee42cda362ee103818e60 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 0 21 | Exclude Linux64: 0 22 | Exclude OSXUniversal: 0 23 | Exclude Win: 1 24 | Exclude Win64: 0 25 | Exclude WindowsStoreApps: 0 26 | Exclude iOS: 1 27 | - first: 28 | Android: Android 29 | second: 30 | enabled: 0 31 | settings: 32 | CPU: ARMv7 33 | - first: 34 | Any: 35 | second: 36 | enabled: 0 37 | settings: {} 38 | - first: 39 | Editor: Editor 40 | second: 41 | enabled: 1 42 | settings: 43 | CPU: x86_64 44 | DefaultValueInitialized: true 45 | OS: Windows 46 | - first: 47 | Standalone: Linux64 48 | second: 49 | enabled: 1 50 | settings: 51 | CPU: AnyCPU 52 | - first: 53 | Standalone: OSXUniversal 54 | second: 55 | enabled: 1 56 | settings: 57 | CPU: x86_64 58 | - first: 59 | Standalone: Win 60 | second: 61 | enabled: 0 62 | settings: 63 | CPU: None 64 | - first: 65 | Standalone: Win64 66 | second: 67 | enabled: 1 68 | settings: 69 | CPU: AnyCPU 70 | - first: 71 | Windows Store Apps: WindowsStoreApps 72 | second: 73 | enabled: 1 74 | settings: 75 | CPU: X64 76 | DontProcess: false 77 | PlaceholderPath: 78 | SDK: UWP 79 | ScriptingBackend: AnyScriptingBackend 80 | - first: 81 | iPhone: iOS 82 | second: 83 | enabled: 0 84 | settings: 85 | AddToEmbeddedBinaries: false 86 | CPU: AnyCPU 87 | CompileFlags: 88 | FrameworkDependencies: 89 | userData: 90 | assetBundleName: 91 | assetBundleVariant: 92 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 854bb0734038dc44e81cdde1d571a00f 3 | folderAsset: yes 4 | timeCreated: 1445131378 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x86/libcrypto-1_1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x86/libcrypto-1_1.dll -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x86/libcrypto-1_1.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15ce2b6fdfa5a1548b66b97a8a9d2106 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 0 21 | Exclude Linux64: 0 22 | Exclude OSXUniversal: 0 23 | Exclude Win: 0 24 | Exclude Win64: 1 25 | Exclude WindowsStoreApps: 0 26 | Exclude iOS: 1 27 | - first: 28 | Android: Android 29 | second: 30 | enabled: 0 31 | settings: 32 | CPU: ARMv7 33 | - first: 34 | Any: 35 | second: 36 | enabled: 0 37 | settings: {} 38 | - first: 39 | Editor: Editor 40 | second: 41 | enabled: 1 42 | settings: 43 | CPU: x86 44 | DefaultValueInitialized: true 45 | OS: Windows 46 | - first: 47 | Standalone: Linux64 48 | second: 49 | enabled: 1 50 | settings: 51 | CPU: None 52 | - first: 53 | Standalone: OSXUniversal 54 | second: 55 | enabled: 1 56 | settings: 57 | CPU: x86 58 | - first: 59 | Standalone: Win 60 | second: 61 | enabled: 1 62 | settings: 63 | CPU: AnyCPU 64 | - first: 65 | Standalone: Win64 66 | second: 67 | enabled: 0 68 | settings: 69 | CPU: None 70 | - first: 71 | Windows Store Apps: WindowsStoreApps 72 | second: 73 | enabled: 1 74 | settings: 75 | CPU: X86 76 | DontProcess: false 77 | PlaceholderPath: 78 | SDK: UWP 79 | ScriptingBackend: AnyScriptingBackend 80 | - first: 81 | iPhone: iOS 82 | second: 83 | enabled: 0 84 | settings: 85 | AddToEmbeddedBinaries: false 86 | CPU: AnyCPU 87 | CompileFlags: 88 | FrameworkDependencies: 89 | userData: 90 | assetBundleName: 91 | assetBundleVariant: 92 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x86/sqlcipher.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x86/sqlcipher.dll -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Plugins/x86/sqlcipher.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b73cd4353f86147d8bc821de934949ef 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | : Any 16 | second: 17 | enabled: 0 18 | settings: 19 | Exclude Android: 1 20 | Exclude Editor: 0 21 | Exclude Linux: 0 22 | Exclude Linux64: 1 23 | Exclude LinuxUniversal: 0 24 | Exclude OSXUniversal: 1 25 | Exclude Win: 0 26 | Exclude Win64: 1 27 | Exclude WindowsStoreApps: 0 28 | Exclude iOS: 1 29 | - first: 30 | : OSXIntel 31 | second: 32 | enabled: 1 33 | settings: 34 | CPU: AnyCPU 35 | - first: 36 | : OSXIntel64 37 | second: 38 | enabled: 0 39 | settings: 40 | CPU: None 41 | - first: 42 | Android: Android 43 | second: 44 | enabled: 0 45 | settings: 46 | CPU: ARMv7 47 | - first: 48 | Any: 49 | second: 50 | enabled: 0 51 | settings: {} 52 | - first: 53 | Editor: Editor 54 | second: 55 | enabled: 1 56 | settings: 57 | CPU: x86 58 | DefaultValueInitialized: true 59 | OS: Windows 60 | - first: 61 | Facebook: Win 62 | second: 63 | enabled: 1 64 | settings: 65 | CPU: AnyCPU 66 | - first: 67 | Facebook: Win64 68 | second: 69 | enabled: 0 70 | settings: 71 | CPU: None 72 | - first: 73 | Standalone: Linux 74 | second: 75 | enabled: 1 76 | settings: 77 | CPU: x86 78 | - first: 79 | Standalone: Linux64 80 | second: 81 | enabled: 0 82 | settings: 83 | CPU: None 84 | - first: 85 | Standalone: LinuxUniversal 86 | second: 87 | enabled: 1 88 | settings: 89 | CPU: x86 90 | - first: 91 | Standalone: OSXUniversal 92 | second: 93 | enabled: 0 94 | settings: 95 | CPU: x86 96 | - first: 97 | Standalone: Win 98 | second: 99 | enabled: 1 100 | settings: 101 | CPU: AnyCPU 102 | - first: 103 | Standalone: Win64 104 | second: 105 | enabled: 0 106 | settings: 107 | CPU: None 108 | - first: 109 | Windows Store Apps: WindowsStoreApps 110 | second: 111 | enabled: 1 112 | settings: 113 | CPU: X86 114 | DontProcess: false 115 | PlaceholderPath: 116 | SDK: UWP 117 | ScriptingBackend: AnyScriptingBackend 118 | - first: 119 | iPhone: iOS 120 | second: 121 | enabled: 0 122 | settings: 123 | AddToEmbeddedBinaries: false 124 | CPU: AnyCPU 125 | CompileFlags: 126 | FrameworkDependencies: 127 | userData: 128 | assetBundleName: 129 | assetBundleVariant: 130 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/SQLite.Attribute.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e9110e898f8f4527bd87cabe85b78ce 3 | folderAsset: yes 4 | timeCreated: 1486663956 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/SQLite.Attribute/SQLiteAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace SQLite.Attributes 4 | { 5 | [AttributeUsage(AttributeTargets.Class)] 6 | public class ExportAttribute : Attribute 7 | { 8 | } 9 | 10 | [AttributeUsage(AttributeTargets.Class)] 11 | public class TableAttribute : Attribute 12 | { 13 | public string Name { get; set; } 14 | 15 | /// 16 | /// Flag whether to create the table without rowid (see https://sqlite.org/withoutrowid.html) 17 | /// 18 | /// The default is false so that sqlite adds an implicit rowid to every table created. 19 | /// 20 | public bool WithoutRowId { get; set; } 21 | 22 | public TableAttribute(string name) 23 | { 24 | Name = name; 25 | } 26 | } 27 | 28 | [AttributeUsage(AttributeTargets.Property)] 29 | public class ColumnAttribute : Attribute 30 | { 31 | public string Name { get; set; } 32 | 33 | public ColumnAttribute(string name) 34 | { 35 | Name = name; 36 | } 37 | } 38 | 39 | [AttributeUsage(AttributeTargets.Property)] 40 | public class PrimaryKeyAttribute : Attribute 41 | { 42 | } 43 | 44 | [AttributeUsage(AttributeTargets.Property)] 45 | public class AutoIncrementAttribute : Attribute 46 | { 47 | } 48 | 49 | [AttributeUsage(AttributeTargets.Property)] 50 | public class IndexedAttribute : Attribute 51 | { 52 | public string Name { get; set; } 53 | public int Order { get; set; } 54 | public virtual bool Unique { get; set; } 55 | 56 | public IndexedAttribute() 57 | { 58 | } 59 | 60 | public IndexedAttribute(string name, int order) 61 | { 62 | Name = name; 63 | Order = order; 64 | } 65 | } 66 | 67 | [AttributeUsage(AttributeTargets.Property)] 68 | public class IgnoreAttribute : Attribute 69 | { 70 | } 71 | 72 | [AttributeUsage(AttributeTargets.Property)] 73 | public class UniqueAttribute : IndexedAttribute 74 | { 75 | public override bool Unique 76 | { 77 | get { return true; } 78 | set { /* throw? */ } 79 | } 80 | } 81 | 82 | [AttributeUsage(AttributeTargets.Property)] 83 | public class MaxLengthAttribute : Attribute 84 | { 85 | public int Value { get; private set; } 86 | 87 | public MaxLengthAttribute(int length) 88 | { 89 | Value = length; 90 | } 91 | } 92 | 93 | public sealed class PreserveAttribute : System.Attribute 94 | { 95 | public bool AllMembers; 96 | public bool Conditional; 97 | } 98 | 99 | /// 100 | /// Select the collating sequence to use on a column. 101 | /// "BINARY", "NOCASE", and "RTRIM" are supported. 102 | /// "BINARY" is the default. 103 | /// 104 | [AttributeUsage(AttributeTargets.Property)] 105 | public class CollationAttribute : Attribute 106 | { 107 | public string Value { get; private set; } 108 | 109 | public CollationAttribute(string collation) 110 | { 111 | Value = collation; 112 | } 113 | } 114 | 115 | [AttributeUsage(AttributeTargets.Property)] 116 | public class NotNullAttribute : Attribute 117 | { 118 | } 119 | 120 | [AttributeUsage(AttributeTargets.Enum)] 121 | public class StoreAsTextAttribute : Attribute 122 | { 123 | } 124 | 125 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/SQLite.Attribute/SQLiteAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eef8664c644270b4c8524b82dca521fd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/SQLiteAsync.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4af529911b650074ab8f5d9acf9cfcb0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/SqlCipher4Unity3D.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SqlCipher4Unity3D", 3 | "rootNamespace": "", 4 | "references": [], 5 | "includePlatforms": [], 6 | "excludePlatforms": [], 7 | "allowUnsafeCode": true, 8 | "overrideReferences": false, 9 | "precompiledReferences": [], 10 | "autoReferenced": true, 11 | "defineConstraints": [], 12 | "versionDefines": [], 13 | "noEngineReferences": true 14 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/SqlCipher4Unity3D.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5dcaa7c28ba9de042a11ef79db487161 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Sqlite3.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1384d96dd0201b949857a121d225a5a4 3 | timeCreated: 1453572025 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Sqlite3Connection.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 773e661bccc15404aa0e28ee9ffa864b 3 | timeCreated: 1474987441 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Sqlite3Define.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | namespace SqlCipher4Unity3D 6 | { 7 | [Flags] 8 | public enum SQLiteOpenFlags 9 | { 10 | ReadOnly = 1, 11 | ReadWrite = 2, 12 | Create = 4, 13 | NoMutex = 0x8000, 14 | FullMutex = 0x10000, 15 | SharedCache = 0x20000, 16 | PrivateCache = 0x40000, 17 | ProtectionComplete = 0x00100000, 18 | ProtectionCompleteUnlessOpen = 0x00200000, 19 | ProtectionCompleteUntilFirstUserAuthentication = 0x00300000, 20 | ProtectionNone = 0x00400000 21 | } 22 | 23 | [Flags] 24 | public enum CreateFlags 25 | { 26 | /// 27 | /// Use the default creation options 28 | /// 29 | None = 0x000, 30 | /// 31 | /// Create a primary key index for a property called 'Id' (case-insensitive). 32 | /// This avoids the need for the [PrimaryKey] attribute. 33 | /// 34 | ImplicitPK = 0x001, 35 | /// 36 | /// Create indices for properties ending in 'Id' (case-insensitive). 37 | /// 38 | ImplicitIndex = 0x002, 39 | /// 40 | /// Create a primary key for a property called 'Id' and 41 | /// create an indices for properties ending in 'Id' (case-insensitive). 42 | /// 43 | AllImplicit = 0x003, 44 | /// 45 | /// Force the primary key property to be auto incrementing. 46 | /// This avoids the need for the [AutoIncrement] attribute. 47 | /// The primary key property on the class should have type int or long. 48 | /// 49 | AutoIncPK = 0x004, 50 | /// 51 | /// Create virtual table using FTS3 52 | /// 53 | FullTextSearch3 = 0x100, 54 | /// 55 | /// Create virtual table using FTS4 56 | /// 57 | FullTextSearch4 = 0x200 58 | } 59 | 60 | public class SQLiteException : Exception 61 | { 62 | public SQLite3.Result Result { get; private set; } 63 | 64 | protected SQLiteException(SQLite3.Result r, string message) : base(message) 65 | { 66 | Result = r; 67 | } 68 | 69 | public static SQLiteException New(SQLite3.Result r, string message) 70 | { 71 | return new SQLiteException(r, message); 72 | } 73 | } 74 | 75 | public class NotNullConstraintViolationException : SQLiteException 76 | { 77 | public IEnumerable Columns { get; protected set; } 78 | 79 | protected NotNullConstraintViolationException(SQLite3.Result r, string message) 80 | : this(r, message, null, null) 81 | { 82 | 83 | } 84 | 85 | protected NotNullConstraintViolationException(SQLite3.Result r, string message, TableMapping mapping, object obj) 86 | : base(r, message) 87 | { 88 | if (mapping != null && obj != null) 89 | { 90 | this.Columns = from c in mapping.Columns 91 | where c.IsNullable == false && c.GetValue(obj) == null 92 | select c; 93 | } 94 | } 95 | 96 | public static new NotNullConstraintViolationException New(SQLite3.Result r, string message) 97 | { 98 | return new NotNullConstraintViolationException(r, message); 99 | } 100 | 101 | public static NotNullConstraintViolationException New(SQLite3.Result r, string message, TableMapping mapping, object obj) 102 | { 103 | return new NotNullConstraintViolationException(r, message, mapping, obj); 104 | } 105 | 106 | public static NotNullConstraintViolationException New(SQLiteException exception, TableMapping mapping, object obj) 107 | { 108 | return new NotNullConstraintViolationException(exception.Result, exception.Message, mapping, obj); 109 | } 110 | } 111 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/Sqlite3Define.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3823a52acff9e4e4b98d6280b7bcc34e 3 | timeCreated: 1474985830 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.netpyoung.sqlcipher4unity3d", 3 | "displayName": "SqlCipher4Unity3D", 4 | "version": "1.3.1", 5 | "unity": "2018.4", 6 | "description": "SqlCipher made easy for Unity3d.", 7 | "keywords": [ "database", "sqlite", "sqlcipher", "SqlCipher4Unity3D" ], 8 | "license": "MIT", 9 | "category": "Database", 10 | "dependencies": {} 11 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/SqlCipher4Unity3D/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d01af1889f4fbbb4db1c5355b44ba224 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/StreamingAssets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f265153daaae64c4f95baa15799711c2 3 | folderAsset: yes 4 | timeCreated: 1453576960 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/StreamingAssets/existing.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/StreamingAssets/existing.db -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/StreamingAssets/existing.db.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f8ab01b13aa48e45945efe1a9cc8929 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/StreamingAssets/tempDatabase.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/StreamingAssets/tempDatabase.db -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/StreamingAssets/tempDatabase.db.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b2ff4ca914fb944b8a167699deae275 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example.async.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 693fce8734d3a5a4eaa17ad30f40e0d6 3 | folderAsset: yes 4 | timeCreated: 1474981868 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example.async/CreateDBScriptAsync.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | 6 | namespace example.async 7 | { 8 | public class CreateDBScriptAsync : MonoBehaviour 9 | { 10 | [SerializeField] 11 | public Text DebugText; 12 | 13 | // Use this for initialization 14 | private async void Start() 15 | { 16 | DataServiceAsync ds = new DataServiceAsync("tempDatabase.db"); 17 | await ds.CreateDB(); 18 | 19 | IEnumerable people = await ds.GetPersons().ToListAsync(); 20 | ToConsole(people); 21 | people = await ds.GetPersonsNamedRoberto().ToListAsync(); 22 | ToConsole("Searching for Roberto ..."); 23 | ToConsole(people); 24 | } 25 | 26 | private void ToConsole(IEnumerable people) 27 | { 28 | foreach (Person person in people) ToConsole(person.ToString()); 29 | } 30 | 31 | private void ToConsole(string msg) 32 | { 33 | this.DebugText.text += Environment.NewLine + msg; 34 | Debug.Log(msg); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example.async/CreateDBScriptAsync.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f55913ec97c269c44a8ae0abe95bf373 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example.async/CreateDBScriptAsync.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1742b745bdd4b5847b73a7eac1d28e56 3 | timeCreated: 1445131378 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example.async/DataServiceAsync.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | using SqlCipher4Unity3D; 3 | using UnityEngine; 4 | 5 | #if !UNITY_EDITOR 6 | using System.Collections; 7 | using System.IO; 8 | #endif 9 | namespace example.async 10 | { 11 | public class DataServiceAsync 12 | { 13 | private readonly SQLiteAsyncConnection _connection; 14 | public DataServiceAsync(string DatabaseName) 15 | { 16 | #if UNITY_EDITOR 17 | string dbPath = string.Format(@"Assets/StreamingAssets/{0}", DatabaseName); 18 | #else 19 | // check if file exists in Application.persistentDataPath 20 | string filepath = string.Format("{0}/{1}", Application.persistentDataPath, DatabaseName); 21 | 22 | if (!File.Exists(filepath)) 23 | { 24 | Debug.Log("Database not in Persistent path"); 25 | // if it doesn't -> 26 | // open StreamingAssets directory and load the db -> 27 | 28 | #if UNITY_ANDROID 29 | WWW loadDb = 30 | new WWW ("jar:file://" + Application.dataPath + "!/assets/" + DatabaseName); // this is the path to your StreamingAssets in android 31 | while (!loadDb.isDone) { } // CAREFUL here, for safety reasons you shouldn't let this while loop unattended, place a timer and error check 32 | // then save to Application.persistentDataPath 33 | File.WriteAllBytes (filepath, loadDb.bytes); 34 | #elif UNITY_IOS 35 | string loadDb = 36 | Application.dataPath + "/Raw/" + DatabaseName; // this is the path to your StreamingAssets in iOS 37 | // then save to Application.persistentDataPath 38 | File.Copy (loadDb, filepath); 39 | #elif UNITY_WP8 40 | string loadDb = 41 | Application.dataPath + "/StreamingAssets/" + DatabaseName; // this is the path to your StreamingAssets in iOS 42 | // then save to Application.persistentDataPath 43 | File.Copy (loadDb, filepath); 44 | 45 | #elif UNITY_WINRT 46 | string loadDb = 47 | Application.dataPath + "/StreamingAssets/" + DatabaseName; // this is the path to your StreamingAssets in iOS 48 | // then save to Application.persistentDataPath 49 | File.Copy (loadDb, filepath); 50 | #elif UNITY_STANDALONE_OSX 51 | string loadDb = 52 | Application.dataPath + "/Resources/Data/StreamingAssets/" + DatabaseName; // this is the path to your StreamingAssets in iOS 53 | // then save to Application.persistentDataPath 54 | File.Copy(loadDb, filepath); 55 | #else 56 | string loadDb = 57 | Application.dataPath + "/StreamingAssets/" + DatabaseName; // this is the path to your StreamingAssets in iOS 58 | // then save to Application.persistentDataPath 59 | File.Copy(loadDb, filepath); 60 | #endif 61 | 62 | Debug.Log("Database written"); 63 | } 64 | 65 | var dbPath = filepath; 66 | #endif 67 | _connection = new SQLiteAsyncConnection(dbPath, "password"); 68 | Debug.Log("Final PATH: " + dbPath); 69 | } 70 | ~DataServiceAsync() 71 | { 72 | _connection.CloseAsync().Wait(); 73 | } 74 | 75 | public async Task CreateDB() 76 | { 77 | await _connection.DropTableAsync(); 78 | await _connection.CreateTableAsync(); 79 | 80 | await _connection.InsertAllAsync(new[] 81 | { 82 | new Person 83 | { 84 | Id = 1, 85 | Name = "Tom", 86 | Surname = "Perez", 87 | Age = 56 88 | }, 89 | new Person 90 | { 91 | Id = 2, 92 | Name = "Fred", 93 | Surname = "Arthurson", 94 | Age = 16 95 | }, 96 | new Person 97 | { 98 | Id = 3, 99 | Name = "John", 100 | Surname = "Doe", 101 | Age = 25 102 | }, 103 | new Person 104 | { 105 | Id = 4, 106 | Name = "Roberto", 107 | Surname = "Huertas", 108 | Age = 37 109 | } 110 | }); 111 | } 112 | 113 | public AsyncTableQuery GetPersons() 114 | { 115 | return _connection.Table(); 116 | } 117 | 118 | public AsyncTableQuery GetPersonsNamedRoberto() 119 | { 120 | return _connection.Table().Where(x => x.Name == "Roberto"); 121 | } 122 | 123 | public Task GetJohnny() 124 | { 125 | return _connection.Table().Where(x => x.Name == "Johnny").FirstOrDefaultAsync(); 126 | } 127 | 128 | public async Task CreatePerson() 129 | { 130 | Person p = new Person 131 | { 132 | Name = "Johnny", 133 | Surname = "Mnemonic", 134 | Age = 21 135 | }; 136 | await _connection.InsertAsync(p); 137 | return p; 138 | } 139 | } 140 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example.async/DataServiceAsync.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5751a459619d58d4a94dd9328b7b635f 3 | timeCreated: 1445131381 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example.async/ExistingDBScriptAsync.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | 6 | namespace example.async 7 | { 8 | public class ExistingDBScriptAsync : MonoBehaviour 9 | { 10 | public Text DebugText; 11 | 12 | // Use this for initialization 13 | private async void Start() 14 | { 15 | DataServiceAsync ds = new DataServiceAsync("existing.db"); 16 | await ds.CreateDB(); 17 | IEnumerable people = await ds.GetPersons().ToListAsync(); 18 | ToConsole(people); 19 | 20 | people = await ds.GetPersonsNamedRoberto().ToListAsync(); 21 | ToConsole("Searching for Roberto ..."); 22 | ToConsole(people); 23 | 24 | await ds.CreatePerson(); 25 | ToConsole("New person has been created"); 26 | Person p = await ds.GetJohnny(); 27 | ToConsole(p.ToString()); 28 | } 29 | 30 | private void ToConsole(IEnumerable people) 31 | { 32 | foreach (Person person in people) ToConsole(person.ToString()); 33 | } 34 | 35 | private void ToConsole(string msg) 36 | { 37 | this.DebugText.text += Environment.NewLine + msg; 38 | Debug.Log(msg); 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example.async/ExistingDBScriptAsync.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 49960d726383447479517d6c598bc705 3 | timeCreated: 1445131383 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example.async/ExistingDBScriptAsync.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f51c8260629018b4bba1451a05615bdd 3 | timeCreated: 1445131378 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example.async/Person.cs: -------------------------------------------------------------------------------- 1 | using SQLite.Attributes; 2 | using UnityEngine.Scripting; 3 | 4 | namespace example.async 5 | { 6 | [UnityEngine.Scripting.Preserve] 7 | public class Person 8 | { 9 | [PrimaryKey] [AutoIncrement] public int Id { get; set; } 10 | 11 | public string Name { get; set; } 12 | public string Surname { get; set; } 13 | public int Age { get; set; } 14 | 15 | public override string ToString() 16 | { 17 | return string.Format("[Person: Id={0}, Name={1}, Surname={2}, Age={3}]", this.Id, this.Name, this.Surname, 18 | this.Age); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example.async/Person.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2446036ce9f014468340d720da888af 3 | timeCreated: 1445131381 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: baf9c55a3c6bf401da084e31a9de55e6 3 | folderAsset: yes 4 | timeCreated: 1474981868 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example/CreateDBFromScript.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7968c1be4dbbe3e48bf7da1746a93ac7 3 | timeCreated: 1445131378 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example/CreateDBScript.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | 6 | namespace example 7 | { 8 | public class CreateDBScript : MonoBehaviour 9 | { 10 | [SerializeField] 11 | public Text DebugText; 12 | 13 | // Use this for initialization 14 | private void Start() 15 | { 16 | StartSync(); 17 | } 18 | 19 | private void StartSync() 20 | { 21 | DataService ds = new DataService("tempDatabase.db"); 22 | ds.CreateDB(); 23 | 24 | IEnumerable people = ds.GetPersons(); 25 | ToConsole(people); 26 | people = ds.GetPersonsNamedRoberto(); 27 | ToConsole("Searching for Roberto ..."); 28 | ToConsole(people); 29 | } 30 | 31 | private void ToConsole(IEnumerable people) 32 | { 33 | foreach (Person person in people) ToConsole(person.ToString()); 34 | } 35 | 36 | private void ToConsole(string msg) 37 | { 38 | this.DebugText.text += Environment.NewLine + msg; 39 | Debug.Log(msg); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example/CreateDBScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0dbbe27e7e4128c4480effd81452cbd7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example/DataService.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using SqlCipher4Unity3D; 3 | using UnityEngine; 4 | 5 | #if !UNITY_EDITOR 6 | using System.Collections; 7 | using System.IO; 8 | #endif 9 | namespace example 10 | { 11 | public class DataService 12 | { 13 | private readonly SQLiteConnection _connection; 14 | 15 | public DataService(string DatabaseName) 16 | { 17 | #if UNITY_EDITOR 18 | string dbPath = string.Format(@"Assets/StreamingAssets/{0}", DatabaseName); 19 | #else 20 | // check if file exists in Application.persistentDataPath 21 | string filepath = string.Format("{0}/{1}", Application.persistentDataPath, DatabaseName); 22 | 23 | if (!File.Exists(filepath)) 24 | { 25 | Debug.Log("Database not in Persistent path"); 26 | // if it doesn't -> 27 | // open StreamingAssets directory and load the db -> 28 | 29 | #if UNITY_ANDROID 30 | WWW loadDb = 31 | new WWW ("jar:file://" + Application.dataPath + "!/assets/" + DatabaseName); // this is the path to your StreamingAssets in android 32 | while (!loadDb.isDone) { } // CAREFUL here, for safety reasons you shouldn't let this while loop unattended, place a timer and error check 33 | // then save to Application.persistentDataPath 34 | File.WriteAllBytes (filepath, loadDb.bytes); 35 | #elif UNITY_IOS 36 | string loadDb = 37 | Application.dataPath + "/Raw/" + DatabaseName; // this is the path to your StreamingAssets in iOS 38 | // then save to Application.persistentDataPath 39 | File.Copy (loadDb, filepath); 40 | #elif UNITY_WP8 41 | string loadDb = 42 | Application.dataPath + "/StreamingAssets/" + DatabaseName; // this is the path to your StreamingAssets in iOS 43 | // then save to Application.persistentDataPath 44 | File.Copy (loadDb, filepath); 45 | 46 | #elif UNITY_WINRT 47 | string loadDb = 48 | Application.dataPath + "/StreamingAssets/" + DatabaseName; // this is the path to your StreamingAssets in iOS 49 | // then save to Application.persistentDataPath 50 | File.Copy (loadDb, filepath); 51 | #elif UNITY_STANDALONE_OSX 52 | string loadDb = 53 | Application.dataPath + "/Resources/Data/StreamingAssets/" + DatabaseName; // this is the path to your StreamingAssets in iOS 54 | // then save to Application.persistentDataPath 55 | File.Copy(loadDb, filepath); 56 | #else 57 | string loadDb = 58 | Application.dataPath + "/StreamingAssets/" + DatabaseName; // this is the path to your StreamingAssets in iOS 59 | // then save to Application.persistentDataPath 60 | File.Copy(loadDb, filepath); 61 | #endif 62 | 63 | Debug.Log("Database written"); 64 | } 65 | 66 | var dbPath = filepath; 67 | #endif 68 | _connection = new SQLiteConnection(dbPath, "password"); 69 | Debug.Log("Final PATH: " + dbPath); 70 | } 71 | 72 | public void CreateDB() 73 | { 74 | _connection.DropTable(); 75 | _connection.CreateTable(); 76 | 77 | _connection.InsertAll(new[] 78 | { 79 | new Person 80 | { 81 | Id = 1, 82 | Name = "Tom", 83 | Surname = "Perez", 84 | Age = 56 85 | }, 86 | new Person 87 | { 88 | Id = 2, 89 | Name = "Fred", 90 | Surname = "Arthurson", 91 | Age = 16 92 | }, 93 | new Person 94 | { 95 | Id = 3, 96 | Name = "John", 97 | Surname = "Doe", 98 | Age = 25 99 | }, 100 | new Person 101 | { 102 | Id = 4, 103 | Name = "Roberto", 104 | Surname = "Huertas", 105 | Age = 37 106 | } 107 | }); 108 | } 109 | 110 | public IEnumerable GetPersons() 111 | { 112 | return _connection.Table(); 113 | } 114 | 115 | public IEnumerable GetPersonsNamedRoberto() 116 | { 117 | return _connection.Table().Where(x => x.Name == "Roberto"); 118 | } 119 | 120 | public Person GetJohnny() 121 | { 122 | return _connection.Table().Where(x => x.Name == "Johnny").FirstOrDefault(); 123 | } 124 | 125 | public Person CreatePerson() 126 | { 127 | Person p = new Person 128 | { 129 | Name = "Johnny", 130 | Surname = "Mnemonic", 131 | Age = 21 132 | }; 133 | _connection.Insert(p); 134 | return p; 135 | } 136 | } 137 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example/DataService.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d742b123ebbe8c4f96d3aa783f3981e 3 | timeCreated: 1445131381 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example/ExistingDBScript.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | 6 | namespace example 7 | { 8 | public class ExistingDBScript : MonoBehaviour 9 | { 10 | public Text DebugText; 11 | 12 | // Use this for initialization 13 | private void Start() 14 | { 15 | DataService ds = new DataService("existing.db"); 16 | ds.CreateDB(); 17 | IEnumerable people = ds.GetPersons(); 18 | ToConsole(people); 19 | 20 | people = ds.GetPersonsNamedRoberto(); 21 | ToConsole("Searching for Roberto ..."); 22 | ToConsole(people); 23 | 24 | ds.CreatePerson(); 25 | ToConsole("New person has been created"); 26 | Person p = ds.GetJohnny(); 27 | ToConsole(p.ToString()); 28 | } 29 | 30 | private void ToConsole(IEnumerable people) 31 | { 32 | foreach (Person person in people) ToConsole(person.ToString()); 33 | } 34 | 35 | private void ToConsole(string msg) 36 | { 37 | this.DebugText.text += Environment.NewLine + msg; 38 | Debug.Log(msg); 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example/ExistingDBScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7bc20ff89825de4bbe2fadaed07b0fe 3 | timeCreated: 1445131383 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example/ExistingDBScript.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80cb6bc9fe5b1e542960e51dfedaf005 3 | timeCreated: 1445131378 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example/Person.cs: -------------------------------------------------------------------------------- 1 | using SQLite.Attributes; 2 | using UnityEngine.Scripting; 3 | 4 | namespace example 5 | { 6 | [UnityEngine.Scripting.Preserve] 7 | public class Person 8 | { 9 | [PrimaryKey] [AutoIncrement] public int Id { get; set; } 10 | 11 | public string Name { get; set; } 12 | public string Surname { get; set; } 13 | public int Age { get; set; } 14 | 15 | public override string ToString() 16 | { 17 | return string.Format("[Person: Id={0}, Name={1}, Surname={2}, Age={3}]", this.Id, this.Name, this.Surname, 18 | this.Age); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/example/Person.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba2e90f8c54619440aa5033a49b3f613 3 | timeCreated: 1445131381 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d2dd37a9b8d24d67ac7082ef10a9629 3 | folderAsset: yes 4 | timeCreated: 1529079873 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0d33a9033908804abaf5f87cb783321 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/Editor/IgnoreTest.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using NUnit.Framework; 4 | using UnityEditor.TestTools; 5 | using IgnoreAttribute = SQLite.Attributes.IgnoreAttribute; 6 | using SqlCipher4Unity3D; 7 | using System.IO; 8 | 9 | namespace Test 10 | { 11 | public class Company 12 | { 13 | public string ID { get; set; } 14 | } 15 | 16 | public class Account 17 | { 18 | public string ID { get; set; } 19 | public string CompanyID { get; set; } 20 | [Ignore] 21 | public Company Company 22 | { 23 | get 24 | { 25 | return new Company(); 26 | } 27 | set 28 | { 29 | CompanyID = value.ID; 30 | } 31 | } 32 | 33 | public override bool Equals(object obj) 34 | { 35 | Account o = obj as Account; 36 | if (o is null) 37 | { 38 | return false; 39 | } 40 | 41 | if (this.ID != o.ID) 42 | { 43 | return false; 44 | } 45 | 46 | if (this.CompanyID != o.CompanyID) 47 | { 48 | return false; 49 | } 50 | 51 | return true; 52 | } 53 | 54 | public override int GetHashCode() 55 | { 56 | var hashCode = 480581749; 57 | hashCode = hashCode * -1521134295 + EqualityComparer.Default.GetHashCode(this.ID); 58 | hashCode = hashCode * -1521134295 + EqualityComparer.Default.GetHashCode(this.CompanyID); 59 | hashCode = hashCode * -1521134295 + EqualityComparer.Default.GetHashCode(this.Company); 60 | return hashCode; 61 | } 62 | } 63 | 64 | [TestFixture] 65 | public class IgnoreTest 66 | { 67 | string DbPath = $"Assets/StreamingAssets/{nameof(IgnoreTest)}.db"; 68 | SQLiteConnection Conn = null; 69 | [SetUp] 70 | public void Up() 71 | { 72 | Cleanup(); 73 | this.Conn = new SQLiteConnection(DbPath, ""); 74 | } 75 | 76 | [TearDown] 77 | public void Down() 78 | { 79 | if (Conn != null) 80 | { 81 | Conn.Close(); 82 | } 83 | 84 | Cleanup(); 85 | } 86 | 87 | void Cleanup() 88 | { 89 | if (File.Exists(DbPath)) 90 | { 91 | File.Delete(DbPath); 92 | } 93 | } 94 | 95 | [Test] 96 | public void IgnoreTestSimplePasses() 97 | { 98 | Conn.CreateTable(); 99 | 100 | Account a = new Account { ID = "A", CompanyID = "X" }; 101 | Conn.Insert(a); 102 | Account b = Conn.Table().Where(x => x.ID == "A").First(); 103 | Assert.AreEqual(a, b); 104 | } 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/Editor/IgnoreTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83421f74f7ebebe42aebc627940cf08e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/Editor/Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Tests", 3 | "references": [ 4 | "SqlCipher4Unity3D" 5 | ], 6 | "optionalUnityReferences": [ 7 | "TestAssemblies" 8 | ], 9 | "includePlatforms": [ 10 | "Editor" 11 | ], 12 | "excludePlatforms": [], 13 | "allowUnsafeCode": false, 14 | "overrideReferences": false, 15 | "precompiledReferences": [], 16 | "autoReferenced": true, 17 | "defineConstraints": [] 18 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/Editor/Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8a25d760eb8cb94fbc3745250bf847b 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/test_update.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c29ad90f2bc04514a0da1991b8d6473 3 | folderAsset: yes 4 | timeCreated: 1529079880 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/test_update/test_update.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using SqlCipher4Unity3D; 4 | using SQLite.Attributes; 5 | using UnityEngine; 6 | using UnityEngine.Scripting; 7 | 8 | 9 | // ref : https://github.com/netpyoung/SqlCipher4Unity3D/issues/4 10 | 11 | namespace test.test_update 12 | { 13 | [SQLite.Attributes.Preserve] 14 | public class player_profile 15 | { 16 | [PrimaryKey] public string save_name { get; set; } 17 | 18 | public int active_player { get; set; } 19 | 20 | public override string ToString() 21 | { 22 | return string.Format("[level_story: save_name={0}, active_player={1}]" 23 | , this.save_name, this.active_player); 24 | } 25 | } 26 | 27 | public class test_update : MonoBehaviour 28 | { 29 | private SQLiteConnection _dbconn1; //this was initialized elsewhere 30 | 31 | private void Start() 32 | { 33 | string dbPath = @"Assets/test/test_update/test_update.db"; 34 | this._dbconn1 = new SQLiteConnection(dbPath, ""); 35 | this._dbconn1.DropTable(); 36 | this._dbconn1.CreateTable(); 37 | this._dbconn1.InsertAll(new[] 38 | { 39 | new player_profile 40 | { 41 | save_name = "p1", 42 | active_player = 1, 43 | }, 44 | new player_profile 45 | { 46 | save_name = "p2", 47 | active_player = 1, 48 | }, 49 | new player_profile 50 | { 51 | save_name = "p3", 52 | active_player = 1, 53 | }, 54 | }); 55 | 56 | foreach (player_profile x in this._dbconn1.Table().ToList()) 57 | { 58 | Debug.Log($"before : {x}"); 59 | } 60 | 61 | wannabe_set_active_player("p2"); 62 | 63 | foreach (player_profile x in this._dbconn1.Table().ToList()) 64 | { 65 | Debug.Log($"after : {x}"); 66 | } 67 | } 68 | 69 | public void set_active_player(string player_name) 70 | { 71 | IEnumerable all_active_players = this._dbconn1.Table() 72 | .Where(x => x.active_player > 0 || x.save_name == player_name).ToList() 73 | ; 74 | 75 | this._dbconn1.BeginTransaction(); 76 | if (all_active_players != null) 77 | foreach (player_profile player in all_active_players) 78 | { 79 | if (player_name.Equals(player.save_name)) 80 | { 81 | Debug.LogWarning("Attempting to set the active_player field to: " + player.save_name); 82 | player.active_player = 1; 83 | } 84 | else 85 | { 86 | Debug.LogWarning("Attempting to clear the active_player field for: " + player.save_name); 87 | player.active_player = 0; 88 | } 89 | 90 | this._dbconn1.Update(player); 91 | } 92 | 93 | this._dbconn1.Commit(); 94 | } 95 | 96 | public void wannabe_set_active_player(string player_name) 97 | { 98 | //IEnumerable active_players = this.dbconn1.Table() 99 | // .Where(x => x.active_player > 0 || x.save_name == player_name); 100 | // because, SqlCipher4Unity's Linq's where result's will be delayed until tolist. 101 | 102 | List active_players = this._dbconn1.Table() 103 | .Where(x => x.active_player > 0 || x.save_name == player_name).ToList(); 104 | 105 | // UpdateAll runs Update within RunInTransaction, so it is okay to skip begintransaction/commit. 106 | //this.dbconn1.BeginTransaction(); 107 | 108 | if (active_players != null) 109 | foreach (player_profile player in active_players) 110 | 111 | //if (player_name.Equals(player)) 112 | if (player_name.Equals(player.save_name)) 113 | { 114 | Debug.LogWarning($"Attempting to set the active_player field to: {player_name} -> {player}"); 115 | player.active_player = 1; 116 | } 117 | else 118 | { 119 | Debug.LogWarning($"Attempting to clear the active_player field for: {player_name} -> {player}"); 120 | player.active_player = 0; 121 | } 122 | 123 | this._dbconn1.UpdateAll(active_players); 124 | //this.dbconn1.Commit(); 125 | 126 | } 127 | } 128 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/test_update/test_update.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a8c8205082ad45f1ba24a78dcbb3b93 3 | timeCreated: 1529079924 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/test_update/test_update.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/test/test_update/test_update.db -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/test_update/test_update.db.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 775c37cfcc2c24c5ea2965b92bf7824a 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/test_update/test_update.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 8 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.44657868, g: 0.49641263, b: 0.57481706, a: 1} 42 | --- !u!157 &3 43 | LightmapSettings: 44 | m_ObjectHideFlags: 0 45 | serializedVersion: 11 46 | m_GIWorkflowMode: 0 47 | m_GISettings: 48 | serializedVersion: 2 49 | m_BounceScale: 1 50 | m_IndirectOutputScale: 1 51 | m_AlbedoBoost: 1 52 | m_TemporalCoherenceThreshold: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 9 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_TextureWidth: 1024 61 | m_TextureHeight: 1024 62 | m_AO: 0 63 | m_AOMaxDistance: 1 64 | m_CompAOExponent: 1 65 | m_CompAOExponentDirect: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVRFilterTypeDirect: 0 81 | m_PVRFilterTypeIndirect: 0 82 | m_PVRFilterTypeAO: 0 83 | m_PVRFilteringMode: 1 84 | m_PVRCulling: 1 85 | m_PVRFilteringGaussRadiusDirect: 1 86 | m_PVRFilteringGaussRadiusIndirect: 5 87 | m_PVRFilteringGaussRadiusAO: 2 88 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 89 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 90 | m_PVRFilteringAtrousPositionSigmaAO: 1 91 | m_ShowResolutionOverlay: 1 92 | m_LightingDataAsset: {fileID: 0} 93 | m_UseShadowmask: 1 94 | --- !u!196 &4 95 | NavMeshSettings: 96 | serializedVersion: 2 97 | m_ObjectHideFlags: 0 98 | m_BuildSettings: 99 | serializedVersion: 2 100 | agentTypeID: 0 101 | agentRadius: 0.5 102 | agentHeight: 2 103 | agentSlope: 45 104 | agentClimb: 0.4 105 | ledgeDropHeight: 0 106 | maxJumpAcrossDistance: 0 107 | minRegionArea: 2 108 | manualCellSize: 0 109 | cellSize: 0.16666667 110 | manualTileSize: 0 111 | tileSize: 256 112 | accuratePlacement: 0 113 | debug: 114 | m_Flags: 0 115 | m_NavMeshData: {fileID: 0} 116 | --- !u!1 &863927700 117 | GameObject: 118 | m_ObjectHideFlags: 0 119 | m_PrefabParentObject: {fileID: 0} 120 | m_PrefabInternal: {fileID: 0} 121 | serializedVersion: 5 122 | m_Component: 123 | - component: {fileID: 863927704} 124 | - component: {fileID: 863927703} 125 | - component: {fileID: 863927702} 126 | - component: {fileID: 863927701} 127 | m_Layer: 0 128 | m_Name: Main Camera 129 | m_TagString: MainCamera 130 | m_Icon: {fileID: 0} 131 | m_NavMeshLayer: 0 132 | m_StaticEditorFlags: 0 133 | m_IsActive: 1 134 | --- !u!81 &863927701 135 | AudioListener: 136 | m_ObjectHideFlags: 0 137 | m_PrefabParentObject: {fileID: 0} 138 | m_PrefabInternal: {fileID: 0} 139 | m_GameObject: {fileID: 863927700} 140 | m_Enabled: 1 141 | --- !u!124 &863927702 142 | Behaviour: 143 | m_ObjectHideFlags: 0 144 | m_PrefabParentObject: {fileID: 0} 145 | m_PrefabInternal: {fileID: 0} 146 | m_GameObject: {fileID: 863927700} 147 | m_Enabled: 1 148 | --- !u!20 &863927703 149 | Camera: 150 | m_ObjectHideFlags: 0 151 | m_PrefabParentObject: {fileID: 0} 152 | m_PrefabInternal: {fileID: 0} 153 | m_GameObject: {fileID: 863927700} 154 | m_Enabled: 1 155 | serializedVersion: 2 156 | m_ClearFlags: 1 157 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 158 | m_NormalizedViewPortRect: 159 | serializedVersion: 2 160 | x: 0 161 | y: 0 162 | width: 1 163 | height: 1 164 | near clip plane: 0.3 165 | far clip plane: 1000 166 | field of view: 60 167 | orthographic: 0 168 | orthographic size: 5 169 | m_Depth: -1 170 | m_CullingMask: 171 | serializedVersion: 2 172 | m_Bits: 4294967295 173 | m_RenderingPath: -1 174 | m_TargetTexture: {fileID: 0} 175 | m_TargetDisplay: 0 176 | m_TargetEye: 3 177 | m_HDR: 1 178 | m_AllowMSAA: 1 179 | m_AllowDynamicResolution: 0 180 | m_ForceIntoRT: 0 181 | m_OcclusionCulling: 1 182 | m_StereoConvergence: 10 183 | m_StereoSeparation: 0.022 184 | --- !u!4 &863927704 185 | Transform: 186 | m_ObjectHideFlags: 0 187 | m_PrefabParentObject: {fileID: 0} 188 | m_PrefabInternal: {fileID: 0} 189 | m_GameObject: {fileID: 863927700} 190 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 191 | m_LocalPosition: {x: 0, y: 1, z: -10} 192 | m_LocalScale: {x: 1, y: 1, z: 1} 193 | m_Children: [] 194 | m_Father: {fileID: 0} 195 | m_RootOrder: 0 196 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 197 | --- !u!1 &1161313760 198 | GameObject: 199 | m_ObjectHideFlags: 0 200 | m_PrefabParentObject: {fileID: 0} 201 | m_PrefabInternal: {fileID: 0} 202 | serializedVersion: 5 203 | m_Component: 204 | - component: {fileID: 1161313762} 205 | - component: {fileID: 1161313761} 206 | m_Layer: 0 207 | m_Name: Directional Light 208 | m_TagString: Untagged 209 | m_Icon: {fileID: 0} 210 | m_NavMeshLayer: 0 211 | m_StaticEditorFlags: 0 212 | m_IsActive: 1 213 | --- !u!108 &1161313761 214 | Light: 215 | m_ObjectHideFlags: 0 216 | m_PrefabParentObject: {fileID: 0} 217 | m_PrefabInternal: {fileID: 0} 218 | m_GameObject: {fileID: 1161313760} 219 | m_Enabled: 1 220 | serializedVersion: 8 221 | m_Type: 1 222 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 223 | m_Intensity: 1 224 | m_Range: 10 225 | m_SpotAngle: 30 226 | m_CookieSize: 10 227 | m_Shadows: 228 | m_Type: 2 229 | m_Resolution: -1 230 | m_CustomResolution: -1 231 | m_Strength: 1 232 | m_Bias: 0.05 233 | m_NormalBias: 0.4 234 | m_NearPlane: 0.2 235 | m_Cookie: {fileID: 0} 236 | m_DrawHalo: 0 237 | m_Flare: {fileID: 0} 238 | m_RenderMode: 0 239 | m_CullingMask: 240 | serializedVersion: 2 241 | m_Bits: 4294967295 242 | m_Lightmapping: 4 243 | m_AreaSize: {x: 1, y: 1} 244 | m_BounceIntensity: 1 245 | m_ColorTemperature: 6570 246 | m_UseColorTemperature: 0 247 | m_ShadowRadius: 0 248 | m_ShadowAngle: 0 249 | --- !u!4 &1161313762 250 | Transform: 251 | m_ObjectHideFlags: 0 252 | m_PrefabParentObject: {fileID: 0} 253 | m_PrefabInternal: {fileID: 0} 254 | m_GameObject: {fileID: 1161313760} 255 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 256 | m_LocalPosition: {x: 0, y: 3, z: 0} 257 | m_LocalScale: {x: 1, y: 1, z: 1} 258 | m_Children: [] 259 | m_Father: {fileID: 0} 260 | m_RootOrder: 1 261 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 262 | --- !u!1 &1165988844 263 | GameObject: 264 | m_ObjectHideFlags: 0 265 | m_PrefabParentObject: {fileID: 0} 266 | m_PrefabInternal: {fileID: 0} 267 | serializedVersion: 5 268 | m_Component: 269 | - component: {fileID: 1165988845} 270 | - component: {fileID: 1165988846} 271 | m_Layer: 0 272 | m_Name: test_update 273 | m_TagString: Untagged 274 | m_Icon: {fileID: 0} 275 | m_NavMeshLayer: 0 276 | m_StaticEditorFlags: 0 277 | m_IsActive: 1 278 | --- !u!4 &1165988845 279 | Transform: 280 | m_ObjectHideFlags: 0 281 | m_PrefabParentObject: {fileID: 0} 282 | m_PrefabInternal: {fileID: 0} 283 | m_GameObject: {fileID: 1165988844} 284 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 285 | m_LocalPosition: {x: 0, y: 0, z: 0} 286 | m_LocalScale: {x: 1, y: 1, z: 1} 287 | m_Children: [] 288 | m_Father: {fileID: 0} 289 | m_RootOrder: 2 290 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 291 | --- !u!114 &1165988846 292 | MonoBehaviour: 293 | m_ObjectHideFlags: 0 294 | m_PrefabParentObject: {fileID: 0} 295 | m_PrefabInternal: {fileID: 0} 296 | m_GameObject: {fileID: 1165988844} 297 | m_Enabled: 1 298 | m_EditorHideFlags: 0 299 | m_Script: {fileID: 11500000, guid: 5a8c8205082ad45f1ba24a78dcbb3b93, type: 3} 300 | m_Name: 301 | m_EditorClassIdentifier: 302 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/test_update/test_update.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 577d68b619a0f4ac0a2d4ba69d6c3ad2 3 | timeCreated: 1529079906 4 | licenseType: Free 5 | DefaultImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/test_update_async.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e23b2df950cb0fd43bf7fa386ce0c580 3 | folderAsset: yes 4 | timeCreated: 1529079880 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/test_update_async/test_update_async.cs: -------------------------------------------------------------------------------- 1 | using SqlCipher4Unity3D; 2 | using SQLite.Attributes; 3 | using System.Collections.Generic; 4 | using System.Threading.Tasks; 5 | using UnityEngine; 6 | 7 | 8 | // ref : https://github.com/netpyoung/SqlCipher4Unity3D/issues/4 9 | 10 | namespace test.test_update_async 11 | { 12 | [SQLite.Attributes.Preserve] 13 | public class player_profile 14 | { 15 | [PrimaryKey] public string save_name { get; set; } 16 | 17 | public int active_player { get; set; } 18 | 19 | public override string ToString() 20 | { 21 | return string.Format("[level_story: save_name={0}, active_player={1}]" 22 | , this.save_name, this.active_player); 23 | } 24 | } 25 | 26 | public class test_update_async : MonoBehaviour 27 | { 28 | private SQLiteAsyncConnection _dbconn1; //this was initialized elsewhere 29 | 30 | private async void Start() 31 | { 32 | string dbPath = @"Assets/test/test_update/test_update.db"; 33 | this._dbconn1 = new SQLiteAsyncConnection(dbPath, ""); 34 | await this._dbconn1.DropTableAsync(); 35 | await this._dbconn1.CreateTableAsync(); 36 | await this._dbconn1.InsertAllAsync(new[] 37 | { 38 | new player_profile 39 | { 40 | save_name = "p1", 41 | active_player = 1, 42 | }, 43 | new player_profile 44 | { 45 | save_name = "p2", 46 | active_player = 1, 47 | }, 48 | new player_profile 49 | { 50 | save_name = "p3", 51 | active_player = 1, 52 | }, 53 | }); 54 | 55 | foreach (player_profile x in await this._dbconn1.Table().ToListAsync()) 56 | { 57 | Debug.Log($"before : {x}"); 58 | } 59 | 60 | await wannabe_set_active_player("p2"); 61 | 62 | foreach (player_profile x in await this._dbconn1.Table().ToListAsync()) 63 | { 64 | Debug.Log($"after : {x}"); 65 | } 66 | } 67 | 68 | public async Task wannabe_set_active_player(string player_name) 69 | { 70 | //IEnumerable active_players = this.dbconn1.Table() 71 | // .Where(x => x.active_player > 0 || x.save_name == player_name); 72 | // because, SqlCipher4Unity's Linq's where result's will be delayed until tolist. 73 | 74 | List active_players = await this._dbconn1.Table() 75 | .Where(x => x.active_player > 0 || x.save_name == player_name) 76 | .ToListAsync(); 77 | 78 | // UpdateAll runs Update within RunInTransaction, so it is okay to skip begintransaction/commit. 79 | //this.dbconn1.BeginTransaction(); 80 | 81 | if (active_players != null) 82 | foreach (player_profile player in active_players) 83 | 84 | //if (player_name.Equals(player)) 85 | if (player_name.Equals(player.save_name)) 86 | { 87 | Debug.LogWarning($"Attempting to set the active_player field to: {player_name} -> {player}"); 88 | player.active_player = 1; 89 | } 90 | else 91 | { 92 | Debug.LogWarning($"Attempting to clear the active_player field for: {player_name} -> {player}"); 93 | player.active_player = 0; 94 | } 95 | 96 | await this._dbconn1.UpdateAllAsync(active_players); 97 | //this.dbconn1.Commit(); 98 | 99 | } 100 | } 101 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/test_update_async/test_update_async.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7077f424bc45eee44b03fba9bd2a8495 3 | timeCreated: 1529079924 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/test_update_async/test_update_async.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/Assets/test/test_update_async/test_update_async.db -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/test_update_async/test_update_async.db.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0be63257ad83547458292480c58a3a42 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/test_update_async/test_update_async.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 0 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 0 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_UseShadowmask: 1 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | debug: 122 | m_Flags: 0 123 | m_NavMeshData: {fileID: 0} 124 | --- !u!1 &863927700 125 | GameObject: 126 | m_ObjectHideFlags: 0 127 | m_CorrespondingSourceObject: {fileID: 0} 128 | m_PrefabInstance: {fileID: 0} 129 | m_PrefabAsset: {fileID: 0} 130 | serializedVersion: 6 131 | m_Component: 132 | - component: {fileID: 863927704} 133 | - component: {fileID: 863927703} 134 | - component: {fileID: 863927702} 135 | - component: {fileID: 863927701} 136 | m_Layer: 0 137 | m_Name: Main Camera 138 | m_TagString: MainCamera 139 | m_Icon: {fileID: 0} 140 | m_NavMeshLayer: 0 141 | m_StaticEditorFlags: 0 142 | m_IsActive: 1 143 | --- !u!81 &863927701 144 | AudioListener: 145 | m_ObjectHideFlags: 0 146 | m_CorrespondingSourceObject: {fileID: 0} 147 | m_PrefabInstance: {fileID: 0} 148 | m_PrefabAsset: {fileID: 0} 149 | m_GameObject: {fileID: 863927700} 150 | m_Enabled: 1 151 | --- !u!124 &863927702 152 | Behaviour: 153 | m_ObjectHideFlags: 0 154 | m_CorrespondingSourceObject: {fileID: 0} 155 | m_PrefabInstance: {fileID: 0} 156 | m_PrefabAsset: {fileID: 0} 157 | m_GameObject: {fileID: 863927700} 158 | m_Enabled: 1 159 | --- !u!20 &863927703 160 | Camera: 161 | m_ObjectHideFlags: 0 162 | m_CorrespondingSourceObject: {fileID: 0} 163 | m_PrefabInstance: {fileID: 0} 164 | m_PrefabAsset: {fileID: 0} 165 | m_GameObject: {fileID: 863927700} 166 | m_Enabled: 1 167 | serializedVersion: 2 168 | m_ClearFlags: 1 169 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 170 | m_projectionMatrixMode: 1 171 | m_GateFitMode: 2 172 | m_FOVAxisMode: 0 173 | m_SensorSize: {x: 36, y: 24} 174 | m_LensShift: {x: 0, y: 0} 175 | m_FocalLength: 50 176 | m_NormalizedViewPortRect: 177 | serializedVersion: 2 178 | x: 0 179 | y: 0 180 | width: 1 181 | height: 1 182 | near clip plane: 0.3 183 | far clip plane: 1000 184 | field of view: 60 185 | orthographic: 0 186 | orthographic size: 5 187 | m_Depth: -1 188 | m_CullingMask: 189 | serializedVersion: 2 190 | m_Bits: 4294967295 191 | m_RenderingPath: -1 192 | m_TargetTexture: {fileID: 0} 193 | m_TargetDisplay: 0 194 | m_TargetEye: 3 195 | m_HDR: 1 196 | m_AllowMSAA: 1 197 | m_AllowDynamicResolution: 0 198 | m_ForceIntoRT: 0 199 | m_OcclusionCulling: 1 200 | m_StereoConvergence: 10 201 | m_StereoSeparation: 0.022 202 | --- !u!4 &863927704 203 | Transform: 204 | m_ObjectHideFlags: 0 205 | m_CorrespondingSourceObject: {fileID: 0} 206 | m_PrefabInstance: {fileID: 0} 207 | m_PrefabAsset: {fileID: 0} 208 | m_GameObject: {fileID: 863927700} 209 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 210 | m_LocalPosition: {x: 0, y: 1, z: -10} 211 | m_LocalScale: {x: 1, y: 1, z: 1} 212 | m_Children: [] 213 | m_Father: {fileID: 0} 214 | m_RootOrder: 0 215 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 216 | --- !u!1 &1161313760 217 | GameObject: 218 | m_ObjectHideFlags: 0 219 | m_CorrespondingSourceObject: {fileID: 0} 220 | m_PrefabInstance: {fileID: 0} 221 | m_PrefabAsset: {fileID: 0} 222 | serializedVersion: 6 223 | m_Component: 224 | - component: {fileID: 1161313762} 225 | - component: {fileID: 1161313761} 226 | m_Layer: 0 227 | m_Name: Directional Light 228 | m_TagString: Untagged 229 | m_Icon: {fileID: 0} 230 | m_NavMeshLayer: 0 231 | m_StaticEditorFlags: 0 232 | m_IsActive: 1 233 | --- !u!108 &1161313761 234 | Light: 235 | m_ObjectHideFlags: 0 236 | m_CorrespondingSourceObject: {fileID: 0} 237 | m_PrefabInstance: {fileID: 0} 238 | m_PrefabAsset: {fileID: 0} 239 | m_GameObject: {fileID: 1161313760} 240 | m_Enabled: 1 241 | serializedVersion: 10 242 | m_Type: 1 243 | m_Shape: 0 244 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 245 | m_Intensity: 1 246 | m_Range: 10 247 | m_SpotAngle: 30 248 | m_InnerSpotAngle: 21.80208 249 | m_CookieSize: 10 250 | m_Shadows: 251 | m_Type: 2 252 | m_Resolution: -1 253 | m_CustomResolution: -1 254 | m_Strength: 1 255 | m_Bias: 0.05 256 | m_NormalBias: 0.4 257 | m_NearPlane: 0.2 258 | m_CullingMatrixOverride: 259 | e00: 1 260 | e01: 0 261 | e02: 0 262 | e03: 0 263 | e10: 0 264 | e11: 1 265 | e12: 0 266 | e13: 0 267 | e20: 0 268 | e21: 0 269 | e22: 1 270 | e23: 0 271 | e30: 0 272 | e31: 0 273 | e32: 0 274 | e33: 1 275 | m_UseCullingMatrixOverride: 0 276 | m_Cookie: {fileID: 0} 277 | m_DrawHalo: 0 278 | m_Flare: {fileID: 0} 279 | m_RenderMode: 0 280 | m_CullingMask: 281 | serializedVersion: 2 282 | m_Bits: 4294967295 283 | m_RenderingLayerMask: 1 284 | m_Lightmapping: 4 285 | m_LightShadowCasterMode: 0 286 | m_AreaSize: {x: 1, y: 1} 287 | m_BounceIntensity: 1 288 | m_ColorTemperature: 6570 289 | m_UseColorTemperature: 0 290 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 291 | m_UseBoundingSphereOverride: 0 292 | m_ShadowRadius: 0 293 | m_ShadowAngle: 0 294 | --- !u!4 &1161313762 295 | Transform: 296 | m_ObjectHideFlags: 0 297 | m_CorrespondingSourceObject: {fileID: 0} 298 | m_PrefabInstance: {fileID: 0} 299 | m_PrefabAsset: {fileID: 0} 300 | m_GameObject: {fileID: 1161313760} 301 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 302 | m_LocalPosition: {x: 0, y: 3, z: 0} 303 | m_LocalScale: {x: 1, y: 1, z: 1} 304 | m_Children: [] 305 | m_Father: {fileID: 0} 306 | m_RootOrder: 1 307 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 308 | --- !u!1 &1165988844 309 | GameObject: 310 | m_ObjectHideFlags: 0 311 | m_CorrespondingSourceObject: {fileID: 0} 312 | m_PrefabInstance: {fileID: 0} 313 | m_PrefabAsset: {fileID: 0} 314 | serializedVersion: 6 315 | m_Component: 316 | - component: {fileID: 1165988845} 317 | - component: {fileID: 1165988846} 318 | m_Layer: 0 319 | m_Name: test_update_async 320 | m_TagString: Untagged 321 | m_Icon: {fileID: 0} 322 | m_NavMeshLayer: 0 323 | m_StaticEditorFlags: 0 324 | m_IsActive: 1 325 | --- !u!4 &1165988845 326 | Transform: 327 | m_ObjectHideFlags: 0 328 | m_CorrespondingSourceObject: {fileID: 0} 329 | m_PrefabInstance: {fileID: 0} 330 | m_PrefabAsset: {fileID: 0} 331 | m_GameObject: {fileID: 1165988844} 332 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 333 | m_LocalPosition: {x: 0, y: 0, z: 0} 334 | m_LocalScale: {x: 1, y: 1, z: 1} 335 | m_Children: [] 336 | m_Father: {fileID: 0} 337 | m_RootOrder: 2 338 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 339 | --- !u!114 &1165988846 340 | MonoBehaviour: 341 | m_ObjectHideFlags: 0 342 | m_CorrespondingSourceObject: {fileID: 0} 343 | m_PrefabInstance: {fileID: 0} 344 | m_PrefabAsset: {fileID: 0} 345 | m_GameObject: {fileID: 1165988844} 346 | m_Enabled: 1 347 | m_EditorHideFlags: 0 348 | m_Script: {fileID: 11500000, guid: 7077f424bc45eee44b03fba9bd2a8495, type: 3} 349 | m_Name: 350 | m_EditorClassIdentifier: 351 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/test/test_update_async/test_update_async.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5470dfacf4e7c7544a7dbc06fadb8814 3 | timeCreated: 1529079906 4 | licenseType: Free 5 | DefaultImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/unitypackage-builder.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7a26a60d069b492a867c0ba5b29bf43 3 | folderAsset: yes 4 | timeCreated: 1474981847 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/unitypackage-builder/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 198ccc0ff439e44619144dc1b43a7a6f 3 | folderAsset: yes 4 | timeCreated: 1474981920 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/unitypackage-builder/Editor/PackageTool.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | 3 | public class PackageTool 4 | { 5 | [MenuItem("Package/Update Package")] 6 | private static void UpdatePackage() 7 | { 8 | const string version = "1.3.1"; 9 | AssetDatabase.ExportPackage(new string[] { "Assets/SqlCipher4Unity3D" }, $"../SqlCipher4Unity3D-{version}.unitypackage", ExportPackageOptions.Recurse); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Assets/unitypackage-builder/Editor/PackageTool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64bd1838187844f528757428e0aad150 3 | timeCreated: 1474981953 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ai.navigation": "1.1.5", 4 | "com.unity.ide.rider": "3.0.26", 5 | "com.unity.ide.visualstudio": "2.0.22", 6 | "com.unity.mobile.android-logcat": "1.3.2", 7 | "com.unity.test-framework": "1.1.33", 8 | "com.unity.textmeshpro": "3.0.6", 9 | "com.unity.ugui": "1.0.0", 10 | "com.unity.modules.ai": "1.0.0", 11 | "com.unity.modules.androidjni": "1.0.0", 12 | "com.unity.modules.animation": "1.0.0", 13 | "com.unity.modules.assetbundle": "1.0.0", 14 | "com.unity.modules.audio": "1.0.0", 15 | "com.unity.modules.cloth": "1.0.0", 16 | "com.unity.modules.director": "1.0.0", 17 | "com.unity.modules.imageconversion": "1.0.0", 18 | "com.unity.modules.imgui": "1.0.0", 19 | "com.unity.modules.jsonserialize": "1.0.0", 20 | "com.unity.modules.particlesystem": "1.0.0", 21 | "com.unity.modules.physics": "1.0.0", 22 | "com.unity.modules.physics2d": "1.0.0", 23 | "com.unity.modules.screencapture": "1.0.0", 24 | "com.unity.modules.tilemap": "1.0.0", 25 | "com.unity.modules.ui": "1.0.0", 26 | "com.unity.modules.uielements": "1.0.0", 27 | "com.unity.modules.umbra": "1.0.0", 28 | "com.unity.modules.unityanalytics": "1.0.0", 29 | "com.unity.modules.unitywebrequest": "1.0.0", 30 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 31 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 32 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 33 | "com.unity.modules.unitywebrequestwww": "1.0.0", 34 | "com.unity.modules.vehicles": "1.0.0", 35 | "com.unity.modules.video": "1.0.0", 36 | "com.unity.modules.vr": "1.0.0", 37 | "com.unity.modules.xr": "1.0.0" 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.ai.navigation": { 4 | "version": "1.1.5", 5 | "depth": 0, 6 | "source": "registry", 7 | "dependencies": { 8 | "com.unity.modules.ai": "1.0.0" 9 | }, 10 | "url": "https://packages.unity.com" 11 | }, 12 | "com.unity.ext.nunit": { 13 | "version": "1.0.6", 14 | "depth": 1, 15 | "source": "registry", 16 | "dependencies": {}, 17 | "url": "https://packages.unity.com" 18 | }, 19 | "com.unity.ide.rider": { 20 | "version": "3.0.26", 21 | "depth": 0, 22 | "source": "registry", 23 | "dependencies": { 24 | "com.unity.ext.nunit": "1.0.6" 25 | }, 26 | "url": "https://packages.unity.com" 27 | }, 28 | "com.unity.ide.visualstudio": { 29 | "version": "2.0.22", 30 | "depth": 0, 31 | "source": "registry", 32 | "dependencies": { 33 | "com.unity.test-framework": "1.1.9" 34 | }, 35 | "url": "https://packages.unity.com" 36 | }, 37 | "com.unity.mobile.android-logcat": { 38 | "version": "1.3.2", 39 | "depth": 0, 40 | "source": "registry", 41 | "dependencies": {}, 42 | "url": "https://packages.unity.com" 43 | }, 44 | "com.unity.test-framework": { 45 | "version": "1.1.33", 46 | "depth": 0, 47 | "source": "registry", 48 | "dependencies": { 49 | "com.unity.ext.nunit": "1.0.6", 50 | "com.unity.modules.imgui": "1.0.0", 51 | "com.unity.modules.jsonserialize": "1.0.0" 52 | }, 53 | "url": "https://packages.unity.com" 54 | }, 55 | "com.unity.textmeshpro": { 56 | "version": "3.0.6", 57 | "depth": 0, 58 | "source": "registry", 59 | "dependencies": { 60 | "com.unity.ugui": "1.0.0" 61 | }, 62 | "url": "https://packages.unity.com" 63 | }, 64 | "com.unity.ugui": { 65 | "version": "1.0.0", 66 | "depth": 0, 67 | "source": "builtin", 68 | "dependencies": { 69 | "com.unity.modules.ui": "1.0.0", 70 | "com.unity.modules.imgui": "1.0.0" 71 | } 72 | }, 73 | "com.unity.modules.ai": { 74 | "version": "1.0.0", 75 | "depth": 0, 76 | "source": "builtin", 77 | "dependencies": {} 78 | }, 79 | "com.unity.modules.androidjni": { 80 | "version": "1.0.0", 81 | "depth": 0, 82 | "source": "builtin", 83 | "dependencies": {} 84 | }, 85 | "com.unity.modules.animation": { 86 | "version": "1.0.0", 87 | "depth": 0, 88 | "source": "builtin", 89 | "dependencies": {} 90 | }, 91 | "com.unity.modules.assetbundle": { 92 | "version": "1.0.0", 93 | "depth": 0, 94 | "source": "builtin", 95 | "dependencies": {} 96 | }, 97 | "com.unity.modules.audio": { 98 | "version": "1.0.0", 99 | "depth": 0, 100 | "source": "builtin", 101 | "dependencies": {} 102 | }, 103 | "com.unity.modules.cloth": { 104 | "version": "1.0.0", 105 | "depth": 0, 106 | "source": "builtin", 107 | "dependencies": { 108 | "com.unity.modules.physics": "1.0.0" 109 | } 110 | }, 111 | "com.unity.modules.director": { 112 | "version": "1.0.0", 113 | "depth": 0, 114 | "source": "builtin", 115 | "dependencies": { 116 | "com.unity.modules.audio": "1.0.0", 117 | "com.unity.modules.animation": "1.0.0" 118 | } 119 | }, 120 | "com.unity.modules.imageconversion": { 121 | "version": "1.0.0", 122 | "depth": 0, 123 | "source": "builtin", 124 | "dependencies": {} 125 | }, 126 | "com.unity.modules.imgui": { 127 | "version": "1.0.0", 128 | "depth": 0, 129 | "source": "builtin", 130 | "dependencies": {} 131 | }, 132 | "com.unity.modules.jsonserialize": { 133 | "version": "1.0.0", 134 | "depth": 0, 135 | "source": "builtin", 136 | "dependencies": {} 137 | }, 138 | "com.unity.modules.particlesystem": { 139 | "version": "1.0.0", 140 | "depth": 0, 141 | "source": "builtin", 142 | "dependencies": {} 143 | }, 144 | "com.unity.modules.physics": { 145 | "version": "1.0.0", 146 | "depth": 0, 147 | "source": "builtin", 148 | "dependencies": {} 149 | }, 150 | "com.unity.modules.physics2d": { 151 | "version": "1.0.0", 152 | "depth": 0, 153 | "source": "builtin", 154 | "dependencies": {} 155 | }, 156 | "com.unity.modules.screencapture": { 157 | "version": "1.0.0", 158 | "depth": 0, 159 | "source": "builtin", 160 | "dependencies": { 161 | "com.unity.modules.imageconversion": "1.0.0" 162 | } 163 | }, 164 | "com.unity.modules.subsystems": { 165 | "version": "1.0.0", 166 | "depth": 1, 167 | "source": "builtin", 168 | "dependencies": { 169 | "com.unity.modules.jsonserialize": "1.0.0" 170 | } 171 | }, 172 | "com.unity.modules.tilemap": { 173 | "version": "1.0.0", 174 | "depth": 0, 175 | "source": "builtin", 176 | "dependencies": { 177 | "com.unity.modules.physics2d": "1.0.0" 178 | } 179 | }, 180 | "com.unity.modules.ui": { 181 | "version": "1.0.0", 182 | "depth": 0, 183 | "source": "builtin", 184 | "dependencies": {} 185 | }, 186 | "com.unity.modules.uielements": { 187 | "version": "1.0.0", 188 | "depth": 0, 189 | "source": "builtin", 190 | "dependencies": { 191 | "com.unity.modules.ui": "1.0.0", 192 | "com.unity.modules.imgui": "1.0.0", 193 | "com.unity.modules.jsonserialize": "1.0.0" 194 | } 195 | }, 196 | "com.unity.modules.umbra": { 197 | "version": "1.0.0", 198 | "depth": 0, 199 | "source": "builtin", 200 | "dependencies": {} 201 | }, 202 | "com.unity.modules.unityanalytics": { 203 | "version": "1.0.0", 204 | "depth": 0, 205 | "source": "builtin", 206 | "dependencies": { 207 | "com.unity.modules.unitywebrequest": "1.0.0", 208 | "com.unity.modules.jsonserialize": "1.0.0" 209 | } 210 | }, 211 | "com.unity.modules.unitywebrequest": { 212 | "version": "1.0.0", 213 | "depth": 0, 214 | "source": "builtin", 215 | "dependencies": {} 216 | }, 217 | "com.unity.modules.unitywebrequestassetbundle": { 218 | "version": "1.0.0", 219 | "depth": 0, 220 | "source": "builtin", 221 | "dependencies": { 222 | "com.unity.modules.assetbundle": "1.0.0", 223 | "com.unity.modules.unitywebrequest": "1.0.0" 224 | } 225 | }, 226 | "com.unity.modules.unitywebrequestaudio": { 227 | "version": "1.0.0", 228 | "depth": 0, 229 | "source": "builtin", 230 | "dependencies": { 231 | "com.unity.modules.unitywebrequest": "1.0.0", 232 | "com.unity.modules.audio": "1.0.0" 233 | } 234 | }, 235 | "com.unity.modules.unitywebrequesttexture": { 236 | "version": "1.0.0", 237 | "depth": 0, 238 | "source": "builtin", 239 | "dependencies": { 240 | "com.unity.modules.unitywebrequest": "1.0.0", 241 | "com.unity.modules.imageconversion": "1.0.0" 242 | } 243 | }, 244 | "com.unity.modules.unitywebrequestwww": { 245 | "version": "1.0.0", 246 | "depth": 0, 247 | "source": "builtin", 248 | "dependencies": { 249 | "com.unity.modules.unitywebrequest": "1.0.0", 250 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 251 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 252 | "com.unity.modules.audio": "1.0.0", 253 | "com.unity.modules.assetbundle": "1.0.0", 254 | "com.unity.modules.imageconversion": "1.0.0" 255 | } 256 | }, 257 | "com.unity.modules.vehicles": { 258 | "version": "1.0.0", 259 | "depth": 0, 260 | "source": "builtin", 261 | "dependencies": { 262 | "com.unity.modules.physics": "1.0.0" 263 | } 264 | }, 265 | "com.unity.modules.video": { 266 | "version": "1.0.0", 267 | "depth": 0, 268 | "source": "builtin", 269 | "dependencies": { 270 | "com.unity.modules.audio": "1.0.0", 271 | "com.unity.modules.ui": "1.0.0", 272 | "com.unity.modules.unitywebrequest": "1.0.0" 273 | } 274 | }, 275 | "com.unity.modules.vr": { 276 | "version": "1.0.0", 277 | "depth": 0, 278 | "source": "builtin", 279 | "dependencies": { 280 | "com.unity.modules.jsonserialize": "1.0.0", 281 | "com.unity.modules.physics": "1.0.0", 282 | "com.unity.modules.xr": "1.0.0" 283 | } 284 | }, 285 | "com.unity.modules.xr": { 286 | "version": "1.0.0", 287 | "depth": 0, 288 | "source": "builtin", 289 | "dependencies": { 290 | "com.unity.modules.physics": "1.0.0", 291 | "com.unity.modules.jsonserialize": "1.0.0", 292 | "com.unity.modules.subsystems": "1.0.0" 293 | } 294 | } 295 | } 296 | } 297 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 1 23 | m_ClothInterCollisionSettingsToggle: 0 24 | m_ContactPairsMode: 0 25 | m_BroadphaseType: 0 26 | m_WorldBounds: 27 | m_Center: {x: 0, y: 0, z: 0} 28 | m_Extent: {x: 250, y: 250, z: 250} 29 | m_WorldSubdivisions: 8 30 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/example.async/CreateDBScriptAsync.unity 10 | guid: 1742b745bdd4b5847b73a7eac1d28e56 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 9 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 1 30 | m_AssetPipelineMode: 1 31 | m_CacheServerMode: 0 32 | m_CacheServerEndpoint: 33 | m_CacheServerNamespacePrefix: default 34 | m_CacheServerEnableDownload: 1 35 | m_CacheServerEnableUpload: 1 36 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 40 | - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} 41 | m_PreloadedShaders: [] 42 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 43 | type: 0} 44 | m_CustomRenderPipeline: {fileID: 0} 45 | m_TransparencySortMode: 0 46 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 47 | m_DefaultRenderingPath: 1 48 | m_DefaultMobileRenderingPath: 1 49 | m_TierSettings: [] 50 | m_LightmapStripping: 0 51 | m_FogStripping: 0 52 | m_InstancingStripping: 0 53 | m_LightmapKeepPlain: 1 54 | m_LightmapKeepDirCombined: 1 55 | m_LightmapKeepDynamicPlain: 1 56 | m_LightmapKeepDynamicDirCombined: 1 57 | m_LightmapKeepShadowMask: 1 58 | m_LightmapKeepSubtractive: 1 59 | m_FogKeepLinear: 1 60 | m_FogKeepExp: 1 61 | m_FogKeepExp2: 1 62 | m_AlbedoSwatchInfos: [] 63 | m_LightsUseLinearIntensity: 0 64 | m_LightsUseColorTemperature: 0 65 | m_LogWhenShaderIsCompiled: 0 66 | m_AllowEnlightenSupportForUpgradedProject: 1 67 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/MemorySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!387306366 &1 4 | MemorySettings: 5 | m_ObjectHideFlags: 0 6 | m_EditorMemorySettings: 7 | m_MainAllocatorBlockSize: -1 8 | m_ThreadAllocatorBlockSize: -1 9 | m_MainGfxBlockSize: -1 10 | m_ThreadGfxBlockSize: -1 11 | m_CacheBlockSize: -1 12 | m_TypetreeBlockSize: -1 13 | m_ProfilerBlockSize: -1 14 | m_ProfilerEditorBlockSize: -1 15 | m_BucketAllocatorGranularity: -1 16 | m_BucketAllocatorBucketsCount: -1 17 | m_BucketAllocatorBlockSize: -1 18 | m_BucketAllocatorBlockCount: -1 19 | m_ProfilerBucketAllocatorGranularity: -1 20 | m_ProfilerBucketAllocatorBucketsCount: -1 21 | m_ProfilerBucketAllocatorBlockSize: -1 22 | m_ProfilerBucketAllocatorBlockCount: -1 23 | m_TempAllocatorSizeMain: -1 24 | m_JobTempAllocatorBlockSize: -1 25 | m_BackgroundJobTempAllocatorBlockSize: -1 26 | m_JobTempAllocatorReducedBlockSize: -1 27 | m_TempAllocatorSizeGIBakingWorker: -1 28 | m_TempAllocatorSizeNavMeshWorker: -1 29 | m_TempAllocatorSizeAudioWorker: -1 30 | m_TempAllocatorSizeCloudWorker: -1 31 | m_TempAllocatorSizeGfx: -1 32 | m_TempAllocatorSizeJobWorker: -1 33 | m_TempAllocatorSizeBackgroundWorker: -1 34 | m_TempAllocatorSizePreloadManager: -1 35 | m_PlatformMemorySettings: {} 36 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreviewPackages: 0 16 | m_EnablePackageDependencies: 0 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | oneTimeWarningShown: 0 20 | m_Registries: 21 | - m_Id: main 22 | m_Name: 23 | m_Url: https://packages.unity.com 24 | m_Scopes: [] 25 | m_IsDefault: 1 26 | m_Capabilities: 7 27 | m_UserSelectedRegistryName: 28 | m_UserAddingNewScopedRegistry: 0 29 | m_RegistryInfoDraft: 30 | m_ErrorMessage: 31 | m_Original: 32 | m_Id: 33 | m_Name: 34 | m_Url: 35 | m_Scopes: [] 36 | m_IsDefault: 0 37 | m_Capabilities: 0 38 | m_Modified: 0 39 | m_Name: 40 | m_Url: 41 | m_Scopes: 42 | - 43 | m_SelectedScopeIndex: 0 44 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_AutoSyncTransforms: 1 46 | m_AlwaysShowColliders: 0 47 | m_ShowColliderSleep: 1 48 | m_ShowColliderContacts: 0 49 | m_ShowColliderAABB: 0 50 | m_ContactArrowScale: 0.2 51 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 52 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 53 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 54 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 55 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 56 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2022.3.9f1 2 | m_EditorVersionWithRevision: 2022.3.9f1 (ea401c316338) 3 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 4 41 | resolutionScalingFixedDPIFactor: 1 42 | excludedTargetPlatforms: [] 43 | - serializedVersion: 2 44 | name: Low 45 | pixelLightCount: 0 46 | shadows: 0 47 | shadowResolution: 0 48 | shadowProjection: 1 49 | shadowCascades: 1 50 | shadowDistance: 20 51 | shadowNearPlaneOffset: 3 52 | shadowCascade2Split: 0.33333334 53 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 54 | shadowmaskMode: 0 55 | blendWeights: 2 56 | textureQuality: 0 57 | anisotropicTextures: 0 58 | antiAliasing: 0 59 | softParticles: 0 60 | softVegetation: 0 61 | realtimeReflectionProbes: 0 62 | billboardsFaceCameraPosition: 0 63 | vSyncCount: 0 64 | lodBias: 0.4 65 | maximumLODLevel: 0 66 | streamingMipmapsActive: 0 67 | streamingMipmapsAddAllCameras: 1 68 | streamingMipmapsMemoryBudget: 512 69 | streamingMipmapsRenderersPerFrame: 512 70 | streamingMipmapsMaxLevelReduction: 2 71 | streamingMipmapsMaxFileIORequests: 1024 72 | particleRaycastBudget: 16 73 | asyncUploadTimeSlice: 2 74 | asyncUploadBufferSize: 4 75 | resolutionScalingFixedDPIFactor: 1 76 | excludedTargetPlatforms: [] 77 | - serializedVersion: 2 78 | name: Medium 79 | pixelLightCount: 1 80 | shadows: 1 81 | shadowResolution: 0 82 | shadowProjection: 1 83 | shadowCascades: 1 84 | shadowDistance: 20 85 | shadowNearPlaneOffset: 3 86 | shadowCascade2Split: 0.33333334 87 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 88 | shadowmaskMode: 0 89 | blendWeights: 2 90 | textureQuality: 0 91 | anisotropicTextures: 1 92 | antiAliasing: 0 93 | softParticles: 0 94 | softVegetation: 0 95 | realtimeReflectionProbes: 0 96 | billboardsFaceCameraPosition: 0 97 | vSyncCount: 1 98 | lodBias: 0.7 99 | maximumLODLevel: 0 100 | streamingMipmapsActive: 0 101 | streamingMipmapsAddAllCameras: 1 102 | streamingMipmapsMemoryBudget: 512 103 | streamingMipmapsRenderersPerFrame: 512 104 | streamingMipmapsMaxLevelReduction: 2 105 | streamingMipmapsMaxFileIORequests: 1024 106 | particleRaycastBudget: 64 107 | asyncUploadTimeSlice: 2 108 | asyncUploadBufferSize: 4 109 | resolutionScalingFixedDPIFactor: 1 110 | excludedTargetPlatforms: [] 111 | - serializedVersion: 2 112 | name: High 113 | pixelLightCount: 2 114 | shadows: 2 115 | shadowResolution: 1 116 | shadowProjection: 1 117 | shadowCascades: 2 118 | shadowDistance: 40 119 | shadowNearPlaneOffset: 3 120 | shadowCascade2Split: 0.33333334 121 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 122 | shadowmaskMode: 1 123 | blendWeights: 2 124 | textureQuality: 0 125 | anisotropicTextures: 1 126 | antiAliasing: 0 127 | softParticles: 0 128 | softVegetation: 1 129 | realtimeReflectionProbes: 1 130 | billboardsFaceCameraPosition: 1 131 | vSyncCount: 1 132 | lodBias: 1 133 | maximumLODLevel: 0 134 | streamingMipmapsActive: 0 135 | streamingMipmapsAddAllCameras: 1 136 | streamingMipmapsMemoryBudget: 512 137 | streamingMipmapsRenderersPerFrame: 512 138 | streamingMipmapsMaxLevelReduction: 2 139 | streamingMipmapsMaxFileIORequests: 1024 140 | particleRaycastBudget: 256 141 | asyncUploadTimeSlice: 2 142 | asyncUploadBufferSize: 4 143 | resolutionScalingFixedDPIFactor: 1 144 | excludedTargetPlatforms: [] 145 | - serializedVersion: 2 146 | name: Very High 147 | pixelLightCount: 3 148 | shadows: 2 149 | shadowResolution: 2 150 | shadowProjection: 1 151 | shadowCascades: 2 152 | shadowDistance: 70 153 | shadowNearPlaneOffset: 3 154 | shadowCascade2Split: 0.33333334 155 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 156 | shadowmaskMode: 1 157 | blendWeights: 4 158 | textureQuality: 0 159 | anisotropicTextures: 2 160 | antiAliasing: 2 161 | softParticles: 1 162 | softVegetation: 1 163 | realtimeReflectionProbes: 1 164 | billboardsFaceCameraPosition: 1 165 | vSyncCount: 1 166 | lodBias: 1.5 167 | maximumLODLevel: 0 168 | streamingMipmapsActive: 0 169 | streamingMipmapsAddAllCameras: 1 170 | streamingMipmapsMemoryBudget: 512 171 | streamingMipmapsRenderersPerFrame: 512 172 | streamingMipmapsMaxLevelReduction: 2 173 | streamingMipmapsMaxFileIORequests: 1024 174 | particleRaycastBudget: 1024 175 | asyncUploadTimeSlice: 2 176 | asyncUploadBufferSize: 4 177 | resolutionScalingFixedDPIFactor: 1 178 | excludedTargetPlatforms: [] 179 | - serializedVersion: 2 180 | name: Ultra 181 | pixelLightCount: 4 182 | shadows: 2 183 | shadowResolution: 2 184 | shadowProjection: 1 185 | shadowCascades: 4 186 | shadowDistance: 150 187 | shadowNearPlaneOffset: 3 188 | shadowCascade2Split: 0.33333334 189 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 190 | shadowmaskMode: 1 191 | blendWeights: 4 192 | textureQuality: 0 193 | anisotropicTextures: 2 194 | antiAliasing: 2 195 | softParticles: 1 196 | softVegetation: 1 197 | realtimeReflectionProbes: 1 198 | billboardsFaceCameraPosition: 1 199 | vSyncCount: 1 200 | lodBias: 2 201 | maximumLODLevel: 0 202 | streamingMipmapsActive: 0 203 | streamingMipmapsAddAllCameras: 1 204 | streamingMipmapsMemoryBudget: 512 205 | streamingMipmapsRenderersPerFrame: 512 206 | streamingMipmapsMaxLevelReduction: 2 207 | streamingMipmapsMaxFileIORequests: 1024 208 | particleRaycastBudget: 4096 209 | asyncUploadTimeSlice: 2 210 | asyncUploadBufferSize: 4 211 | resolutionScalingFixedDPIFactor: 1 212 | excludedTargetPlatforms: [] 213 | m_PerPlatformDefaultQuality: 214 | Android: 2 215 | Nintendo 3DS: 5 216 | Nintendo Switch: 5 217 | PS4: 5 218 | PSP2: 2 219 | Standalone: 5 220 | WebGL: 3 221 | Windows Store Apps: 5 222 | XboxOne: 5 223 | iPhone: 2 224 | tvOS: 2 225 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /SqlCipher4Unity3D/codeformatter.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp2.2 6 | Library\**\*.cs 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /SqlCipher4Unity3D/qwe123.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/netpyoung/SqlCipher4Unity3D/80577236481b0b8e867f1947c4554a8a959a7dca/SqlCipher4Unity3D/qwe123.keystore -------------------------------------------------------------------------------- /interop-convert/.gitignore: -------------------------------------------------------------------------------- 1 | /sqlcipher/ 2 | /Interop/ 3 | -------------------------------------------------------------------------------- /interop-convert/ClangShap_libcipher.rsp: -------------------------------------------------------------------------------- 1 | --config 2 | compatible-codegen 3 | generate-macro-bindings 4 | generate-helper-types 5 | multi-file 6 | unix-types 7 | log-visited-files 8 | --include-directory 9 | sqlcipher 10 | /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/ 11 | /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Headers/ 12 | --file-directory 13 | sqlcipher 14 | --file 15 | sqlite3.h 16 | --namespace 17 | unity.libcipher.Interop 18 | --libraryPath 19 | REPLACE_IT 20 | --output 21 | ./Interop 22 | --------------------------------------------------------------------------------