Skip to content

Commit

Permalink
Merge 9163fda into 5bbf859
Browse files Browse the repository at this point in the history
  • Loading branch information
100Seung-Min authored Oct 20, 2023
2 parents 5bbf859 + 9163fda commit 936c9c8
Show file tree
Hide file tree
Showing 312 changed files with 2,937 additions and 1,543 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
with:
fetch-depth: 0

- name: Setup JDK 11
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 11
java-version: 17

- name: Setup Android SDK
uses: android-actions/setup-android@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
with:
fetch-depth: 0

- name: Setup JDK 11
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 11
java-version: 17

- name: Setup Android SDK
uses: android-actions/setup-android@v2
Expand Down
2 changes: 1 addition & 1 deletion .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions app/mobile/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
# hide the original source file name.
#-renamesourcefileattribute SourceFile

-keep class com.danbam.data.** {*;}
-keep interface com.danbam.data.** {*;}

-keep class com.danbam.domain.** {*;}
-keep interface com.danbam.domain.** {*;}
-keep class com.danbam.indistraw.core.remote.request.** {*;}
-keep class com.danbam.indistraw.core.remote.response.** {*;}
-dontwarn org.conscrypt.**
-dontwarn org.bouncycastle.**
-dontwarn org.openjsse.**
2 changes: 1 addition & 1 deletion app/mobile/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.danbam.mobile">
package="com.danbam.indistraw.app.mobile">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
Expand Down
8 changes: 7 additions & 1 deletion app/tv/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile

-keep class com.danbam.indistraw.core.remote.request.** {*;}
-keep class com.danbam.indistraw.core.remote.response.** {*;}
-dontwarn org.conscrypt.**
-dontwarn org.bouncycastle.**
-dontwarn org.openjsse.**
3 changes: 2 additions & 1 deletion app/tv/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.danbam.indistraw.app.tv">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
Binary file added app/tv/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/tv/src/main/res/drawable/ic_app.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/tv/src/main/res/drawable/ic_app.png
Binary file not shown.
5 changes: 5 additions & 0 deletions app/tv/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
5 changes: 5 additions & 0 deletions app/tv/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
Binary file modified app/tv/src/main/res/mipmap-hdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified app/tv/src/main/res/mipmap-mdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified app/tv/src/main/res/mipmap-xhdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified app/tv/src/main/res/mipmap-xxhdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified app/tv/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions app/tv/src/main/res/values/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#020202</color>
</resources>
7 changes: 1 addition & 6 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@ plugins {
`kotlin-dsl-precompiled-script-plugins`
}

val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
languageVersion = libs.versions.gradleKotlin.get()
}

dependencies {
implementation(libs.plugin.android)
implementation(libs.plugin.hilt)
implementation(libs.plugin.kotlin)
implementation(libs.plugin.ksp)
}
19 changes: 8 additions & 11 deletions buildSrc/src/main/kotlin/indistraw-app.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ val libs = versionCatalog.named("libs")
plugins {
id("com.android.application")
id("kotlin-android")
id("kotlin-kapt")
id("dagger.hilt.android.plugin")
id("com.google.devtools.ksp")
}

