Skip to content

Asset Integration: Image Assets Not Rendering in Android Build #5

@elcoosp

Description

@elcoosp

Summary

While integrating Lynx into an existing Android project using custom templates, image assets fail to render in the production build despite successful compilation and bundle generation. Current implementation uses a workaround for asset copying that appears insufficient for proper asset resolution.

Implementation Details

  1. Base Setup

  2. Bundle Generation

  3. Testing

    • Build artifacts generated successfully via test script

    • App runs on device but fails to render image assets

    • Screenshot: Missing Assets

Current Issue

The manual asset copying solution appears incomplete, specifically regarding:

  • Proper asset path resolution in production builds

  • Potential misconfiguration of asset URL prefixes

Questions

  1. What is the recommended approach for asset management in custom Android integrations without Lynx Explorer?

  2. Should output.assetPrefix be configured differently for native packaging?

  3. Are there established best practices for:

    • Asset directory structure in hybrid projects

    • Build-time asset processing

Additional Context

  • iOS implementation not yet attempted

  • Current workaround focuses on Android-first implementation

  • Willing to provide build logs/asset directory structure if helpful


Request
Seeking guidance on proper asset handling patterns and configuration adjustments needed to resolve rendering issues while not relying on lynx-explorer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions