diff --git a/mvrx/src/main/kotlin/com/airbnb/mvrx/MavericksViewModelProvider.kt b/mvrx/src/main/kotlin/com/airbnb/mvrx/MavericksViewModelProvider.kt index 8b0d0a37..71d5e934 100644 --- a/mvrx/src/main/kotlin/com/airbnb/mvrx/MavericksViewModelProvider.kt +++ b/mvrx/src/main/kotlin/com/airbnb/mvrx/MavericksViewModelProvider.kt @@ -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]. @@ -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 , S : MavericksState> get( viewModelClass: Class, stateClass: Class, diff --git a/sample-anvilannotations/build.gradle b/sample-anvilannotations/build.gradle index 2bb0a22b..2cb6175f 100644 --- a/sample-anvilannotations/build.gradle +++ b/sample-anvilannotations/build.gradle @@ -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' } \ No newline at end of file diff --git a/sample-anvilcodegen/build.gradle b/sample-anvilcodegen/build.gradle index 38c7ca3c..810af410 100644 --- a/sample-anvilcodegen/build.gradle +++ b/sample-anvilcodegen/build.gradle @@ -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')