Uploaded image for project: 'SimplyE 2.0'
  1. SimplyE 2.0
  2. SIMPLY-168

Resolve circular dependency in PDF Module Design (android)

XMLWordPrintable

    • S9

      Context:

      https://github.com/NYPL-Simplified/DRM-Android-Core/blob/2f45e9298b6402c6ed3a6a0fd9e8263620337a6a/nypl-drm-core/src/main/java/org/nypl/drm/core/AdobeAdeptConnectorFactory.java#L113

      Okay, there it is! It seems like Adobe Android is actually a bit different than what I proposed. There, the mediating library, the equivalent of PDF Renderer Provider, loads the tainted library, the equivalent of PSPDFKit Provider, directly.

      Both ways work fine. It's just a question of where the code in that factory class I linked lives.

      You can see how it calls `Class.forName` to load the class dynamically and then casts it to an instance of `AdobeAdeptConnectorType` (which is part of the non-tainted mediating library).

            gregoryoneill Gregory O'neill [X] (Inactive)
            gregoryoneill Gregory O'neill [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: