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

Replace of a entry in gradle.variables kills isEqualTo #157

Open Timbuktu1982 opened 1 year ago

Timbuktu1982 commented 1 year ago

Hi there,

when i add a entry in gradle.variables -> ext via insert, all processed correctly. When i use "replace", the isEqualTo char is killed.

 - file: variables.gradle
              target:
                  ext:
              insertType: "variable"
              insert:
                  - firebaseMessagingVersion: "'20.0.6'"

All will be processed correctly in target file (firebaseMessagingVersion = '20.0.6').

- file: variables.gradle
              target:
                  ext:
                      firebaseMessagingVersion:
              replace:
                  - firebaseMessagingVersion: "'20.0.7'"

The command kills the = (firebaseMessagingVersion '20.0.7').

What went wrong?

mlynch commented 1 year ago

I think I need to add the insertType support to replace. Will put this on the list

Timbuktu1982 commented 1 year ago

thx