|
2 | 2 |
|
3 | 3 | ## What's this? |
4 | 4 |
|
5 | | - This project was insprited in [codecoding/SQLite4Unity3d](https://github.com/codecoding/SQLite4Unity3d). |
| 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 | 6 |
|
7 | | - When I started with Unity3d development I needed to use SQLite in my project and it was very hard to me to find a place with simple instructions on how to make it work. All I got were links to paid solutions on the Unity3d's Assets Store and a lot of different and complicated tutorials. |
| 7 | +- based on |
| 8 | + - [codecoding/SQLite4Unity3d](https://github.com/codecoding/SQLite4Unity3d) |
| 9 | + - [sqlite-net](https://github.com/praeclarum/sqlite-net) |
8 | 10 |
|
9 | | - At the end, I decided that there should be a simpler way and I created **SqlCipher4Unity3D**, a plugin that helps you to use SqlCipher in your Unity3d projects in a clear and easy way. |
| 11 | +## prebuilt library |
10 | 12 |
|
11 | | - It uses the great [sqlite-net](https://github.com/praeclarum/sqlite-net) library as a base so you will have **Linq besides sql**. For a further reference on what possibilities you have available with this library I encourage you to visit [its github repository](https://github.com/praeclarum/sqlite-net). |
| 13 | +- prebuilt library are maintained by [prebuilt-libsqlcipher](https://github.com/netpyoung/prebuilt-libsqlcipher) |
| 14 | + - libsqlcipher v4.4.3 |
12 | 15 |
|
13 | | -- Note: _SQLite4Unity3d uses only the synchronous part of sqlite-net, so all the calls to the database are synchronous._ |
| 16 | +## installation |
14 | 17 |
|
15 | | -## Support Platforms |
| 18 | +## using .unitypackage |
16 | 19 |
|
17 | | -| Platforms | | Support? | SQLCipherVersion | |
18 | | -|-----------|-------------|----------|-------------------------------------------------------------------------------------------| |
19 | | -| Windows | x86 | O | v4.4.0 | |
20 | | -| Windows | x86_64 | O | v4.4.0 | |
21 | | -| Linux | x86_64 | O | v4.4.0 | |
22 | | -| macOS | x86_64 | O | [v4.4.0](https://github.com/jfcontart/SqlCipher4Unity3D_Apple) | |
23 | | -| iOS | 64bit | O | [v4.4.0](https://github.com/jfcontart/SqlCipher4Unity3D_Apple) | |
24 | | -| tvOS | 64bit | O | [v4.4.0](https://github.com/jfcontart/SqlCipher4Unity3D_Apple) | |
25 | | -| Android | armeabi-v7a | O | [v4.4.0](https://mvnrepository.com/artifact/net.zetetic/android-database-sqlcipher/4.4.0) | |
26 | | -| Android | arm64_v8a | O | [v4.4.0](https://mvnrepository.com/artifact/net.zetetic/android-database-sqlcipher/4.4.0) | |
27 | | -| Android | x86 | O | [v4.4.0](https://mvnrepository.com/artifact/net.zetetic/android-database-sqlcipher/4.4.0) | |
28 | | -| Android | x86_64 | O | [v4.4.0](https://mvnrepository.com/artifact/net.zetetic/android-database-sqlcipher/4.4.0) | |
29 | | -| Linux | x86 | X | | |
30 | | -| WebGL | | X | | |
| 20 | +- [Download this .unitypackage from Release Page](https://github.com/netpyoung/SqlCipher4Unity3D/releases) |
| 21 | + |
| 22 | +## using UPM |
| 23 | + |
| 24 | +using #{version} for versioning. |
| 25 | + |
| 26 | +``` json |
| 27 | +"com.netpyoung.sqlcipher4unity3d": "https://github.com/netpyoung/SqlCipher4Unity3D.git?path=SqlCipher4Unity3D/Assets/SqlCipher4Unity3D#1.2.0" |
| 28 | +``` |
31 | 29 |
|
32 | 30 | ## Watchout |
33 | 31 |
|
|
38 | 36 |
|
39 | 37 | From `1.1.0` I removed `v` prefix for support UPM. |
40 | 38 |
|
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 | | -## The fast track |
47 | | - |
48 | | -All you have to do to start using it in your project: |
| 39 | +| SqlCipher4Unity3D tag | sqlcipher version | |
| 40 | +| --------------------- | --------------------------------------------------------------------------------------------------------------- | |
| 41 | +| 1.1.x ~ | 4.x.x | |
| 42 | +| v1.0.x ~ | [3.x.x](https://github.com/netpyoung/SqlCipher4Unity3D/blob/2c642b3f0387dadfb4a145cb7236e99c9109fb94/README.md) | |
49 | 43 |
|
50 | | -1. Download unitypackage, then extract its content on your Unity3D Project. It contains the dlls that Unity3d will need to access sqlite. |
51 | | - - [v1.0.2.unitypackage](https://github.com/netpyoung/SqlCipher4Unity3D/releases/download/v1.0.2/SqlCipher4Unity3D-v1.0.2.unitypackage) (for sqlcipher 3.x.x) |
52 | | - - [1.1.2.unitypackage](https://github.com/netpyoung/SqlCipher4Unity3D/releases/download/1.1.2/SqlCipher4Unity3D-1.1.2.unitypackage) (for sqlcipher 4.x.x) |
53 | | -2. **You’re done!** |
| 44 | +## Example & Test |
54 | 45 |
|
55 | | -## Examples & Tests |
56 | | - |
57 | | -- [./SqlCipher4Unity3D/Assets/example/](./SqlCipher4Unity3D/Assets/example/) |
58 | | -- [./SqlCipher4Unity3D/Assets/test/](./SqlCipher4Unity3D/Assets/test/) |
59 | | - |
60 | | -## UPM |
61 | | - |
62 | | -``` json |
63 | | -"com.netpyoung.sqlcipher4unity3d": "https://github.com/netpyoung/SqlCipher4Unity3D.git?path=SqlCipher4Unity3D/Assets/SqlCipher4Unity3D#1.1.2" |
64 | | -``` |
| 46 | +- [example](./SqlCipher4Unity3D/Assets/example/), [test](./SqlCipher4Unity3D/Assets/test/) |
65 | 47 |
|
66 | 48 | ## Contributer(❤️) |
67 | 49 |
|
68 | | -- [@jfcontart] |
| 50 | +- [@jfcontart](https://github.com/jfcontart) |
69 | 51 |
|
70 | 52 | ## LICENCE |
71 | 53 |
|
72 | 54 | | project | license | |
73 | | -|-------------------------------------------------------------------------------------------|-------------------------------------------------------------------------| |
| 55 | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | |
74 | 56 | | [netpyoung/SqlCipher4Unity3d](./) | [MIT](./LICENSE) | |
75 | 57 | | [jfcontart/SqlCipher4Unity3D_Apple](https://github.com/jfcontart/SqlCipher4Unity3D_Apple) | [copyleft](https://github.com/jfcontart/SqlCipher4Unity3D_Apple) | |
76 | 58 | | [robertohuertasm/SQLite4Unity3d](https://github.com/robertohuertasm/SQLite4Unity3d) | [MIT](https://github.com/codecoding/SQLite4Unity3d/blob/master/LICENSE) | |
@@ -132,7 +114,3 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
132 | 114 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
133 | 115 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
134 | 116 | ``` |
135 | | - |
136 | | ----------------- |
137 | | - |
138 | | -[@jfcontart]: https://github.com/jfcontart |
0 commit comments