Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/jetsnack/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ repositories {
}

dependencies {
implementation(compose.components.resources)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need it here?

implementation(project(":common"))
implementation("androidx.activity:activity-compose:1.5.0")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,13 @@ package com.example.android
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.material.MaterialTheme
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import com.example.jetsnack.R
import androidx.compose.material3.MaterialTheme
import com.example.jetsnack.ui.JetsnackApp
import com.example.jetsnack.ui.theme.Karla
import com.example.jetsnack.ui.theme.Montserrat

class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

Montserrat = FontFamily(
Font(R.font.montserrat_light, FontWeight.Light),
Font(R.font.montserrat_regular, FontWeight.Normal),
Font(R.font.montserrat_medium, FontWeight.Medium),
Font(R.font.montserrat_semibold, FontWeight.SemiBold)
)
Karla = FontFamily(
Font(R.font.karla_regular, FontWeight.Normal),
Font(R.font.karla_bold, FontWeight.Bold)
)

setContent {
MaterialTheme {
JetsnackApp()
Expand Down
17 changes: 10 additions & 7 deletions examples/jetsnack/common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@ kotlin {
dependencies {
api(compose.runtime)
api(compose.foundation)
api(compose.material)
api(compose.ui)
api(compose.material3)
implementation(libs.androidx.navigation.compose)
implementation(libs.androidx.lifecycle.viewModelCompose)
implementation(libs.androidx.lifecycle.viewModel)
implementation(compose.materialIconsExtended)
implementation(compose.components.resources)
implementation(libs.kotlinx.coroutines)
}
}
val nonAndroidMain by creating {
dependsOn(commonMain)
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
Expand Down Expand Up @@ -73,22 +75,23 @@ kotlin {
}
}
val desktopMain by getting {
dependsOn(nonAndroidMain)
dependsOn(commonMain)
dependencies {
api(compose.preview)
implementation(libs.kotlinx.coroutines.swing)
}
}
val desktopTest by getting

val wasmJsMain by getting {
dependsOn(commonMain)
dependencies {
implementation(kotlin("stdlib"))
}
dependsOn(nonAndroidMain)
}

val iosMain by getting {
dependsOn(nonAndroidMain)
dependsOn(commonMain)
}
}
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading