fix(ios): prevent tree shaking by including dummy function

Signed-off-by: Amogh Lele <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2024-07-18 05:20:21 +05:30
1 parent 7c948b4f5f
commit bd99114d6c
9 files changed
+264 -1

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
public func dummyMethodToEnforceBundling() {
enforce_binding() // disable tree shaking
}
+1
View File
@@ -0,0 +1 @@
void enforce_binding();
+1 -1
View File
@@ -1,3 +1,3 @@
// Relative import to be able to reuse the C sources.
// See the comment in ../{projectName}}.podspec for more information.
#include "../../src/readability.c"
// #include "../../src/readability.c"