Skip to content

Commit 6eb17f7

Browse files
committed
Merge remote-tracking branch 'origin/dev'
2 parents d0dd34c + 46b84ab commit 6eb17f7

File tree

102 files changed

+2793
-690
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+2793
-690
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/build
22
.kotlin/
3+
/.idea
34

45
# Created by https://www.gitignore.io/api/kotlin,androidstudio
56
# Edit at https://www.gitignore.io/?templates=kotlin,androidstudio

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ dependencies {
6161
implementation(project(":core:data:onboarding"))
6262
implementation(project(":core:data:setting"))
6363
implementation(project(":core:data:user"))
64+
implementation(project(":core:data:history"))
6465
implementation(project(":core:push"))
6566
implementation(project(":core:notification"))
6667
}

build-logic/src/main/kotlin/com/goalpanzi/mission_mate/convention/KotlinAndroid.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal fun Project.configureKotlinAndroid() {
1111
pluginManager.apply("org.jetbrains.kotlin.android")
1212

1313
androidExtension.apply {
14-
compileSdk = 34
14+
compileSdk = 36
1515

1616
defaultConfig {
1717
minSdk = 26

build-logic/src/main/kotlin/missionmate.android.feature.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ dependencies {
2929
implementation(project(":core:domain:common"))
3030
implementation(project(":core:domain:auth"))
3131
implementation(project(":core:domain:onboarding"))
32+
implementation(project(":core:domain:history"))
3233
implementation(project(":core:ui"))
3334

3435
}

core/data/auth/src/main/java/com/goalpanzi/mission_mate/core/data/auth/AuthTokenExpirationHandler.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import com.goalpanzi.mission_mate.core.datastore.datasource.AuthDataSource
44
import com.goalpanzi.mission_mate.core.datastore.datasource.DefaultDataSource
55
import com.goalpanzi.mission_mate.core.datastore.datasource.MissionDataSource
66
import com.goalpanzi.mission_mate.core.navigation.NavigationEventHandler
7+
import com.goalpanzi.mission_mate.core.navigation.model.RouteModel
78
import com.goalpanzi.mission_mate.core.navigation.di.AuthNavigation
89
import com.goalpanzi.mission_mate.core.network.TokenExpirationHandler
910
import kotlinx.coroutines.flow.collect
@@ -18,7 +19,7 @@ class AuthTokenExpirationHandler @Inject constructor(
1819

1920
override suspend fun handleRefreshTokenExpiration() {
2021
clearCachedData()
21-
authNavigationEventHandler.triggerRouteToNavigate("RouteModel.Login")
22+
authNavigationEventHandler.triggerRouteToNavigate(RouteModel.Login)
2223
}
2324

2425
private suspend fun clearCachedData(){

core/data/history/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

core/data/history/build.gradle.kts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
3+
plugins {
4+
alias(libs.plugins.android.library)
5+
alias(libs.plugins.jetbrains.kotlin.android)
6+
alias(libs.plugins.hilt.android)
7+
alias(libs.plugins.kotlin.ksp)
8+
}
9+
10+
android {
11+
namespace = "com.goalpanzi.mission_mate.core.data.history"
12+
compileSdk = 34
13+
14+
defaultConfig {
15+
minSdk = 26
16+
17+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
18+
}
19+
20+
buildTypes {
21+
release {
22+
proguardFiles(
23+
getDefaultProguardFile("proguard-android-optimize.txt"),
24+
"proguard-rules.pro"
25+
)
26+
}
27+
}
28+
compileOptions {
29+
sourceCompatibility = JavaVersion.VERSION_17
30+
targetCompatibility = JavaVersion.VERSION_17
31+
}
32+
kotlin {
33+
compilerOptions {
34+
jvmTarget.set(JvmTarget.JVM_17)
35+
}
36+
}
37+
}
38+
39+
dependencies {
40+
41+
implementation(libs.bundles.test)
42+
implementation(libs.bundles.coroutines)
43+
implementation(libs.retrofit)
44+
45+
ksp(libs.hilt.compiler)
46+
implementation(libs.hilt.android)
47+
48+
implementation(project(":core:data:common"))
49+
implementation(project(":core:data:mission"))
50+
implementation(project(":core:domain:common"))
51+
implementation(project(":core:domain:history"))
52+
implementation(project(":core:domain:mission"))
53+
implementation(project(":core:network"))
54+
implementation(project(":core:datastore"))
55+
}

core/data/history/consumer-rules.pro

Whitespace-only changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3+
4+
</manifest>

0 commit comments

Comments
 (0)