-
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.
Merge pull request #86 from Nexters/release/1.0.0
[Release] 1.0.0 배포 - master
- Loading branch information
Showing
273 changed files
with
11,856 additions
and
83 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 |
---|---|---|
@@ -1,7 +1,21 @@ | ||
# https://editorconfig.org/ | ||
# This configuration is used by ktlint when spotless invokes it | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = unset | ||
indent_style = space | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 120 | ||
tab_width = unset | ||
|
||
[*.{yaml,yml}] | ||
tab_width = 2 | ||
indent_size = 2 | ||
|
||
[*.{kt,kts}] | ||
ij_kotlin_allow_trailing_comma=true | ||
ij_kotlin_allow_trailing_comma_on_call_site=true | ||
indent_size = 4 | ||
tab_width = 4 | ||
ktlint_code_style = android_studio | ||
ktlint_function_naming_ignore_when_annotated_with=Composable, Test |
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,14 @@ | ||
--- | ||
name: Issue Template | ||
about: 이슈 템플릿 | ||
title: "[Type] 이슈 내용" | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## ISSUE | ||
- | ||
|
||
## To-Do | ||
- [ ] 작업할 내용 |
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,10 @@ | ||
## 관련 이슈 | ||
- closed #이슈넘버 | ||
|
||
## 작업한 내용 | ||
- | ||
|
||
## PR 포인트 | ||
- | ||
|
||
## 🚀Next Feature |
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,72 @@ | ||
name: Hous PR Builder | ||
|
||
on: | ||
pull_request: | ||
branches: [ develop, master ] | ||
|
||
jobs: | ||
build: | ||
name: PR Checker | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Gradle cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
|
||
# - name: Create Google-Services.json | ||
# env: | ||
# GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }} | ||
# run: | | ||
# touch ./app/google-services.json | ||
# echo $GOOGLE_SERVICES >> ./app/google-services.json | ||
# cat ./app/google-services.json | ||
# | ||
- name: Create Local Properties | ||
run: touch local.properties | ||
|
||
- name: Access Local Properties | ||
env: | ||
FUNCH_DEBUG_BASE_URL: ${{ secrets.FUNCH_DEBUG_BASE_URL }} | ||
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }} | ||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | ||
KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | ||
STORE_FILE: ${{ secrets.STORE_FILE }} | ||
run: | | ||
echo FUNCH_DEBUG_BASE_URL=\"FUNCH_DEBUG_BASE_URL\" >> local.properties | ||
echo STORE_PASSWORD= $STORE_PASSWORD >> local.properties | ||
echo KEY_PASSWORD= $KEY_PASSWORD >> local.properties | ||
echo KEY_ALIAS= $KEY_ALIAS >> local.properties | ||
echo STORE_FILE= $STORE_FILE >> local.properties | ||
- name: Create Key Store | ||
env: | ||
KEY_STORE_BASE_64: ${{secrets.KEY_STORE_BASE_64}} | ||
run: | | ||
echo "$KEY_STORE_BASE_64" | base64 -d > ./funch_key_store.jks | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Lint Check | ||
run: ./gradlew ktlintCheck | ||
|
||
- name: run rest | ||
run: ./gradlew test | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,25 @@ | ||
package com.moya.funch | ||
|
||
import android.app.Application | ||
import dagger.hilt.android.HiltAndroidApp | ||
import timber.log.Timber | ||
|
||
@HiltAndroidApp | ||
class FunchApplication : Application() { | ||
override fun onCreate() { | ||
super.onCreate() | ||
initTimber() | ||
} | ||
|
||
private fun initTimber() { | ||
if (BuildConfig.DEBUG) { | ||
Timber.plant( | ||
object : Timber.DebugTree() { | ||
override fun createStackElementTag(element: StackTraceElement): String { | ||
return "${element.fileName} : ${element.lineNumber} - ${element.methodName}" | ||
} | ||
} | ||
) | ||
} | ||
} | ||
} |
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,46 @@ | ||
package com.moya.funch | ||
|
||
import android.os.Bundle | ||
import androidx.activity.ComponentActivity | ||
import androidx.activity.compose.setContent | ||
import androidx.compose.runtime.LaunchedEffect | ||
import androidx.compose.runtime.getValue | ||
import androidx.compose.runtime.mutableStateOf | ||
import androidx.compose.runtime.remember | ||
import androidx.compose.runtime.setValue | ||
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen | ||
import com.moya.funch.datastore.UserDataStore | ||
import com.moya.funch.splash.LoadingScreen | ||
import com.moya.funch.theme.FunchTheme | ||
import com.moya.funch.ui.FunchApp | ||
import dagger.hilt.android.AndroidEntryPoint | ||
import javax.inject.Inject | ||
import kotlinx.coroutines.delay | ||
|
||
@AndroidEntryPoint | ||
class MainActivity : ComponentActivity() { | ||
|
||
@Inject | ||
lateinit var dataStore: UserDataStore | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
installSplashScreen() | ||
setContent { | ||
FunchTheme { | ||
var showLoading by remember { mutableStateOf(true) } | ||
|
||
LaunchedEffect(Unit) { | ||
delay(1500) | ||
showLoading = false | ||
} | ||
|
||
if (showLoading) { | ||
LoadingScreen() | ||
} else { | ||
FunchApp(dataStore = dataStore) | ||
} | ||
} | ||
} | ||
} | ||
} |
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,38 @@ | ||
package com.moya.funch.di | ||
|
||
import com.moya.funch.repository.MatchingRepository | ||
import com.moya.funch.repository.MatchingRepositoryImpl | ||
import com.moya.funch.usecase.CanMatchProfileUseCase | ||
import com.moya.funch.usecase.CanMatchProfileUseCaseImpl | ||
import com.moya.funch.usecase.MatchProfileUseCase | ||
import com.moya.funch.usecase.MatchProfileUseCaseImpl | ||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
object MatchModule { | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
interface UseCaseBinder { | ||
@Binds | ||
@Singleton | ||
fun bindCanMatchUseCase(useCase: CanMatchProfileUseCaseImpl): CanMatchProfileUseCase | ||
|
||
@Binds | ||
@Singleton | ||
fun bindMatchProfileUseCase(useCase: MatchProfileUseCaseImpl): MatchProfileUseCase | ||
} | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
interface RepositoryBinder { | ||
@Binds | ||
@Singleton | ||
fun bindMatchingRepository(repository: MatchingRepositoryImpl): MatchingRepository | ||
} | ||
} |
Oops, something went wrong.