generated from GSM-MSG/MSG-Repository-Generator
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #170 from GSM-MSG/feature/#169_publishing_find_pas…
…sword_screen 🔀 :: (#169) Publishing Find Password Screen
- Loading branch information
Showing
22 changed files
with
442 additions
and
69 deletions.
There are no files selected for viewing
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
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
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,9 @@ | ||
@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed | ||
plugins { | ||
id("bitgoeul.android.feature") | ||
id("bitgoeul.android.hilt") | ||
} | ||
|
||
android { | ||
namespace = "com.msg.email" | ||
} |
24 changes: 24 additions & 0 deletions
24
feature/email/src/androidTest/java/com/bitgoeul/email/ExampleInstrumentedTest.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,24 @@ | ||
package com.bitgoeul.email | ||
|
||
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("com.bitgoeul.email.test", appContext.packageName) | ||
} | ||
} |
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
</manifest> |
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,37 @@ | ||
# For more information about using CMake with Android Studio, read the | ||
# documentation: https://d.android.com/studio/projects/add-native-code.html. | ||
# For more examples on how to use CMake, see https://github.com/android/ndk-samples. | ||
|
||
# Sets the minimum CMake version required for this project. | ||
cmake_minimum_required(VERSION 3.22.1) | ||
|
||
# Declares the project name. The project name can be accessed via ${ PROJECT_NAME}, | ||
# Since this is the top level CMakeLists.txt, the project name is also accessible | ||
# with ${CMAKE_PROJECT_NAME} (both CMake variables are in-sync within the top level | ||
# build script scope). | ||
project("email") | ||
|
||
# Creates and names a library, sets it as either STATIC | ||
# or SHARED, and provides the relative paths to its source code. | ||
# You can define multiple libraries, and CMake builds them for you. | ||
# Gradle automatically packages shared libraries with your APK. | ||
# | ||
# In this top level CMakeLists.txt, ${CMAKE_PROJECT_NAME} is used to define | ||
# the target library name; in the sub-module's CMakeLists.txt, ${PROJECT_NAME} | ||
# is preferred for the same purpose. | ||
# | ||
# In order to load a library into your app from Java/Kotlin, you must call | ||
# System.loadLibrary() and pass the name of the library defined here; | ||
# for GameActivity/NativeActivity derived applications, the same library name must be | ||
# used in the AndroidManifest.xml file. | ||
add_library(${CMAKE_PROJECT_NAME} SHARED | ||
# List C/C++ source files with relative paths to this CMakeLists.txt. | ||
email.cpp) | ||
|
||
# Specifies libraries CMake should link to your target library. You | ||
# can link libraries from various origins, such as libraries defined in this | ||
# build script, prebuilt third-party libraries, or Android system libraries. | ||
target_link_libraries(${CMAKE_PROJECT_NAME} | ||
# List libraries link to the target library | ||
android | ||
log) |
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 @@ | ||
#include <jni.h> | ||
#include <string> | ||
|
||
extern "C" JNIEXPORT jstring JNICALL | ||
Java_com_bitgoeul_email_NativeLib_stringFromJNI( | ||
JNIEnv* env, | ||
jobject /* this */) { | ||
std::string hello = "Hello from C++"; | ||
return env->NewStringUTF(hello.c_str()); | ||
} |
64 changes: 64 additions & 0 deletions
64
feature/email/src/main/java/com/bitgoeul/email/EmailSendInformScreen.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,64 @@ | ||
package com.bitgoeul.email | ||
|
||
import androidx.compose.foundation.background | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.Spacer | ||
import androidx.compose.foundation.layout.fillMaxSize | ||
import androidx.compose.foundation.layout.height | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.material3.Surface | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.res.stringResource | ||
import androidx.compose.ui.unit.dp | ||
import com.msg.design_system.component.icon.GoBackIcon | ||
import com.msg.design_system.component.topbar.GoBackTopBar | ||
import com.msg.design_system.theme.BitgoeulAndroidTheme | ||
import com.msg.design_system.R | ||
|
||
@Composable | ||
fun EmailSendInformScreen( | ||
modifier: Modifier = Modifier | ||
) { | ||
BitgoeulAndroidTheme { color, typography -> | ||
Surface { | ||
Column( | ||
modifier = modifier | ||
.background(color = color.WHITE) | ||
.padding(horizontal = 28.dp) | ||
.fillMaxSize() | ||
) { | ||
Spacer(modifier = modifier.height(20.dp)) | ||
|
||
GoBackTopBar( | ||
icon = { GoBackIcon() }, | ||
text = stringResource(id = R.string.go_back) | ||
) { | ||
// TODO onBackClicked() 추가하기 | ||
} | ||
|
||
Spacer(modifier = modifier.weight(1f)) | ||
|
||
Text( | ||
modifier = modifier.align(Alignment.CenterHorizontally), | ||
text = "s22055@gsm.hs.kr 로", | ||
style = typography.labelMedium, | ||
color = color.G2 | ||
) | ||
|
||
Text( | ||
modifier = modifier.align(Alignment.CenterHorizontally), | ||
text = "확인 이메일 발송됨", | ||
style = typography.titleMedium, | ||
color = color.BLACK | ||
) | ||
|
||
Spacer(modifier = modifier.weight(1f)) | ||
|
||
} | ||
|
||
} | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
feature/email/src/main/java/com/bitgoeul/email/InputEmailScreen.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,87 @@ | ||
package com.bitgoeul.email | ||
|
||
import androidx.compose.foundation.background | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.Spacer | ||
import androidx.compose.foundation.layout.fillMaxSize | ||
import androidx.compose.foundation.layout.fillMaxWidth | ||
import androidx.compose.foundation.layout.height | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.material3.Surface | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.res.stringResource | ||
import androidx.compose.ui.unit.dp | ||
import com.msg.design_system.component.icon.GoBackIcon | ||
import com.msg.design_system.component.topbar.GoBackTopBar | ||
import com.msg.design_system.theme.BitgoeulAndroidTheme | ||
import com.msg.design_system.R | ||
import com.msg.design_system.component.button.BitgoeulButton | ||
import com.msg.design_system.component.button.ButtonState | ||
import com.msg.design_system.component.textfield.DefaultTextField | ||
|
||
@Composable | ||
fun InputEmailScreen( | ||
modifier: Modifier = Modifier | ||
) { | ||
BitgoeulAndroidTheme { color, typography -> | ||
Surface { | ||
Column( | ||
modifier = modifier | ||
.background(color = color.WHITE) | ||
.padding(horizontal = 28.dp) | ||
.fillMaxSize() | ||
) { | ||
Spacer(modifier = modifier.height(20.dp)) | ||
|
||
GoBackTopBar( | ||
icon = { GoBackIcon() }, | ||
text = stringResource(id = R.string.go_back) | ||
) { | ||
// TODO onBackClicked() 추가하기 | ||
} | ||
|
||
Spacer(modifier = modifier.height(16.dp)) | ||
|
||
Text( | ||
text = stringResource(id = R.string.find_password), | ||
style = typography.titleLarge, | ||
color = color.BLACK | ||
) | ||
|
||
Text( | ||
text = stringResource(id = R.string.email_authentication_process), | ||
style = typography.bodySmall, | ||
color = color.G2 | ||
) | ||
|
||
Spacer(modifier = modifier.height(32.dp)) | ||
|
||
DefaultTextField( | ||
modifier = modifier.fillMaxWidth(), | ||
onValueChange = { }, | ||
errorText = "", | ||
isDisabled = false, | ||
isError = false, | ||
isLinked = false, | ||
isReverseTrailingIcon = false, | ||
onClickButton = {}, | ||
placeholder = stringResource(id = R.string.email) | ||
) | ||
|
||
Spacer(modifier = modifier.weight(1f)) | ||
|
||
BitgoeulButton( | ||
text = "다음으로", | ||
modifier = Modifier | ||
.padding(bottom = 14.dp) | ||
.fillMaxWidth() | ||
.height(52.dp), | ||
state = ButtonState.Disable, | ||
onClick = {} | ||
) | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.