Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify files in src? #107

Closed
cg-roling opened this issue Sep 30, 2022 · 3 comments
Closed

Modify files in src? #107

cg-roling opened this issue Sep 30, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@cg-roling
Copy link

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
@mlynch
Copy link
Contributor

mlynch commented Nov 15, 2022

I see, so more of a non-platform tied command? Need to think about it but seems reasonable

@mlynch mlynch added the enhancement New feature or request label Nov 15, 2022
mlynch added a commit that referenced this issue Nov 16, 2022
* Starting to support non-platform scoped operations #107

* Add xml project op

* Process project operations

* Support project level xml and json operations
@mlynch
Copy link
Contributor

mlynch commented Nov 16, 2022

Added support for xml and json operations at the root of the project in 6.0.2. See https://trapeze.dev/docs/configuration-tool#project for more info on how to use this.

@mlynch mlynch closed this as completed Nov 16, 2022
@cg-roling
Copy link
Author

That's awesome, this will be super helpful, thanks Max!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants