Skip to content

Commit 0b7209f

Browse files
author
Hideki Itakura
committed
Fixed core issue 1455 - sqlcipher.dll is missing for windows.
- binaryName for windows platform does not includes `lib`, so condition did not match.
1 parent cb76502 commit 0b7209f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sqlcipher/build-java.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ binaries.withType(SharedLibraryBinary) { binary ->
322322
// Jar libsqlcipher library:
323323
// workaround to avoid dupicated libsqlcipher.so
324324
// see: https://github.com/couchbase/couchbase-lite-java-core/issues/1185
325-
if (binaryName.startsWith("libcbljavasqlcipher")) {
325+
// Windows: no libxxxx
326+
if (binaryName.indexOf("cbljavasqlcipher") != -1) {
326327
jar.into("native/${os}/${arch}") {
327328
def libPath;
328329
def libName = os == 'windows' ? "sqlcipher.dll" : (os == 'osx' ? "libsqlcipher.dylib" : "libsqlcipher.so")

0 commit comments

Comments
 (0)