airsdk / apm

AIR Package Manager
https://repository.airsdk.dev/
MIT License
60 stars 10 forks source link

Different build configurations for similar apps #157

Closed Kelsonk closed 1 year ago

Kelsonk commented 2 years ago

I have several similar apps that all use the same ANEs. It would be nice to have different build configurations that can replace the default one, each having it's own package name, version number, and any parameter changes needed for the ANEs (different advertising ids, etc)

marchbold commented 2 years ago

Okay, so the parameters for the extensions are possible currently through "build types".

I'll look into adding the ability to change the identifier and version number through these as well.

Kelsonk commented 1 year ago

Sorry, trying to find documentation on 'build types'. I essentially just want a new config file with new project config parameters, version, identifier, etc, without having to install all the anes again in a separate folder.

EDIT: Right now I copy and past the project file, change the attributes I need, and then rename the project file that I want to generate the apm with to 'project.apm'. It's a little clumsy but it works fine.

marchbold commented 1 year ago

Hi,

It's a bit manual at the moment, but I've added the ability to set an identifier inside the build types, eg:

"buildTypes": {
        "debug": {
            "identifier": "com.app.debug",
            "configuration": {
                "someparam": "somevalue",
            }
        }
    },

I might reopen this one though as I see you have asked for the version as well which currently isn't supported.

marchbold commented 1 year ago

FYI: https://github.com/airsdk/apm/wiki/Usage-ProjectsAndPackages#project-parameters