Adobe AIR project: multiple packages

已回答

Switching from FlashBuilder to IntelliJ, I'm trying to set up a project with the following structure:

  • 1 set of core classes & assets, the "Core Project", so to speak;
  • 1 Project A (extending the Core Project), which has its own set of additional classes & assets;
  • 1 Project B (extending the Core Project), which has its own set of additional classes & assets–but different from Project A;

(I'm using the word "project" here, but technically, it might rather be a module or something else: that's my point!)

So both A & B share common code & assets, but also have their own specificities.

Besides, the technical requirements are the following:

  • both projects A & B must be delivered as Windows application (EXE) and for Android (APK, with ANEs).
  • specific assets (embedded data, images, documents...) must be packaged only with A or B respectively (i.e.: when packaged, app A must not include B-specific contents, & vice versa);
  • goes without saying, all common code and assets must be in the core, and not duplicated.

I have tried to set up this architecture in IntelliJ by using multiple Modules (core = 1 module, A = 1 module, B = 1 module) inside one unique Project, which worked to a certain extent.

I have also tried using multiple Projects. It looks like a project can be used as a dependency for another project, but I was not able to:
File > Project Structure > Project Settings > Modules > Dependencies > Plus > 3 Project
I seem to be able to add another project's path, say: Core Project classes as dependency for Project A, but the Core classes do not seem to be available to Project A...?

What's the proper way of achieving this architecture with IntelliJ? Is it with multiple Modules or with multiple Projects? Or a combination of both?

In FlashBuilder, I used to have an FB Project for each (1 for the core classes, 1 for Project A Windows, 1 for Project A Android, 1 for Project B Windows...).

0

In a multi-module flash projects you configure dependencies on another module by adding that module's build configuration. Please see Build configuration dependencies (build path). Please see also Configure dependencies for modular applications about possible ways of defining dependencies.

0

Hi, I know this was awhile ago, but how did you setup both a desktop build and a mobile build? I can't have a project in the same location.

 

EDIT: Got it, add a new module and add a new build configuration with the module.

1

请先登录再写评论。