PlatformModule class
The root/platform module containing the Kotlin Multiplatform sourcecode.
Constructors
- PlatformModule({required Directory root, required String pluginName, required String packageName, required Directory androidMain, required Directory commonMain, required Directory iosMain})
-
Create a PlatformModule.
const
- PlatformModule.fromRoot({required String pathToRoot, required String pluginName, required String packageName})
-
Create a PlatformModule based of a root path.
factory
Properties
- androidMain → Directory
-
The root/platform/src/androidMain/kotlin/
final
- commonMain → Directory
-
The root/platform/src/commonMain/kotlin/
final
- createAndroidManifest → void
-
Create the AndroidManifest.xml file.
no setter
- createAndroidPlatformClass → void
-
Create Platform.kt (Kotlin) class file
in android package with example Kotlin code.
no setter
- createCommonGreetingClass → void
-
Create Greeting.kt (Kotlin) class file
in common package with example Kotlin code.
no setter
- createCommonPlatformClass → void
-
Create Platform.kt (Kotlin) class file
in common package with example Kotlin code.
no setter
- createIosPlatformClass → void
-
Create Platform.kt (Kotlin) class file
in ios package with example Kotlin code.
no setter
- createPlatformGradleFile → void
-
Create the build.gradle.kts file in the platform module.
no setter
- createPlatformSourceFolders → void
-
Create the source folders:
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- iosMain → Directory
-
The root/platform/src/iosMain/kotlin/
final
- packageName → String
-
The android package name being.
final
- pluginName → String
-
The name of the plugin as defined in the pubspec.yaml 'name:' tag.
final
- root → Directory
-
The root/platform folder.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited