generated from cgpathos/template-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
96 changed files
with
821 additions
and
204 deletions.
There are no files selected for viewing
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 @@ | ||
# 자동으로 되서 주석처리 | ||
#name: cleanup-merged-branch | ||
# | ||
#on: | ||
# pull_request: | ||
# types: [ closed ] | ||
# branches: | ||
# - 'feat/**' | ||
# | ||
#jobs: | ||
# delete_branch: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v3 | ||
# | ||
# - name: Delete merged branch | ||
# if: github.event.pull_request.merged == true | ||
# id: open-pr | ||
# run: | | ||
# git branch -d ${{ github.event.pull_request.head.ref }} | ||
# git push origin --delete ${{ github.event.pull_request.head.ref }} |
This file was deleted.
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
45 changes: 45 additions & 0 deletions
45
app/src/main/java/today/pathos/android/portfolio/core/di/ViewModule.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,45 @@ | ||
package today.pathos.android.portfolio.core.di | ||
|
||
import android.content.Context | ||
import coil.ImageLoader | ||
import coil.disk.DiskCache | ||
import coil.memory.MemoryCache | ||
import coil.util.DebugLogger | ||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.android.qualifiers.ApplicationContext | ||
import dagger.hilt.components.SingletonComponent | ||
import okhttp3.OkHttpClient | ||
import today.pathos.android.portfolio.BuildConfig | ||
import javax.inject.Singleton | ||
|
||
@InstallIn(SingletonComponent::class) | ||
@Module | ||
object ViewModule { | ||
@Singleton | ||
@Provides | ||
fun providesImageLoader( | ||
client: OkHttpClient, | ||
@ApplicationContext context: Context, | ||
): ImageLoader = ImageLoader.Builder(context) | ||
.callFactory { client } | ||
.crossfade(true) | ||
.memoryCache { | ||
MemoryCache.Builder(context) | ||
.maxSizePercent(0.25) | ||
.build() | ||
} | ||
.diskCache { | ||
DiskCache.Builder() | ||
.directory(context.cacheDir.resolve("image_cache")) | ||
.maxSizePercent(0.02) | ||
.build() | ||
} | ||
.apply { | ||
if (BuildConfig.DEBUG) { | ||
logger(DebugLogger()) | ||
} | ||
} | ||
.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 |
---|---|---|
@@ -1,10 +1,3 @@ | ||
<resources> | ||
<string name="app_name">Android Portfolio 2024</string> | ||
|
||
<string name="level">Lv.%,d</string> | ||
<string name="fame">명성치 : %,d</string> | ||
<string name="lbl_guild_name"><%s></string> | ||
<string name="lbl_server_character_name">[%1$s] %2$s</string> | ||
<string name="lbl_level_job">Lv.%1$d %2$s</string> | ||
<string name="lbl_reinforce">+%,d</string> | ||
</resources> |
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,88 @@ | ||
plugins { | ||
alias(libs.plugins.androidLibrary) | ||
alias(libs.plugins.kotlinAndroid) | ||
alias(libs.plugins.kotlinSerialization) | ||
alias(libs.plugins.hiltAndroid) | ||
alias(libs.plugins.ksp) | ||
alias(libs.plugins.androidxRoom) | ||
alias(libs.plugins.secrets) | ||
} | ||
|
||
android { | ||
namespace = "today.pathos.android.portfolio.data" | ||
compileSdk = 34 | ||
|
||
defaultConfig { | ||
minSdk = 24 | ||
|
||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
consumerProguardFiles("consumer-rules.pro") | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = false | ||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
kotlinOptions { | ||
jvmTarget = "17" | ||
} | ||
buildFeatures { | ||
buildConfig = true | ||
} | ||
room { | ||
schemaDirectory("$projectDir/schemas") | ||
} | ||
packaging { | ||
resources { | ||
excludes += "/META-INF/{LICENSE*.md}" | ||
} | ||
} | ||
} | ||
|
||
secrets { | ||
defaultPropertiesFileName = "local.defaults.properties" | ||
} | ||
|
||
dependencies { | ||
implementation(project(":entity")) | ||
implementation(project(":domain")) | ||
|
||
// hilt | ||
implementation(libs.dagger.hilt.android) | ||
ksp(libs.dagger.hilt.compiler) | ||
androidTestImplementation(libs.dagger.hilt.android.testing) | ||
kspAndroidTest(libs.dagger.hilt.android.compiler) | ||
testImplementation(libs.dagger.hilt.android.testing) | ||
kspTest(libs.dagger.hilt.android.compiler) | ||
|
||
// kotlin | ||
implementation(libs.bundles.kotlin) | ||
testImplementation(libs.bundles.kotlin.test) | ||
|
||
// api | ||
implementation(libs.bundles.retrofit) | ||
testImplementation(libs.mockwebserver) | ||
|
||
// database | ||
implementation(libs.androidx.room.runtime) | ||
implementation(libs.androidx.room.ktx) | ||
ksp(libs.androidx.room.compiler) | ||
testImplementation(libs.androidx.room.testing) | ||
|
||
implementation(libs.androidx.datastore) | ||
|
||
// test | ||
testImplementation(libs.junit) | ||
testImplementation(libs.mockk.android) | ||
testImplementation(libs.mockk.agent) | ||
androidTestImplementation(libs.androidx.junit) | ||
androidTestImplementation(libs.androidx.espresso.core) | ||
androidTestImplementation(libs.mockk.android) | ||
androidTestImplementation(libs.mockk.agent) | ||
} |
Empty file.
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,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
Oops, something went wrong.