trapeze icon indicating copy to clipboard operation
trapeze copied to clipboard

Modify files in src?

Open cg-roling opened this issue 2 years ago • 0 comments

I'm not sure if this would be in scope for the project or not, but we have a situation where we would like to modify some files in the src folder of our project.

We are creating separate app IDs for dev, qa, and release builds, with their own icons. Trapeze + capacitor-assets works great for this.

However, we have a custom URL scheme for Android that we also need to change per build type, and we need to have that URL in our source code.

Right now we are using an ugly hack to get it done with Trapeze, but we'd prefer a more "official" way:

platforms:
  ios:
    bundleId: $BUNDLE_ID
    displayName: $DISPLAY_NAME
    # NOTE: Not actually iOS specific below here
    # It's a hack to get the custom url scheme visible to the app
    json:
      - file: ../../src/app-info.json
        merge:
          customUrlScheme: $BUNDLE_ID

cg-roling avatar Sep 30 '22 18:09 cg-roling