Skip to content
Draft
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
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ android {
//noinspection ExpiredTargetSdkVersion
targetSdk = 28

versionCode = 7
versionCode = 8
versionName = "1.3.2"

buildConfigField("boolean", "GOLD", "false")
Expand Down
27 changes: 13 additions & 14 deletions app/src/main/java/com/OxGames/Pluvia/PluviaApp.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.OxGames.Pluvia

import android.os.StrictMode
import androidx.navigation.NavController
import com.OxGames.Pluvia.events.EventDispatcher
import com.OxGames.Pluvia.utils.application.CrashHandler
Expand All @@ -18,19 +17,19 @@ class PluviaApp : SplitCompatApplication() {
super.onCreate()

if (BuildConfig.DEBUG) {
StrictMode.setVmPolicy(
StrictMode.VmPolicy.Builder()
.detectLeakedClosableObjects() // Detect when Closeable objects are not properly closed
.penaltyLog() // Log violations to logcat
.build(),
)

StrictMode.setThreadPolicy(
StrictMode.ThreadPolicy.Builder()
.detectAll() // Detect all violations (disk reads/writes, network operations, etc.)
.penaltyLog() // Log violations to logcat
.build(),
)
// StrictMode.setVmPolicy(
// StrictMode.VmPolicy.Builder()
// .detectLeakedClosableObjects() // Detect when Closeable objects are not properly closed
// .penaltyLog() // Log violations to logcat
// .build(),
// )
//
// StrictMode.setThreadPolicy(
// StrictMode.ThreadPolicy.Builder()
// .detectAll() // Detect all violations (disk reads/writes, network operations, etc.)
// .penaltyLog() // Log violations to logcat
// .build(),
// )

Timber.plant(Timber.DebugTree())
} else {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/OxGames/Pluvia/db/dao/SteamAppDao.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface SteamAppDao {
suspend fun insert(apps: SteamApp)

@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insert(apps: List<SteamApp>)
suspend fun insertAll(apps: List<SteamApp>)

@Update
suspend fun update(app: SteamApp)
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/java/com/OxGames/Pluvia/db/dao/SteamFriendDao.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ interface SteamFriendDao {
@Update
suspend fun update(friend: SteamFriend)

@Update
suspend fun updateAll(friend: List<SteamFriend>)

@Transaction
suspend fun updateNicknames(nickname: List<PlayerNickname>) {
nickname.forEach {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.OxGames.Pluvia.data.SteamLicense
interface SteamLicenseDao {

@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insert(license: List<SteamLicense>)
suspend fun insertAll(license: List<SteamLicense>)

@Update
suspend fun update(license: SteamLicense)
Expand Down
Loading