Replies: 4 comments 1 reply
-
These values are used through the additions merge process as well so it is important that they match. I'm actually more inclined to go the other way and provide more options in the project config than remove them. Can you explain why you wouldn't want to have an accurate representation in the project file? |
Beta Was this translation helpful? Give feedback.
-
It's a design choice: 1
I was under the impression you were aiming for case 2 (not a full replacement for the app descriptor). Additional thoughts. Have you considered making the project configuration an XML file? All AIR-related config files tend to be XML, our internal tooling is equipped for parsing XML, not JSON (which I like more, as a human, but you know, legacy...). What if the config file was an extension of the application descriptor? Something like this: <application>
<id>my.id</id>
<name>
<text xml:lang="en">My App</text>
</name>
<versionNumber>1.15.0</versionNumber>
<filename>App</filename>
<description>
<text xml:lang="en">App</text>
</description>
<copyright>Copyright 2016-2021, Fovea</copyright>
<supportedLanguages>en fr es de ja ko nl pt pl</supportedLanguages>
<initialWindow>
<aspectRatio>landscape</aspectRatio>
<renderMode>direct</renderMode>
<autoOrients>true</autoOrients>
<fullScreen>true</fullScreen>
<visible>true</visible>
<softKeyboardBehavior>none</softKeyboardBehavior>
</initialWindow>
<!--- NEW STUFF HERE --->
<dependencies>
<dependency>
<id>starling-source</id>
<version>2.7.0</version>
</dependency>
</dependencies>
<configurations>
<configuration key="getTaskAllow">false</configuration>
</configurations>
</application> That would also make scenario Just an idea... |
Beta Was this translation helpful? Give feedback.
-
What I am aiming for is sort of like what you outline in 1, however not just replacing the app descriptor with the
I actually see potential to take the tool even further, with generating icons (including Assets.car / launch screens - which would be inserted into the app descriptor), build configurations for IDEs, and potentially even assembling build scripts. If this becomes the entry point for all libs, the majority of the information for configuring a build is contained here already. The current approach of using the existing application descriptor as a template, is pretty much what you are suggesting. It allows immediate migration for an existing project, (as long as packages are available for all the ANEs in use) to Maybe we could provide an option to |
Beta Was this translation helpful? Give feedback.
-
As far as we're concerned, See #60 and #61 - Until all possible cases of what is possible in the application descriptor are handled, |
Beta Was this translation helpful? Give feedback.
-
I understand why
id
andversionNumber
are pulled from the project config file, they're a bit of a special because they're probably the only fields absolutely required to get a valid application descriptor (when not using a sourceapplication-descriptor.xml
I mean)In our case, I would rather not use the values in the
project.apm
file and use values in the source xml file. However even setting them tonull
in the project config, it always erases the values I set.Beta Was this translation helpful? Give feedback.
All reactions