lime icon indicating copy to clipboard operation
lime copied to clipboard

Expose more information to project.xml users.

Open player-03 opened this issue 2 years ago • 1 comments

Previously, they could access ${app.file} and ${config.android}, but not ${project.platformType} or ${config.android.target-sdk-version}. Now they can!

I don't know if we'd want to phase out ${projectDirectory}, but it's now an option.

player-03 avatar Jun 15 '22 04:06 player-03

Some additions I've considered:

  • Access map properties. I've already implemented this, still using the dot access syntax. It's a bit weird considering that isn't how you normally interact with maps.
  • Add a parent variable to ProjectXMLParser that points to the project above. Then you can use dot access to get parent.parent.workingDirectory or whatever.
  • Make some adjustments so that you can always use the result value in conditionals. For instance, if="${targetFlags.clean}".

player-03 avatar Jun 15 '22 04:06 player-03