Skip to content

Commit 2c0e354

Browse files
committed
optimise library size
1 parent bce36c8 commit 2c0e354

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
export PATH="$TOOLCHAIN/bin:$PATH"
4040
4141
cd openssl
42-
./Configure ${TARGETS[${{ matrix.toolchain }}]} -D__ANDROID_API__=$MIN_SDK -static -fpic -no-shared -no-fuzz-afl -no-fuzz-libfuzzer -no-tests -no-apps '-Wno-macro-redefined'
42+
./Configure ${TARGETS[${{ matrix.toolchain }}]} -D__ANDROID_API__=$MIN_SDK -static -fpic -no-shared -no-fuzz-afl -no-fuzz-libfuzzer -no-tests -no-apps -ffunction-sections -fdata-sections '-Wno-macro-redefined'
4343
make -j 4
4444
4545
- name: Build SQLCipher
@@ -54,7 +54,7 @@ jobs:
5454
export LD="$TOOLCHAIN/bin/ld"
5555
5656
cd sqlcipher
57-
./configure --with-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC -DSQLITE_EXTRA_INIT=sqlcipher_extra_init -DSQLITE_EXTRA_SHUTDOWN=sqlcipher_extra_shutdown -D__ANDROID_API__=$MIN_SDK -I$OPENSSL_HEADERS" LDFLAGS="$OPENSSL_LIB -llog -Wl,-z,max-page-size=16384"
57+
./configure --with-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC -DSQLITE_EXTRA_INIT=sqlcipher_extra_init -DSQLITE_EXTRA_SHUTDOWN=sqlcipher_extra_shutdown -D__ANDROID_API__=$MIN_SDK -I$OPENSSL_HEADERS" LDFLAGS="$OPENSSL_LIB -llog -Wl,-z,max-page-size=16384,--gc-sections"
5858
make -j 4
5959
6060
"$TOOLCHAIN/bin/llvm-strip" libsqlite3.so

Stratum.SQLCipher/Stratum.SQLCipher.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77

88
<PackageId>StratumAuth.SQLCipher</PackageId>
9-
<Version>0.1.0</Version>
9+
<Version>1.0.0</Version>
1010
<Authors>jamie-mh</Authors>
1111
<Copyright>Copyright (c) jamie-mh 2025</Copyright>
1212
<ProjectUrl>https://stratumauth.com</ProjectUrl>

0 commit comments

Comments
 (0)