Initial commit.

This commit is contained in:
2025-09-03 18:16:07 +02:00
parent 666d6a05f1
commit 2977d3c922
11 changed files with 190 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package app.klottr.shared
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("app.klottr.shared.test", appContext.packageName)
}
}

View File

@@ -0,0 +1,16 @@
package app.klottr.shared
import kotlin.test.Test
import kotlin.test.assertEquals
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

View File

@@ -0,0 +1,3 @@
package app.klottr.shared
actual fun platform() = "Android"

View File

@@ -0,0 +1,2 @@
class SharedPing {
}

View File

@@ -0,0 +1,3 @@
package app.klottr.shared
expect fun platform(): String

View File

@@ -0,0 +1,3 @@
package app.klottr.shared
actual fun platform() = "iOS"