Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanoltman committed Sep 9, 2024
1 parent 914a6e7 commit bd88a17
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/content/docs/guides/hybrid-apps/android.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,12 @@ In `app/build.gradle`, add the following:
buildTypes {
release {
// ...
+ // Necessary to ensure the libapp.so produced by Shorebird matches the one that ends up
+ // in the APK.
+ // The Dart compiler builds libapp.so directly (does not use clang),and already strips
+ // symbols. However when llvm-strip is run on libapp.so, the symbols are re-sorted
+ // causing the hash of the library to change (which can confuse Shorebird tools).
+ // This line tells gradle to skip the unnecessary llvm-strip step for libapp.so
+ // thus ensuring that the libapp.so that Shorebird sees is byte-identical to the one
+ // which ends up in the APK/AAR/AAB.
+ packaging.jniLibs.keepDebugSymbols.add("**/libapp.so")
// ...
}
Expand Down

0 comments on commit bd88a17

Please sign in to comment.