-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #236 from SWM-KAWAI-MANS/develop
Release/v1.3.0
- Loading branch information
Showing
86 changed files
with
1,846 additions
and
327 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
build-logic/convention/src/main/kotlin/AndroidRoomConventionPlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import com.google.devtools.ksp.gradle.KspExtension | ||
import online.partyrun.partyrunapplication.libs | ||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.configure | ||
import org.gradle.kotlin.dsl.dependencies | ||
|
||
class AndroidRoomConventionPlugin : Plugin<Project> { | ||
|
||
override fun apply(target: Project) { | ||
with(target) { | ||
pluginManager.apply("com.google.devtools.ksp") | ||
|
||
extensions.configure<KspExtension> { | ||
} | ||
|
||
dependencies { | ||
add("implementation", libs.findLibrary("room.runtime").get()) | ||
add("implementation", libs.findLibrary("room.ktx").get()) | ||
add("ksp", libs.findLibrary("room.compiler").get()) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
plugins { | ||
id("nohjunh.android.library") | ||
id("nohjunh.android.hilt") | ||
id("nohjunh.android.room") | ||
} | ||
|
||
android { | ||
namespace = "online.partyrun.partyrunapplication.core.database" | ||
} | ||
|
||
dependencies { | ||
implementation(project(":core:model")) | ||
|
||
implementation(libs.kotlinx.coroutines.android) | ||
implementation(libs.kotlinx.datetime) | ||
|
||
androidTestImplementation(project(":core:testing")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
</manifest> |
19 changes: 19 additions & 0 deletions
19
...abase/src/main/java/online/partyrun/partyrunapplication/core/database/PartyRunDatabase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package online.partyrun.partyrunapplication.core.database | ||
|
||
import androidx.room.Database | ||
import androidx.room.RoomDatabase | ||
import online.partyrun.partyrunapplication.core.database.dao.BattleRunningHistoryDao | ||
import online.partyrun.partyrunapplication.core.database.dao.SingleRunningHistoryDao | ||
import online.partyrun.partyrunapplication.core.database.model.BattleRunningHistoryEntity | ||
import online.partyrun.partyrunapplication.core.database.model.SingleRunningHistoryEntity | ||
|
||
@Database( | ||
entities = [SingleRunningHistoryEntity::class, BattleRunningHistoryEntity::class], | ||
version = 1 | ||
) | ||
abstract class PartyRunDatabase : RoomDatabase() { | ||
|
||
abstract fun singleRunningHistoryDao(): SingleRunningHistoryDao | ||
|
||
abstract fun battleRunningHistoryDao(): BattleRunningHistoryDao | ||
} |
22 changes: 22 additions & 0 deletions
22
...ain/java/online/partyrun/partyrunapplication/core/database/dao/BattleRunningHistoryDao.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package online.partyrun.partyrunapplication.core.database.dao | ||
|
||
import androidx.room.Dao | ||
import androidx.room.Insert | ||
import androidx.room.OnConflictStrategy | ||
import androidx.room.Query | ||
import kotlinx.coroutines.flow.Flow | ||
import online.partyrun.partyrunapplication.core.database.model.BattleRunningHistoryEntity | ||
|
||
@Dao | ||
interface BattleRunningHistoryDao { | ||
|
||
@Insert(onConflict = OnConflictStrategy.REPLACE) | ||
suspend fun insertAllBattleRunningHistory(historyEntities: List<BattleRunningHistoryEntity>) | ||
|
||
@Query("SELECT * FROM battle_running_history_resource") | ||
fun getAllBattleRunningHistories(): Flow<List<BattleRunningHistoryEntity>> | ||
|
||
@Query("DELETE FROM battle_running_history_resource") | ||
suspend fun deleteAllBattleRunningHistories() | ||
|
||
} |
Oops, something went wrong.