Skip to content

Commit

Permalink
fix android patch
Browse files Browse the repository at this point in the history
  • Loading branch information
paulocoutinhox committed Dec 15, 2023
1 parent caab3dd commit 3c34c5a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ def run_task_patch():

source_dir = os.path.join("build", "android", "pdfium")

# shared lib
source_file = os.path.join(source_dir, "BUILD.gn")

original_content = 'component("pdfium") {'
has_content = f.file_has_content(source_file, original_content)

if has_content:
new_content = 'shared_library("pdfium") {'
f.replace_in_file(source_file, original_content, new_content)
l.bullet("Applied: shared lib", l.GREEN)
else:
l.bullet("Skipped: shared lib", l.PURPLE)

# build config
source_file = os.path.join(
source_dir,
Expand Down

0 comments on commit 3c34c5a

Please sign in to comment.