Skip to content

Commit

Permalink
[feature/#1011] data, domain 모듈 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Dec 31, 2024
1 parent b1195dd commit eb41527
Show file tree
Hide file tree
Showing 11 changed files with 100 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/auth/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
15 changes: 15 additions & 0 deletions data/auth/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
plugins {
sopt("feature")
}

android {
namespace = "org.sopt.official.data.auth"
}

dependencies {
implementation(projects.domain.auth)
implementation(projects.core.network)
implementation(projects.core.common)
implementation(platform(libs.okhttp.bom))
implementation(libs.bundles.okhttp)
}
Empty file added data/auth/consumer-rules.pro
Empty file.
21 changes: 21 additions & 0 deletions data/auth/proguard-rules.pro
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package org.sopt.official.data.auth

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

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("org.sopt.official.data.auth.test", appContext.packageName)
}
}
4 changes: 4 additions & 0 deletions data/auth/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package org.sopt.official.data.auth

import org.junit.Test

import org.junit.Assert.*

/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}
1 change: 1 addition & 0 deletions domain/auth/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
11 changes: 11 additions & 0 deletions domain/auth/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
plugins {
sopt("kotlin")
}

kotlin{
jvmToolchain(17)
}

dependencies{
implementation(libs.javax.inject)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package org.sopt.official.domain.auth

class MyClass {
}
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ include(
":feature:poke",
":feature:fortune"
)
include(":data:auth")
include(":domain:auth")

0 comments on commit eb41527

Please sign in to comment.