Multiplatform
Introduction
Amper was built from the start with Kotlin Multiplatform in mind. Kotlin Multiplatform is a technology that allows building a single module for different target platforms.
https://amper.org/latest/user-guide/multiplatform/
Resources
In multiplatform modules resources are merged from the common folders and corresponding platform-specific folders:
|-src/
| |-...
|-resources/ # these resources are copied into the Android and JVM artifact
| |-...
|-resources@android/ # these resources are copied into the Android artifact
| |-...
|-resources@jvm/ # these resources are copied into the JVM artifact
| |-...In the case of duplicating names, the common resources are overwritten by the more specific ones. That is resources/foo.txt will be overwritten by resources@android/foo.txt.
Android modules also have res and assets folders:
|-src/
| |-...
|-res/
| |-drawable/
| | |-...
| |-layout/
| | |-...
| |-...
|-assets/
| |-...
|-module.yamlEstás leyendo una vista previa.
Inicia sesión con Google para leer la página completa. Una cuenta de Google incluye 5 páginas gratuitas en total; el alumnado y el profesorado leen las páginas de su curso sin límite.
Iniciar sesión