generated from NOW-SOPT-ANDROID/now-sopt-android-template
-
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
1 parent
bbd80fb
commit b974bbe
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
feature/search/src/main/java/org/sopt/search/SearchScreen.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,13 @@ | ||
package org.sopt.search | ||
|
||
import androidx.compose.foundation.layout.Box | ||
import androidx.compose.foundation.layout.fillMaxSize | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
|
||
@Composable | ||
fun SearchRoute( | ||
label : String, | ||
) { | ||
Box(modifier = Modifier.fillMaxSize()){} | ||
} |
24 changes: 24 additions & 0 deletions
24
feature/search/src/main/java/org/sopt/search/navigation/SearchNavigation.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 org.sopt.search.navigation | ||
|
||
import androidx.navigation.NavController | ||
import androidx.navigation.NavGraphBuilder | ||
import androidx.navigation.NavOptions | ||
import androidx.navigation.compose.composable | ||
import org.sopt.search.SearchRoute | ||
|
||
fun NavController.navigateSearch(navOptions: NavOptions) { | ||
navigate(SearchRoute.route, navOptions) | ||
} | ||
|
||
fun NavGraphBuilder.searchNavGraph( | ||
){ | ||
composable(route = SearchRoute.route) { | ||
SearchRoute( | ||
label = "" | ||
) | ||
} | ||
} | ||
|
||
object SearchRoute { | ||
const val route = "search" | ||
} |
17 changes: 17 additions & 0 deletions
17
feature/search/src/test/java/org/sopt/search/ExampleUnitTest.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,17 @@ | ||
package org.sopt.search | ||
|
||
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) | ||
} | ||
} |