ionic-team / trapeze

The mobile project configuration toolbox. Manage native iOS, Android, Ionic/Capacitor, React Native, and Flutter apps through a simple YAML format.
https://trapeze.dev
Other
323 stars 40 forks source link

Replacement encodes special characters #220

Open carlvorster opened 2 months ago

carlvorster commented 2 months ago

I'm trying to inject the following into my Info.plist file to force the space in the name, but is seems Trapeze is converting & to & - any idea how to escape this conversion? I've tried , \, quotes

.yml

ios:
    targets:
      App:
        version: $VERSION
        incrementBuild: true
        bundleId: $BUNDLE_ID
        displayName: STAGING Market

info.plist

<key>CFBundleDisplayName</key>
<string>STAGING&amp;#x2008;Market</string> 
theproducer commented 2 months ago

I'm trying to inject the following into my Info.plist file to force the space in the name, but is seems Trapeze is converting & to & - any idea how to escape this conversion? I've tried , , quotes

.yml

ios:
    targets:
      App:
        version: $VERSION
        incrementBuild: true
        bundleId: $BUNDLE_ID
        displayName: STAGING&#x2008;Market

info.plist

<key>CFBundleDisplayName</key>
<string>STAGING&amp;#x2008;Market</string> 

What happens if you just use a space for displayName?

carlvorster commented 2 months ago

@theproducer the space works fine; the problem I'm trying to solve is that Apple strips whitespace if the app name is longer than 12 chars, the workaround is to use this special char, it "simulates" a space. The workaround works 100% if I update the info.plist file directly, but I need to to push this through Trapeze for CI, staging builds and white labeling....