Skip to content

Commit

Permalink
pdfium-apple-v4
Browse files Browse the repository at this point in the history
  • Loading branch information
espresso3389 committed Dec 13, 2023
1 parent 5d13e30 commit ae95f2d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions darwin/Classes/pdfium_interop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ extern "C" EXPORT void INTEROP_API pdfrx_file_access_set_value(pdfrx_file_access
}

#if defined(__APPLE__)
#include <fpdf_annot.h>
#include <fpdf_text.h>

extern "C" EXPORT void const *const *INTEROP_API pdfrx_binding()
{
static const void *bindings[] = {
Expand Down
4 changes: 2 additions & 2 deletions darwin/pdfrx.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Pod::Spec.new do |s|

s.prepare_command = <<-CMD
cd pdfium
curl -Lo ios.tgz https://github.com/espresso3389/pdfrx/releases/download/first-release/pdfium-ios.tgz && tar xzf ios.tgz && rm ios.tgz
curl -Lo macos.tgz https://github.com/espresso3389/pdfrx/releases/download/first-release/pdfium-macos.tgz && tar xzf macos.tgz && rm macos.tgz
curl -Lo ios.tgz https://github.com/espresso3389/pdfrx/releases/download/pdfium-apple-v4/pdfium-ios.tgz && tar xzf ios.tgz && rm ios.tgz
curl -Lo macos.tgz https://github.com/espresso3389/pdfrx/releases/download/pdfium-apple-v4/pdfium-macos.tgz && tar xzf macos.tgz && rm macos.tgz
CMD

s.swift_version = '5.0'
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
integration_test: 13825b8a9334a850581300559b8839134b124670
pdfrx: 6f2e8ecb139bc0dc8aa8eb3f19cb509d000c7db1
pdfrx: fe35c387faa13ab7fe65b2e1739341000a42787a

PODFILE CHECKSUM: a57f30d18f102dd3ce366b1d62a55ecbef2158e5

Expand Down

0 comments on commit ae95f2d

Please sign in to comment.