Skip to content

Commit

Permalink
[#132] Move new setup of compose resources (#133)
Browse files Browse the repository at this point in the history
* [#132] Move new setup of compose resources

* [#132] Move new setup of compose resources
  • Loading branch information
mustafaozhan authored May 18, 2024
1 parent 8a4d44a commit 9a76974
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions client/client.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,5 @@ android {
sourceCompatibility = JAVA_VERSION
targetCompatibility = JAVA_VERSION
}

sourceSets["main"].resources.srcDirs("src/commonMain/resources")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ 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.DrawableResource
import org.jetbrains.compose.resources.ExperimentalResourceApi
import org.jetbrains.compose.resources.painterResource
import tracefit.client.generated.resources.Res
import tracefit.client.generated.resources.compose_multiplatform

@OptIn(ExperimentalResourceApi::class)
@Composable
Expand All @@ -33,7 +34,7 @@ fun MainView() {
}
AnimatedVisibility(showImage) {
Image(
painterResource(DrawableResource("compose-multiplatform")),
painterResource(Res.drawable.compose_multiplatform),
null
)
}
Expand Down

0 comments on commit 9a76974

Please sign in to comment.