createPlatformModule function producer

void createPlatformModule({
  1. required String pathToRoot,
  2. required String pluginName,
  3. required String packageName,
})

Generate the Kotlin Multiplatform module.

The klutter folder contains 2 folders:

  • android

The android folder contains the .aar artifact.

The

Implementation

void createPlatformModule({
  required String pathToRoot,
  required String pluginName,
  required String packageName,
}) =>
    PlatformModule.fromRoot(
        pathToRoot: pathToRoot,
        pluginName: pluginName,
        packageName: packageName)
      ..createPlatformGradleFile
      ..createPlatformSourceFolders
      ..createAndroidPlatformClass
      ..createCommonGreetingClass
      ..createCommonPlatformClass
      ..createIosPlatformClass;