Skip to content

Commit

Permalink
⬆️ Upgraded all the dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vegidio committed Jan 7, 2024
1 parent c700b00 commit 2596976
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[versions]
android = "7.4.1"
apollo = "3.7.4"
compose-material3 = "1.1.1"
compose-ui = "1.5.0-rc01"
android = "8.2.1"
apollo = "3.8.2"
compose-material3 = "1.1.2"
compose-ui = "1.5.4"
constraintlayout = "1.0.1"
core-ktx = "1.10.1"
coroutines = "1.7.1"
detekt = "1.23.0-RC1"
core-ktx = "1.12.0"
coroutines = "1.7.3"
detekt = "1.23.4"
junit = "4.13.2"
kotlin = "1.9.0"
ktlint = "11.3.1"
lottie = "6.0.0"
material-icons = "1.3.1"
kotlin = "1.9.21"
ktlint = "12.0.3"
lottie = "6.3.0"
material-icons = "1.5.4"
moshi = "1.14.0"
okhttp = "4.10.0"
okhttp = "4.12.0"
retrofit = "2.9.0"
test-espresso = "3.5.1"
test-ext = "1.1.5"
Expand Down
2 changes: 1 addition & 1 deletion network/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {

android {
namespace = "io.vinicius.sak.network"
compileSdk = 33
compileSdk = 34

defaultConfig {
minSdk = 30
Expand Down
2 changes: 1 addition & 1 deletion network/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ import com.apollographql.apollo3.api.toJson
import com.squareup.moshi.Moshi
import com.squareup.moshi.Types
import io.vinicius.sak.network.internal.GraphqlHeaderInterceptor
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flatMapConcat
import kotlinx.coroutines.flow.flowOf
import org.json.JSONObject
import kotlin.reflect.KClass

@OptIn(ExperimentalCoroutinesApi::class)
open class GraphqlFactory(url: String, vararg val types: KClass<*>) {
@PublishedApi internal val moshi = Moshi.Builder().build()
@PublishedApi internal val headerInterceptor = GraphqlHeaderInterceptor()
Expand All @@ -26,7 +27,6 @@ open class GraphqlFactory(url: String, vararg val types: KClass<*>) {
get() = headerInterceptor.headers
set(value) = headerInterceptor.headers.putAll(value)

@OptIn(FlowPreview::class)
inline fun <reified T> sendQuery(
query: Query<*>,
headers: Map<String, String> = emptyMap()
Expand All @@ -42,7 +42,6 @@ open class GraphqlFactory(url: String, vararg val types: KClass<*>) {
}
}

@OptIn(FlowPreview::class)
inline fun <reified T> sendMutation(
mutation: Mutation<*>,
headers: Map<String, String> = emptyMap()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package io.vinicius.sak.network

sealed class NetworkState {
object Idle : NetworkState()
object Loading : NetworkState()
data object Idle : NetworkState()
data object Loading : NetworkState()

data class Error(val throwable: Throwable = Error("Unknown error")) : NetworkState() {
override fun equals(other: Any?): Boolean {
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("UnstableApiUsage")

pluginManagement {
repositories {
google()
Expand Down
2 changes: 1 addition & 1 deletion util/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {

android {
namespace = "io.vinicius.sak.util"
compileSdk = 33
compileSdk = 34

defaultConfig {
minSdk = 30
Expand Down
2 changes: 1 addition & 1 deletion util/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
</manifest>
4 changes: 2 additions & 2 deletions view/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {

android {
namespace = "io.vinicius.sak.view"
compileSdk = 33
compileSdk = 34

defaultConfig {
minSdk = 30
Expand Down Expand Up @@ -43,7 +43,7 @@ android {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.4.0"
kotlinCompilerExtensionVersion = "1.5.7"
}
}

Expand Down
2 changes: 1 addition & 1 deletion view/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
</manifest>
6 changes: 3 additions & 3 deletions view/src/main/kotlin/io/vinicius/sak/view/EmailField.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.LocalTextStyle
import androidx.compose.material3.OutlinedTextField
import androidx.compose.material3.OutlinedTextFieldDefaults
import androidx.compose.material3.Text
import androidx.compose.material3.TextFieldColors
import androidx.compose.material3.TextFieldDefaults
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
Expand Down Expand Up @@ -45,8 +45,8 @@ fun EmailField(
maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE,
minLines: Int = 1,
interactionSource: MutableInteractionSource = remember { MutableInteractionSource() },
shape: Shape = TextFieldDefaults.outlinedShape,
colors: TextFieldColors = TextFieldDefaults.outlinedTextFieldColors()
shape: Shape = OutlinedTextFieldDefaults.shape,
colors: TextFieldColors = OutlinedTextFieldDefaults.colors()
) {
var value by remember { mutableStateOf(initialValue) }

Expand Down
6 changes: 3 additions & 3 deletions view/src/main/kotlin/io/vinicius/sak/view/InputField.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.LocalTextStyle
import androidx.compose.material3.OutlinedTextField
import androidx.compose.material3.OutlinedTextFieldDefaults
import androidx.compose.material3.Text
import androidx.compose.material3.TextFieldColors
import androidx.compose.material3.TextFieldDefaults
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
Expand Down Expand Up @@ -44,8 +44,8 @@ fun InputField(
maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE,
minLines: Int = 1,
interactionSource: MutableInteractionSource = remember { MutableInteractionSource() },
shape: Shape = TextFieldDefaults.outlinedShape,
colors: TextFieldColors = TextFieldDefaults.outlinedTextFieldColors()
shape: Shape = OutlinedTextFieldDefaults.shape,
colors: TextFieldColors = OutlinedTextFieldDefaults.colors()
) {
var value by remember { mutableStateOf(initialValue) }

Expand Down
6 changes: 3 additions & 3 deletions view/src/main/kotlin/io/vinicius/sak/view/PasswordField.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.LocalTextStyle
import androidx.compose.material3.OutlinedTextField
import androidx.compose.material3.OutlinedTextFieldDefaults
import androidx.compose.material3.Text
import androidx.compose.material3.TextFieldColors
import androidx.compose.material3.TextFieldDefaults
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
Expand Down Expand Up @@ -46,8 +46,8 @@ fun PasswordField(
maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE,
minLines: Int = 1,
interactionSource: MutableInteractionSource = remember { MutableInteractionSource() },
shape: Shape = TextFieldDefaults.outlinedShape,
colors: TextFieldColors = TextFieldDefaults.outlinedTextFieldColors()
shape: Shape = OutlinedTextFieldDefaults.shape,
colors: TextFieldColors = OutlinedTextFieldDefaults.colors()
) {
var value by remember { mutableStateOf(initialValue) }

Expand Down

0 comments on commit 2596976

Please sign in to comment.