PDF
flutter1flutter使ffiSqlCipherContents ............................................................................................... 1flutter ...................................................................................... 1 .................................................................................................. 3使cd tcl8.6.10/unix./configuremakesudo make installmake testcd sqlcipher/build./configure --enable-tempstore=no \ --with-crypto-lib=none \ --enable-fts5 \ CFLAGS="-DSQLCIPHER_CRYPTO_OPENSSL -DSQLITE_TEMP_STORE=3 -DSQLITE_HAS_CODEC -I/usr/local/opt/openssl/include/" \ LDFLAGS="/usr/local/opt/openssl/lib/libcrypto.a"flutterflutter create \ --platforms=android,ios \ flutter2 --org=com.riguz \ --template=plugin \ -i swift \ -a java \ native_sqlcipher--platforms=android,iosgit clone https://github.com/sqlcipher/sqlcipher.gitcd sqlciphermkdir build../configure --with-crypto-lib=none --enable-fts5make sqlite3.c./configure --enable-tempstore=no \ --with-crypto-lib=none \ --enable-fts5 \ CFLAGS="-DSQLCIPHER_CRYPTO_OPENSSL -DSQLITE_TEMP_STORE=3 -DSQLITE_HAS_CODEC -I/usr/local/opt/openssl/include/" \ LDFLAGS="/usr/local/opt/openssl/lib/libcrypto.a"iosPod::Spec.new do |s| s.name = 'native_sqlcipher' # ... # configureSQLITE_ENABLE_FTS5fts5 s.frameworks = 'Security' s.xcconfig = { 'OTHER_CFLAGS' => '-DSQLITE_ENABLE_FTS5 -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=3 -DSQLCIPHER_CRYPTO_CC -DNDEBUG' } # ...endOpenSSL 3export ANDROID_NDK_HOME=/Users/hfli/Library/Android/sdk/ndk/21.3.6528147 PATH=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/darwin-x86_64/bin:$ANDROID_NDK_HOME/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin:$PATH ./Configure android-arm64 -D__ANDROID_API__=29 make#./Configure android-arm -D__ANDROID_API__=29#./Configure android-arm64 -D__ANDROID_API__=29#./Configure android-x86 -D__ANDROID_API__=29./Configure android-x86_64 -D__ANDROID_API__=29make cleanmakemake SHLIB_VERSION_NUMBER= SHLIB_EXT=.sosqlcipher

HTML view coming soon.

Download PDF for the full formatted version.