Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into feat/#1
  • Loading branch information
ss99x2002 committed Jul 3, 2023
2 parents f7093e8 + 21a6e26 commit 46f0280
Show file tree
Hide file tree
Showing 17 changed files with 65 additions and 65 deletions.
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

android {
namespace 'com.example.umbba_android'
namespace 'com.sopt.umbba_android'
compileSdk 33

defaultConfig {
applicationId "com.example.umbba_android"
applicationId "com.sopt.umbba_android"
minSdk 26
targetSdk 33
versionCode 1
Expand All @@ -30,11 +30,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '17'
}
buildFeatures {
viewBinding true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.umbba_android
package com.sopt.umbba_android

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.umbba_android
package com.sopt.umbba_android

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.sopt.umbba_android.data.datasource

import com.sopt.umbba_android.data.service.ExampleService
import com.sopt.umbba_android.data.model.request.ExampleRequestDto
import com.sopt.umbba_android.data.model.response.ExampleResponseDto
import com.sopt.umbba_android.data.model.response.wrapper.BaseResponse

class ExampleDateSource(
private val exampleService: ExampleService
) {
suspend fun postExample(exampleRequestDto: ExampleRequestDto): BaseResponse<ExampleResponseDto> =
exampleService.postExample(exampleRequestDto)
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.umbba_android.data.model.request
package com.sopt.umbba_android.data.model.request

import kotlinx.serialization.Serializable

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.umbba_android.data.model.response
package com.sopt.umbba_android.data.model.response

import kotlinx.serialization.Serializable

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.umbba_android.data.model.response.wrapper
package com.sopt.umbba_android.data.model.response.wrapper

import kotlinx.serialization.Serializable

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.sopt.umbba_android.data.repository

import com.sopt.umbba_android.data.datasource.ExampleDateSource
import com.sopt.umbba_android.data.model.request.ExampleRequestDto
import com.sopt.umbba_android.data.model.response.ExampleResponseDto
import com.sopt.umbba_android.data.model.response.wrapper.BaseResponse
import com.sopt.umbba_android.domain.repository.ExampleRepository

class ExampleRepositoryImpl(
private val exampleDateSource: ExampleDateSource
) : ExampleRepository {
override suspend fun postExample(exampleRequestDto: ExampleRequestDto): Result<BaseResponse<ExampleResponseDto>> =
kotlin.runCatching { exampleDateSource.postExample(exampleRequestDto) }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.sopt.umbba_android.data.service

import com.sopt.umbba_android.data.model.request.ExampleRequestDto
import com.sopt.umbba_android.data.model.response.ExampleResponseDto
import com.sopt.umbba_android.data.model.response.wrapper.BaseResponse
import retrofit2.http.Body
import retrofit2.http.POST

interface ExampleService {
// 예시 API
@POST("api/example")
suspend fun postExample(
@Body request: ExampleRequestDto
): BaseResponse<ExampleResponseDto>
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.sopt.umbba_android.domain.repository

import com.sopt.umbba_android.data.model.request.ExampleRequestDto
import com.sopt.umbba_android.data.model.response.ExampleResponseDto
import com.sopt.umbba_android.data.model.response.wrapper.BaseResponse

interface ExampleRepository {
suspend fun postExample(exampleRequestDto: ExampleRequestDto): Result<BaseResponse<ExampleResponseDto>>
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.umbba_android.util.binding
package com.sopt.umbba_android.util.binding

import android.os.Bundle
import androidx.annotation.LayoutRes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.umbba_android.util.binding
package com.sopt.umbba_android.util.binding

import android.os.Bundle
import android.view.LayoutInflater
Expand All @@ -8,7 +8,7 @@ import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragment
import com.example.umbba_android.R
import com.sopt.umbba_android.R

abstract class BindingFragment<T : ViewDataBinding>(
@LayoutRes private val layoutRes: Int
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.umbba_android
package com.sopt.umbba_android

import org.junit.Test

Expand Down

0 comments on commit 46f0280

Please sign in to comment.