-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(networking-screens): migrate module to kmp.
- Loading branch information
1 parent
12000f4
commit 09b2d3a
Showing
15 changed files
with
138 additions
and
105 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
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
25 changes: 25 additions & 0 deletions
25
...kotlin/org/gdglille/devfest/android/theme/m3/networking/screens/ContactsScreen.android.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,25 @@ | ||
package org.gdglille.devfest.android.theme.m3.networking.screens | ||
|
||
import android.annotation.SuppressLint | ||
import androidx.compose.material3.ExperimentalMaterial3Api | ||
import androidx.compose.material3.Scaffold | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import org.gdglille.devfest.android.theme.m3.style.Conferences4HallTheme | ||
import org.gdglille.devfest.models.ui.NetworkingUi | ||
import org.gdglille.devfest.theme.m3.networking.screens.ContactsScreen | ||
|
||
@SuppressLint("UnusedMaterial3ScaffoldPaddingParameter") | ||
@ExperimentalMaterial3Api | ||
@Preview | ||
@Composable | ||
private fun ContactsPreview() { | ||
Conferences4HallTheme { | ||
Scaffold { | ||
ContactsScreen( | ||
users = NetworkingUi.fake.users, | ||
onNetworkDeleted = {} | ||
) | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...n/org/gdglille/devfest/android/theme/m3/networking/screens/EmptyContactsScreen.android.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,14 @@ | ||
package org.gdglille.devfest.android.theme.m3.networking.screens | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import org.gdglille.devfest.android.theme.m3.style.Conferences4HallTheme | ||
import org.gdglille.devfest.theme.m3.networking.screens.EmptyContactsScreen | ||
|
||
@Preview(showBackground = true) | ||
@Composable | ||
fun EmptyContactsScreenPreview() { | ||
Conferences4HallTheme { | ||
EmptyContactsScreen() | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...org/gdglille/devfest/android/theme/m3/networking/screens/EmptyNetworkingScreen.android.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,14 @@ | ||
package org.gdglille.devfest.android.theme.m3.networking.screens | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import org.gdglille.devfest.android.theme.m3.style.Conferences4HallTheme | ||
import org.gdglille.devfest.theme.m3.networking.screens.EmptyNetworkingScreen | ||
|
||
@Preview(showBackground = true) | ||
@Composable | ||
private fun EmptyNetworkingScreenPreview() { | ||
Conferences4HallTheme { | ||
EmptyNetworkingScreen() | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...otlin/org/gdglille/devfest/android/theme/m3/networking/screens/MyProfileScreen.android.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.gdglille.devfest.android.theme.m3.networking.screens | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import org.gdglille.devfest.android.theme.m3.style.Conferences4HallTheme | ||
import org.gdglille.devfest.models.ui.UserProfileUi | ||
|
||
@Preview | ||
@Composable | ||
private fun MyProfilePreview() { | ||
Conferences4HallTheme { | ||
MyProfileScreen( | ||
profileUi = UserProfileUi.fake, | ||
onEditInformation = {} | ||
) | ||
} | ||
} |
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
27 changes: 27 additions & 0 deletions
27
...in/org/gdglille/devfest/android/theme/m3/networking/screens/ProfileInputScreen.android.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,27 @@ | ||
package org.gdglille.devfest.android.theme.m3.networking.screens | ||
|
||
import android.annotation.SuppressLint | ||
import androidx.compose.material3.ExperimentalMaterial3Api | ||
import androidx.compose.material3.Scaffold | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import org.gdglille.devfest.android.theme.m3.style.Conferences4HallTheme | ||
import org.gdglille.devfest.models.ui.UserProfileUi | ||
import org.gdglille.devfest.theme.m3.networking.screens.ProfileInputScreen | ||
|
||
@ExperimentalMaterial3Api | ||
@SuppressLint("UnusedMaterial3ScaffoldPaddingParameter") | ||
@Preview | ||
@Composable | ||
fun ProfileInputScreenPreview() { | ||
Conferences4HallTheme { | ||
Scaffold { | ||
ProfileInputScreen( | ||
profile = UserProfileUi.fake, | ||
onValueChanged = { _, _ -> }, | ||
onValidation = {}, | ||
onBackClicked = {} | ||
) | ||
} | ||
} | ||
} |
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
Oops, something went wrong.