Fix build warnings

This commit is contained in:
Rafael Caetano 2023-07-29 12:06:38 +01:00
parent 84046add6c
commit ff5ab0bfa0
6 changed files with 7 additions and 11 deletions

View File

@ -20,6 +20,7 @@ android {
}
}
namespace = "me.magnum.melonds"
compileSdk = AppConfig.compileSdkVersion
ndkVersion = AppConfig.ndkVersion
defaultConfig {

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.magnum.melonds">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="me.magnum.melonds">
xmlns:tools="http://schemas.android.com/tools">
<uses-feature android:name="android.hardware.camera.any" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>

View File

@ -7,7 +7,6 @@ import androidx.room.Update
import io.reactivex.Single
import me.magnum.melonds.database.entities.CheatEntity
import me.magnum.melonds.database.entities.CheatStatusUpdate
import me.magnum.melonds.domain.model.Cheat
@Dao
interface CheatDao {
@ -17,8 +16,8 @@ interface CheatDao {
@Insert
fun insertCheats(cheatEntities: List<CheatEntity>): List<Long>
@Query("SELECT * FROM game LEFT JOIN cheat_folder ON game.id = cheat_folder.game_id LEFT JOIN cheat ON cheat_folder.id = cheat.cheat_folder_id WHERE game.game_code = :gameCode AND (game.game_checksum IS NULL OR game.game_checksum = :gameChecksum) AND cheat.enabled = 1")
fun getEnabledRomCheats(gameCode: String, gameChecksum: String): Single<List<Cheat>>
@Query("SELECT cheat.* FROM game LEFT JOIN cheat_folder ON game.id = cheat_folder.game_id LEFT JOIN cheat ON cheat_folder.id = cheat.cheat_folder_id WHERE game.game_code = :gameCode AND (game.game_checksum IS NULL OR game.game_checksum = :gameChecksum) AND cheat.enabled = 1")
fun getEnabledRomCheats(gameCode: String, gameChecksum: String): Single<List<CheatEntity>>
@Update(entity = CheatEntity::class)
fun updateCheatsStatus(cheats: List<CheatStatusUpdate>)

View File

@ -2,6 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
namespace "com.smp.masterswitchpreference"
compileSdk 33
defaultConfig {

View File

@ -1,5 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.smp.masterswitchpreference">
/
<manifest>
</manifest>