-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
49 changed files
with
111 additions
and
325 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ik/androidmvvmtemplate/common/Resource.kt → ...ndroidmvvmtemplate/data/model/Resource.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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package com.ferhatozcelik.androidmvvmtemplate.common | ||
package com.ferhatozcelik.androidmvvmtemplate.data.model | ||
|
||
sealed class Resource<out T : Any> { | ||
object Loading : Resource<Nothing>() | ||
data class Success<out T : Any>(val data: T) : Resource<T>() | ||
data class Success<out T : Any>(val data: Any) : Resource<T>() | ||
data class Error(val errorMessage: String) : Resource<Nothing>() | ||
} |
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
14 changes: 14 additions & 0 deletions
14
app/src/main/java/com/ferhatozcelik/androidmvvmtemplate/data/repository/ExampleRepository.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 com.ferhatozcelik.androidmvvmtemplate.data.repository | ||
|
||
import com.ferhatozcelik.androidmvvmtemplate.data.dao.ExampleDao | ||
import com.ferhatozcelik.androidmvvmtemplate.data.remote.AppApi | ||
import javax.inject.Inject | ||
import javax.inject.Singleton | ||
|
||
|
||
@Singleton | ||
class ExampleRepository @Inject constructor(private val appApi: AppApi, private val exampleDao: ExampleDao) { | ||
|
||
|
||
|
||
} |
13 changes: 0 additions & 13 deletions
13
.../main/java/com/ferhatozcelik/androidmvvmtemplate/data/repository/ExampleRepositoryImpl.kt
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
23 changes: 0 additions & 23 deletions
23
app/src/main/java/com/ferhatozcelik/androidmvvmtemplate/di/RepositoryModule.kt
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
...rc/main/java/com/ferhatozcelik/androidmvvmtemplate/domain/repository/ExampleRepository.kt
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
...rc/main/java/com/ferhatozcelik/androidmvvmtemplate/domain/usecase/main/GetLocalUseCase.kt
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
...c/main/java/com/ferhatozcelik/androidmvvmtemplate/domain/usecase/main/GetRemoteUseCase.kt
This file was deleted.
Oops, something went wrong.
6 changes: 2 additions & 4 deletions
6
...rc/main/java/com/ferhatozcelik/androidmvvmtemplate/ui/fragments/detail/DetailViewModel.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
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 |
---|---|---|
|
@@ -16,5 +16,4 @@ import dagger.hilt.android.AndroidEntryPoint | |
|
||
} | ||
|
||
|
||
} |
6 changes: 2 additions & 4 deletions
6
app/src/main/java/com/ferhatozcelik/androidmvvmtemplate/ui/fragments/home/HomeViewModel.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
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item> | ||
<layer-list> | ||
<item> | ||
<shape android:shape="rectangle"> | ||
<corners android:radius="16dp" /> | ||
<solid android:color="@color/colorSecondary" /> | ||
</shape> | ||
</item> | ||
</layer-list> | ||
</item> | ||
</selector> |
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 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item> | ||
<shape android:shape="rectangle"> | ||
<stroke android:width="1dp" android:color="@color/colorBorder" /> | ||
<corners android:radius="16dp" /> | ||
<solid android:color="@color/white" /> | ||
</shape> | ||
</item> | ||
</selector> |
Oops, something went wrong.