Skip to content

Commit

Permalink
Fix remaining errors
Browse files Browse the repository at this point in the history
  • Loading branch information
apramana committed Jul 30, 2023
1 parent 9cc30b2 commit 5328964
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import java.io.Serializable
* Helper ViewModelProvider that has a single method for taking either a [Fragment] or [ComponentActivity] instead
* of two separate ones. The logic for providing the correct scope is inside the method.
*/
@InternalMavericksApi
object MavericksViewModelProvider {
/**
* Mavericks specific ViewModelProvider used for creating a BaseMavericksViewModel scoped to either a [Fragment] or [ComponentActivity].
Expand All @@ -28,6 +27,7 @@ object MavericksViewModelProvider {
* @param initialStateFactory A way to specify how to create the initial state, can be mocked out for testing.
*
*/
@InternalMavericksApi
fun <VM : MavericksViewModel<S>, S : MavericksState> get(
viewModelClass: Class<out VM>,
stateClass: Class<out S>,
Expand Down
5 changes: 5 additions & 0 deletions sample-anvilannotations/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
apply plugin: 'org.jetbrains.kotlin.jvm'

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

dependencies {
api 'javax.inject:javax.inject:1'
}
5 changes: 5 additions & 0 deletions sample-anvilcodegen/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
}
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

dependencies {
api "com.squareup.anvil:compiler-api:2.4.6"
implementation project(':sample-anvilannotations')
Expand Down

0 comments on commit 5328964

Please sign in to comment.