forked from RohitSurwase/UCE-Handler
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 #194 from jampez77/bug/koin-isolation
Bug/koin isolation
- Loading branch information
Showing
11 changed files
with
55 additions
and
61 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
16 changes: 16 additions & 0 deletions
16
uce_handler/src/main/java/com/jampez/uceh/data/UCEViewModelFactory.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,16 @@ | ||
package com.jampez.uceh.data | ||
|
||
import androidx.lifecycle.ViewModel | ||
import androidx.lifecycle.ViewModelProvider | ||
import com.jampez.uceh.features.supportissue.SupportIssueRepository | ||
import com.jampez.uceh.features.uce.UCEViewModel | ||
|
||
class UCEViewModelFactory(private val supportIssueRepository: SupportIssueRepository): ViewModelProvider.Factory{ | ||
override fun <T : ViewModel?> create(modelClass: Class<T>): T { | ||
if(modelClass.isAssignableFrom(UCEViewModel::class.java)){ | ||
return UCEViewModel(supportIssueRepository) as T | ||
} | ||
throw IllegalArgumentException ("UnknownViewModel") | ||
} | ||
|
||
} |
9 changes: 0 additions & 9 deletions
9
uce_handler/src/main/java/com/jampez/uceh/data/modules/ViewModelModule.kt
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
uce_handler/src/main/java/com/jampez/uceh/features/bitbucket/BitBucketError.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,7 @@ | ||
package com.jampez.uceh.features.bitbucket | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class BitBucketError( | ||
@SerializedName("message") val message: String | ||
) |
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
5 changes: 0 additions & 5 deletions
5
uce_handler/src/main/java/com/jampez/uceh/features/supportissue/SupportIssueModule.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
26 changes: 0 additions & 26 deletions
26
uce_handler/src/main/java/com/jampez/uceh/utils/UCEApplication.kt
This file was deleted.
Oops, something went wrong.