Skip to content

Commit c579553

Browse files
authored
fix: update build gradle to support libcrypto (#1)
In order to get this to build on a Pixel 5 add `packagingOptions` to ensure it picks the right libcrypto path
1 parent b152f27 commit c579553

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ yarn-error.*
3434
# typescript
3535
*.tsbuildinfo
3636
package-lock.json
37+
yarn.lock

android/app/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ android {
112112
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
113113
}
114114
}
115+
packagingOptions {
116+
pickFirst 'lib/armeabi-v7a/libcrypto.so'
117+
pickFirst 'lib/arm64-v8a/libcrypto.so'
118+
pickFirst 'lib/x86_64/libcrypto.so'
119+
pickFirst 'lib/x86/libcrypto.so'
120+
}
121+
115122
}
116123

117124
// Apply static values from `gradle.properties` to the `android.packagingOptions`

0 commit comments

Comments
 (0)