Skip to content

Commit 36e4319

Browse files
committed
Initial release of 4.4.3a version of the SQLCipher
0 parents  commit 36e4319

File tree

7 files changed

+249778
-0
lines changed

7 files changed

+249778
-0
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Max Kalashnikoff
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.

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# SQLCipher amalgamation file for React Native
2+
3+
[![npm version](https://badge.fury.io/js/sqlcipher-amalgamation.svg)](https://badge.fury.io/js/sqlcipher-amalgamation)
4+
5+
SQLCipher C sources amalgamation file NPM package for building in the React Native project.
6+
7+
## Using for Android builds
8+
9+
You can use it as an npm package dependency at the top level of the project and include it in the `native/android/app/CMakeLists.txt`:
10+
11+
```
12+
include_directories(
13+
...
14+
../../node_modules/@commapp/sqlcipher-amalgamation/src
15+
)
16+
17+
file(GLOB SQLCIPHER "../../node_modules/@commapp/sqlcipher-amalgamation/src/*.c")
18+
19+
add_library(
20+
...
21+
${SQLCIPHER}
22+
)
23+
```
24+
25+
## Using for iOS
26+
27+
The package must be installed as an npm dependency at the top level of the project and include in the `native/ios/Podfile`:
28+
29+
```
30+
target 'Project' do
31+
...
32+
pod 'SQLCipher-Amalgamation', :path => '../../node_modules/@commapp/sqlcipher-amalgamation'
33+
```
34+
35+
## Release and versioning
36+
37+
This package release version is the same as the SQLCipher release version.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"authors": "Comm Technologies, Inc.",
3+
"default_subspecs": "standard",
4+
"description": "SQLCipher sources amalgamation file for using in Xcode projects.",
5+
"homepage": "https://github.com/CommE2E/sqlcipher-amalgamation",
6+
"license": "MIT",
7+
"name": "SQLCipher-Amalgamation",
8+
"platforms": {
9+
"ios": "11.0"
10+
},
11+
"requires_arc": false,
12+
"source": {
13+
"git": "https://github.com/CommE2E/sqlcipher-amalgamation.git",
14+
"tag": "v4.4.3a"
15+
},
16+
"summary": "Full Database Encryption for SQLite.",
17+
"version": "4.4.3a",
18+
"module_name": "SQLCipher",
19+
"dependencies": {
20+
"OpenSSL-Universal": []
21+
},
22+
"frameworks": [
23+
"Foundation"
24+
],
25+
"subspecs": [
26+
{
27+
"compiler_flags": [
28+
"-DNDEBUG",
29+
"-DSQLITE_HAS_CODEC",
30+
"-DSQLITE_TEMP_STORE=2"
31+
],
32+
"name": "common",
33+
"source_files": "src/sqlite3.{h,c}",
34+
"header_dir": "src",
35+
"xcconfig": {
36+
"USE_HEADERMAP": "NO",
37+
"GCC_PREPROCESSOR_DEFINITIONS": "$(inherited) SQLITE_HAS_CODEC=1 SQLITE_TEMP_STORE=2",
38+
"OTHER_CFLAGS": "$(inherited) -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2 -DSQLCIPHER_CRYPTO_OPENSSL"
39+
}
40+
},
41+
{
42+
"dependencies": {
43+
"SQLCipher-Amalgamation/common": []
44+
},
45+
"name": "standard"
46+
},
47+
{
48+
"compiler_flags": "",
49+
"dependencies": {
50+
"SQLCipher-Amalgamation/common": []
51+
},
52+
"name": "unlock_notify",
53+
"xcconfig": {
54+
"OTHER_CFLAGS": "$(inherited)"
55+
}
56+
}
57+
]
58+
}

package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "@commapp/sqlcipher-amalgamation",
3+
"version": "4.4.3a",
4+
"description": "SQLCipher sources amalgamation file",
5+
"scripts": {
6+
"test": "echo \"Error: no test specified\" && exit 1"
7+
},
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/CommE2E/sqlcipher-amalgamation.git"
11+
},
12+
"keywords": [
13+
"sqlcipher",
14+
"sqlite",
15+
"sqlite3"
16+
],
17+
"author": "Max Kalashnikov",
18+
"license": "MIT",
19+
"bugs": {
20+
"url": "https://github.com/CommE2E/sqlcipher-amalgamation/issues"
21+
},
22+
"homepage": "https://github.com/CommE2E/sqlcipher-amalgamation#readme",
23+
"dependencies": {},
24+
"publishConfig": {
25+
"access": "public"
26+
},
27+
"devDependencies": {},
28+
"main": "index.js"
29+
}

0 commit comments

Comments
 (0)