Initial commit
This commit is contained in:
@@ -30,6 +30,7 @@ kotlin {
|
||||
implementation(libs.androidx.activity.compose)
|
||||
}
|
||||
commonMain.dependencies {
|
||||
implementation(projects.features.common)
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.foundation)
|
||||
implementation(compose.material3)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package dev.carlosmartino.triplogic
|
||||
package dev.carlosmartino.template
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.activity.ComponentActivity
|
||||
@@ -1,4 +1,4 @@
|
||||
package dev.carlosmartino.triplogic
|
||||
package dev.carlosmartino.template
|
||||
|
||||
import android.os.Build
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package dev.carlosmartino.triplogic
|
||||
package dev.carlosmartino.template
|
||||
|
||||
import androidx.compose.animation.AnimatedVisibility
|
||||
import androidx.compose.foundation.Image
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.fillMaxSize
|
||||
@@ -17,7 +16,7 @@ import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import org.jetbrains.compose.resources.painterResource
|
||||
import dev.carlosmartino.features.common.CommonGreetings
|
||||
import org.jetbrains.compose.ui.tooling.preview.Preview
|
||||
|
||||
@Composable
|
||||
@@ -36,7 +35,7 @@ fun App() {
|
||||
Text("Click me!")
|
||||
}
|
||||
AnimatedVisibility(showContent) {
|
||||
val greeting = remember { Greeting().greet() }
|
||||
val greeting = remember { CommonGreetings().greet() }
|
||||
Column(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
horizontalAlignment = Alignment.CenterHorizontally,
|
||||
@@ -1,4 +1,4 @@
|
||||
package dev.carlosmartino.triplogic
|
||||
package dev.carlosmartino.template
|
||||
|
||||
class Greeting {
|
||||
private val platform = getPlatform()
|
||||
@@ -1,4 +1,4 @@
|
||||
package dev.carlosmartino.triplogic
|
||||
package dev.carlosmartino.template
|
||||
|
||||
interface Platform {
|
||||
val name: String
|
||||
@@ -1,11 +0,0 @@
|
||||
package dev.carlosmartino.triplogic
|
||||
|
||||
import kotlin.test.Test
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
class ComposeAppCommonTest {
|
||||
@Test
|
||||
fun example() {
|
||||
assertEquals(3, 1 + 2)
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package dev.carlosmartino.triplogic
|
||||
package dev.carlosmartino.template
|
||||
|
||||
import androidx.compose.ui.window.ComposeUIViewController
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package dev.carlosmartino.triplogic
|
||||
package dev.carlosmartino.template
|
||||
|
||||
import platform.UIKit.UIDevice
|
||||
|
||||
Reference in New Issue
Block a user