Skip to content

Commit

Permalink
Fix some build warnings
Browse files Browse the repository at this point in the history
Signed-off-by: starry-shivam <[email protected]>
  • Loading branch information
starry-shivam committed Oct 19, 2023
1 parent 1c05651 commit 98c4cb7
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ android {
applicationId "com.starry.greenstash"
minSdk 24
targetSdk 34
versionCode 28
versionCode 280
versionName "2.8.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down Expand Up @@ -75,7 +75,7 @@ aboutLibraries {

dependencies {

def composeBom = platform('androidx.compose:compose-bom:2023.08.00')
def composeBom = platform('androidx.compose:compose-bom:2023.08.00')
implementation composeBom
androidTestImplementation composeBom

Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/com/starry/greenstash/GreenStashApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ import androidx.compose.ui.ExperimentalComposeUiApi
import cat.ereza.customactivityoncrash.config.CaocConfig
import com.starry.greenstash.reminder.ReminderNotificationSender
import dagger.hilt.android.HiltAndroidApp
import kotlinx.coroutines.ExperimentalCoroutinesApi

@ExperimentalCoroutinesApi
@ExperimentalMaterial3Api
@ExperimentalAnimationApi
@ExperimentalComposeUiApi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@

package com.starry.greenstash.database.core

import androidx.annotation.Keep
import androidx.room.Embedded
import androidx.room.Relation
import com.starry.greenstash.database.goal.Goal
import com.starry.greenstash.database.transaction.Transaction
import com.starry.greenstash.database.transaction.TransactionType

@Keep
data class GoalWithTransactions(
@Embedded val goal: Goal,
@Relation(
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/com/starry/greenstash/database/goal/Goal.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@
package com.starry.greenstash.database.goal

import android.graphics.Bitmap
import androidx.annotation.Keep
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

enum class GoalPriority(val value: Int) { High(3), Normal(2), Low(1) }

@Keep
@Entity(tableName = "saving_goal")
data class Goal(
val title: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

package com.starry.greenstash.database.transaction

import androidx.annotation.Keep
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey
Expand All @@ -37,6 +38,7 @@ enum class TransactionType {
Deposit, Withdraw, Invalid
}

@Keep
@Entity(
tableName = "transaction", foreignKeys = [
ForeignKey(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ import com.starry.greenstash.reminder.receivers.ReminderDismissReceiver
import com.starry.greenstash.utils.GoalTextUtils
import com.starry.greenstash.utils.PreferenceUtils
import com.starry.greenstash.utils.Utils
import kotlinx.coroutines.ExperimentalCoroutinesApi

@ExperimentalCoroutinesApi
@ExperimentalMaterial3Api
@ExperimentalAnimationApi
@ExperimentalComposeUiApi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.OutlinedTextField
import androidx.compose.material3.OutlinedTextFieldDefaults
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.material3.TextFieldDefaults
import androidx.compose.runtime.Composable
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
Expand Down Expand Up @@ -132,9 +132,9 @@ fun ActionDialogs(
contentDescription = null
)
},
colors = TextFieldDefaults.outlinedTextFieldColors(
colors = OutlinedTextFieldDefaults.colors(
focusedBorderColor = MaterialTheme.colorScheme.primary,
unfocusedBorderColor = MaterialTheme.colorScheme.onBackground
unfocusedBorderColor = MaterialTheme.colorScheme.onBackground,
),
shape = RoundedCornerShape(14.dp),
singleLine = true,
Expand Down Expand Up @@ -216,9 +216,9 @@ fun ActionDialogs(
contentDescription = null
)
},
colors = TextFieldDefaults.outlinedTextFieldColors(
colors = OutlinedTextFieldDefaults.colors(
focusedBorderColor = MaterialTheme.colorScheme.primary,
unfocusedBorderColor = MaterialTheme.colorScheme.onBackground
unfocusedBorderColor = MaterialTheme.colorScheme.onBackground,
),
shape = RoundedCornerShape(14.dp),
singleLine = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ import com.starry.greenstash.utils.GoalTextUtils
import com.starry.greenstash.utils.PreferenceUtils
import com.starry.greenstash.utils.Utils
import com.starry.greenstash.utils.getActivity
import kotlinx.coroutines.ExperimentalCoroutinesApi


@ExperimentalCoroutinesApi
@ExperimentalFoundationApi
@ExperimentalComposeUiApi
@ExperimentalAnimationApi
Expand Down Expand Up @@ -348,6 +350,7 @@ fun GoalNotesCard(notesText: String) {
)
}

@ExperimentalCoroutinesApi
@ExperimentalMaterialApi
@ExperimentalFoundationApi
@ExperimentalComposeUiApi
Expand All @@ -368,6 +371,7 @@ fun TransactionCard(transactions: List<Transaction>, currencySymbol: String) {
}
}

@ExperimentalCoroutinesApi
@ExperimentalMaterial3Api
@ExperimentalAnimationApi
@ExperimentalComposeUiApi
Expand Down Expand Up @@ -437,6 +441,7 @@ private fun getRemainingDaysText(context: Context, goalItem: GoalWithTransaction
}
}

@ExperimentalCoroutinesApi
@ExperimentalAnimationApi
@ExperimentalComposeUiApi
@ExperimentalFoundationApi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ import com.starry.greenstash.utils.PreferenceUtils
import com.starry.greenstash.utils.Utils
import com.starry.greenstash.utils.getActivity
import com.starry.greenstash.utils.toToast
import kotlinx.coroutines.ExperimentalCoroutinesApi
import java.util.concurrent.Executor


@ExperimentalCoroutinesApi
@ExperimentalMaterialApi
@ExperimentalFoundationApi
@ExperimentalComposeUiApi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import java.io.File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ import com.starry.greenstash.ui.theme.GreenStashTheme
import com.starry.greenstash.utils.PreferenceUtils
import com.starry.greenstash.widget.GoalWidget
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.delay

@ExperimentalCoroutinesApi
@ExperimentalComposeUiApi
@ExperimentalFoundationApi
@ExperimentalMaterialApi
Expand Down

0 comments on commit 98c4cb7

Please sign in to comment.