Skip to content

Commit

Permalink
Merge pull request #9
Browse files Browse the repository at this point in the history
* Upgrade to compose-plugin 1.6.0-rc03 (#7)

* Bumping kotlin to 1.9.22

* Bumping compose versions
  • Loading branch information
mirzemehdi committed Feb 27, 2024
1 parent 2f970ac commit 5d489ed
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 63 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ kotlin.mpp.enableCInteropCommonization=true
#Development
development=true

kmpAuthVersion=1.1.0
kmpAuthVersion=1.2.0
8 changes: 4 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
compose = "1.5.4"
compose-plugin = "1.6.0-alpha01"
compose-compiler = "1.5.4"
compose = "1.6.1"
compose-plugin = "1.6.0-rc03"
compose-compiler = "1.5.8"
agp = "8.1.3"
android-minSdk = "24"
android-compileSdk = "34"
Expand All @@ -14,7 +14,7 @@ androidx-constraintlayout = "2.1.4"
androidx-test-junit = "1.1.5"
androidx-espresso-core = "3.5.1"
androidx-startup-runtime = "1.1.1"
kotlin = "1.9.21"
kotlin = "1.9.22"
junit = "4.13.2"
koin = "3.5.0"
kotlinx-binary-validator = "0.13.2"
Expand Down
2 changes: 1 addition & 1 deletion kmpauth-google/kmpauth_google.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'kmpauth_google'
spec.version = '1.1.0'
spec.version = '1.2.0'
spec.homepage = ''
spec.source = { :http=> ''}
spec.authors = ''
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.mmk.kmpauth.uihelper.google.GoogleButtonMode
import com.mmk.kmpauth.uihelper.theme.Fonts
import io.github.mirzemehdi.`kmpauth-uihelper`.generated.resources.Res
import io.github.mirzemehdi.`kmpauth-uihelper`.generated.resources.ic_apple_logo_black
import io.github.mirzemehdi.`kmpauth-uihelper`.generated.resources.ic_apple_logo_white
import org.jetbrains.compose.resources.ExperimentalResourceApi
import org.jetbrains.compose.resources.painterResource
import kotlin.math.roundToInt
Expand Down Expand Up @@ -142,9 +145,9 @@ public fun AppleSignInButton(
@Composable
private fun AppleIcon(modifier: Modifier = Modifier, mode: AppleButtonMode) {
val source = when (mode) {
AppleButtonMode.Black -> "drawable/ic_apple_logo_white.xml"
AppleButtonMode.White -> "drawable/ic_apple_logo_black.xml"
AppleButtonMode.WhiteWithOutline -> "drawable/ic_apple_logo_black.xml"
AppleButtonMode.Black -> Res.drawable.ic_apple_logo_white
AppleButtonMode.White -> Res.drawable.ic_apple_logo_black
AppleButtonMode.WhiteWithOutline -> Res.drawable.ic_apple_logo_black
}
Image(
modifier = modifier,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ import androidx.compose.ui.unit.sp
import com.mmk.kmpauth.core.KMPAuthInternalApi
import com.mmk.kmpauth.core.di.isAndroidPlatform
import com.mmk.kmpauth.uihelper.theme.Fonts
import io.github.mirzemehdi.`kmpauth-uihelper`.generated.resources.Res
import io.github.mirzemehdi.`kmpauth-uihelper`.generated.resources.ic_google
import org.jetbrains.compose.resources.DrawableResource
import org.jetbrains.compose.resources.ExperimentalResourceApi
import org.jetbrains.compose.resources.painterResource

Expand Down Expand Up @@ -111,7 +114,7 @@ public fun GoogleSignInButton(
private fun GoogleIcon() {
Image(
modifier = Modifier.size(20.dp),
painter = painterResource("drawable/ic_google.xml"),
painter = painterResource(Res.drawable.ic_google),
contentDescription = "googleIcon"
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight
import com.mmk.kmpauth.uihelper.font
import io.github.mirzemehdi.`kmpauth-uihelper`.generated.resources.Res
import io.github.mirzemehdi.`kmpauth-uihelper`.generated.resources.roboto_medium
import org.jetbrains.compose.resources.ExperimentalResourceApi
import org.jetbrains.compose.resources.Font

internal object Fonts {
@OptIn(ExperimentalResourceApi::class)
val robotoFontFamily
@Composable get() = FontFamily(
font(
"roboto_medium",
FontWeight.Medium,
FontStyle.Normal
)
Font(Res.font.roboto_medium, FontWeight.Medium, FontStyle.Normal),
)
}

This file was deleted.

0 comments on commit 5d489ed

Please sign in to comment.