android {
Expand All @@ -19,13 +19,14 @@ android {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
}
buildFeatures {
buildConfig = true
compose = true
}
composeOptions {
Expand Down Expand Up @@ -59,18 +60,14 @@ android {
}

dependencies {
implementation(project(":core:di"))
implementation(project(":core:domain"))
implementation(project(":core:data"))
implementation(project(":core:remote"))
implementation(project(":core:design-system"))
implementation(libs.findLibrary("androidx.core").get())
implementation(libs.findLibrary("androidx.lifecycle").get())
implementation(libs.findBundle("coroutine").get())
implementation(libs.findBundle("compose").get())
implementation(libs.findLibrary("accompanist.nav").get())
implementation(libs.findLibrary("hilt").get())
kapt(libs.findLibrary("hilt.compiler").get())
implementation(libs.findBundle("orbit").get())
implementation(libs.findLibrary("coil").get())
ksp(libs.findLibrary("hilt.compiler").get())
debugImplementation(libs.findBundle("compose.debug").get())
androidTestImplementation(libs.findLibrary("compose.test").get())
}
21 changes: 17 additions & 4 deletions buildSrc/src/main/kotlin/indistraw-core.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ val libs = versionCatalog.named("libs")
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("kotlin-kapt")
id("dagger.hilt.android.plugin")
id("com.google.devtools.ksp")
}

android {
Expand All @@ -14,11 +15,23 @@ android {
minSdk = libs.findVersion("minSdk").get().requiredVersion.toInt()
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
buildConfig = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
}
}

dependencies {
implementation(libs.findLibrary("inject").get())
implementation(libs.findLibrary("hilt").get())
ksp(libs.findLibrary("hilt.compiler").get())
testImplementation(libs.findLibrary("test.junit").get())
testImplementation(libs.findLibrary("test.mockito.kotlin").get())
testImplementation(libs.findLibrary("test.mockito.inline").get())
}
12 changes: 7 additions & 5 deletions buildSrc/src/main/kotlin/indistraw-feature.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ val libs = versionCatalog.named("libs")

plugins {
id("com.android.library")
id("kotlin-kapt")
id("kotlin-android")
id("dagger.hilt.android.plugin")
id("com.google.devtools.ksp")
}

android {
Expand All @@ -16,13 +16,14 @@ android {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
}
buildFeatures {
buildConfig = true
compose = true
}
composeOptions {
Expand All @@ -36,13 +37,14 @@ android {
dependencies {
implementation(project(":core:domain"))
implementation(project(":core:design-system"))
implementation(project(":core:ui"))
implementation(libs.findLibrary("androidx.core").get())
implementation(libs.findLibrary("androidx.lifecycle").get())
implementation(libs.findBundle("coroutine").get())
implementation(libs.findBundle("compose").get())
implementation(libs.findLibrary("accompanist.nav").get())
implementation(libs.findLibrary("hilt").get())
kapt(libs.findLibrary("hilt.compiler").get())
ksp(libs.findLibrary("hilt.compiler").get())
implementation(libs.findBundle("orbit").get())
implementation(libs.findLibrary("coil").get())
debugImplementation(libs.findBundle("compose.debug").get())
Expand Down
16 changes: 3 additions & 13 deletions core/data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,14 @@ android {
"PATCH_IGNORE_PATH",
gradleLocalProperties(rootDir).getProperty("PATCH_IGNORE_PATH")
)
buildConfigField(
"String",
"JUSO_KEY",
gradleLocalProperties(rootDir).getProperty("JUSO_KEY")
)
}
}

dependencies {
implementation(project(":core:remote"))
implementation(project(":core:local"))
implementation(project(":core:domain"))
implementation(libs.inject)
implementation(libs.room)
kapt(libs.room.compiler)
implementation(libs.paging)
implementation(libs.bundles.retrofit)
implementation(libs.bundles.okhttp)
testImplementation(libs.okhttp.sse)
implementation(libs.paging)
testImplementation(libs.test.junit)
testImplementation(libs.test.mockito.kotlin)
testImplementation(libs.test.mockito.inline)
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
package com.danbam.indistraw.core.di
package com.danbam.indistraw.core.data.di

import android.content.Context
import com.danbam.indistraw.core.data.remote.api.AccountAPI
import com.danbam.indistraw.core.data.remote.api.AddressAPI
import com.danbam.indistraw.core.data.remote.api.AuthAPI
import com.danbam.indistraw.core.data.remote.api.BannerAPI
import com.danbam.indistraw.core.data.remote.api.CrowdFundingAPI
import com.danbam.indistraw.core.data.remote.api.FileAPI
import com.danbam.indistraw.core.data.remote.api.FundingAPI
import com.danbam.indistraw.core.data.remote.api.MovieAPI
import com.danbam.indistraw.core.data.remote.api.QRCodeAPI
import com.danbam.indistraw.core.data.remote.api.SearchAPI
import com.danbam.indistraw.core.data.remote.interceptor.IndiStrawInterceptor
import com.danbam.indistraw.core.data.BuildConfig
import com.danbam.indistraw.core.remote.api.AccountAPI
import com.danbam.indistraw.core.remote.api.AddressAPI
import com.danbam.indistraw.core.remote.api.AuthAPI
import com.danbam.indistraw.core.remote.api.BannerAPI
import com.danbam.indistraw.core.remote.api.CrowdFundingAPI
import com.danbam.indistraw.core.remote.api.FileAPI
import com.danbam.indistraw.core.remote.api.FundingAPI
import com.danbam.indistraw.core.remote.api.MovieAPI
import com.danbam.indistraw.core.remote.api.QRCodeAPI
import com.danbam.indistraw.core.remote.api.SearchAPI
import com.danbam.indistraw.core.data.interceptor.IndiStrawInterceptor
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.danbam.indistraw.core.di
package com.danbam.indistraw.core.data.di

import com.danbam.indistraw.core.data.repository.AccountRepositoryImpl
import com.danbam.indistraw.core.data.repository.AddressRepositoryImpl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.danbam.indistraw.core.data.remote.interceptor
package com.danbam.indistraw.core.data.interceptor

import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkInfo
import com.danbam.indistraw.core.data.BuildConfig
import com.danbam.indistraw.core.data.local.datasource.AuthLocalDataSource
import com.danbam.indistraw.core.data.remote.response.auth.LoginResponse
import com.danbam.indistraw.core.data.util.default
import com.danbam.indistraw.core.local.datasource.AuthLocalDataSource
import com.danbam.indistraw.core.domain.exception.ExpiredTokenException
import com.danbam.indistraw.core.remote.response.auth.LoginResponse
import com.danbam.indistraw.core.remote.util.default
import com.google.gson.Gson
import okhttp3.Interceptor
import okhttp3.MediaType.Companion.toMediaTypeOrNull
Expand Down

This file was deleted.

Loading

0 comments on commit 936c9c8

Please sign in to comment.