Tom Truyen
08/11/2024, 5:35 PMcomposeApp directory which contains androidMain , iosMain , desktopMain and commonMain with a single build.gradle.kts file in the composeApp directory. How would one go about adding Amper into this? Is it just: add a module.yml in each platform specific directory and in commonMain, or must there also be one in composeApp as a replacement for the build.gradle.kts ?amakeev
08/12/2024, 8:13 AMmodule.yaml. Here is an example. Also the template gallery has templates with Amper projects that you can useTom Truyen
08/12/2024, 8:57 AMcomposeApp structure (by design). I should switch to the more traditional structure of having a module for each platform and shared?
Will there in the future be a possibility to use it with the composeApp structure?amakeev
08/12/2024, 9:01 AMcomposeApp to appear in Amper, but that's the thing with experiments, we never know for sure where we might end up 🙂Tom Truyen
08/12/2024, 9:03 AMTom Truyen
08/12/2024, 6:10 PMdesktopApp with the module.yaml, though when I try to run the desktopApp I get:
'C:\Users\Tom\Downloads\KMP-App-Template-amper' is not recognized as an internal or external command,
operable program or batch file.
It seems like it is trying to use Amper but instead of doing so it attempts to execute my current working directory as a command?
module.yaml of desktopApp
product: jvm/app
dependencies:
- ../shared
- $compose.desktop.currentOs
settings:
compose: enabled
I must be missing something but can't figure out whatTom Truyen
08/12/2024, 6:26 PMTom Truyen
08/12/2024, 7:31 PMError: Module 'TestAmper.android-app.main' doesn't exist in project
Could not launch run taskklikh
08/13/2024, 2:38 PMandroid-app configuration seem to be recreated after importing the project.
Could you please double check it once again? Don’t forget to modify the module name in settings.gradle.kts and reimport the project afterwards. If the configuration does not get renamed, please try to manually “Edit a Copy” of it and modify the module name there. Let me know if that helps.Tom Truyen
08/13/2024, 5:51 PMrun.json after running it successfully I deleted that json file and it keeps working. This regeneration system behaviour is kinda strange. Is it written out somewhere how it works?klikh
08/15/2024, 12:33 PMTom Truyen
08/15/2024, 12:36 PMsettings.gradle.kts and re-imported the gradle project.
Then after I edit that copy the run.json was generated and I altered the module in that. Then running the androidApp it worked. I then deleted the run.json and androidApp kept working.
Simply renaming the folder android-app to androidApp did not work (see error message above)