mirror of
https://github.com/InsanusMokrassar/KotlinMultiplatformProjectTemplate.git
synced 2025-09-03 07:09:19 +00:00
init
This commit is contained in:
8
lib/build.gradle
Normal file
8
lib/build.gradle
Normal file
@@ -0,0 +1,8 @@
|
||||
plugins {
|
||||
id "org.jetbrains.kotlin.multiplatform"
|
||||
id "org.jetbrains.kotlin.plugin.serialization"
|
||||
id "com.android.library"
|
||||
}
|
||||
|
||||
apply from: "$mppProjectWithSerializationPresetPath"
|
||||
|
7
lib/src/commonMain/kotlin/project_group/Library.kt
Normal file
7
lib/src/commonMain/kotlin/project_group/Library.kt
Normal file
@@ -0,0 +1,7 @@
|
||||
package project_group
|
||||
|
||||
class Library {
|
||||
fun someLibraryMethod(): Boolean {
|
||||
return true
|
||||
}
|
||||
}
|
1
lib/src/main/AndroidManifest.xml
Normal file
1
lib/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1 @@
|
||||
<manifest package="project_group"/>
|
14
lib/src/test/kotlin/project_group/LibraryTest.kt
Normal file
14
lib/src/test/kotlin/project_group/LibraryTest.kt
Normal file
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* This Kotlin source file was generated by the Gradle 'init' task.
|
||||
*/
|
||||
package project_group
|
||||
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertTrue
|
||||
|
||||
class LibraryTest {
|
||||
@Test fun testSomeLibraryMethod() {
|
||||
val classUnderTest = Library()
|
||||
assertTrue(classUnderTest.someLibraryMethod(), "someLibraryMethod should return 'true'")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user