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 590fce5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/build_test.yml
Expand Up @@ -11,13 +11,21 @@ jobs:
steps:
- name: Checkout mavericks
uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Detekt
run: "./gradlew detekt -PCI=true"
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout mavericks
uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Lint
run: "./gradlew lintRelease"
test-coverage:
Expand All @@ -26,6 +34,10 @@ jobs:
steps:
- name: Checkout mavericks
uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Unit Tests
run: "./gradlew testReleaseUnitTest"
- name: Code Coverage
Expand Down
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
@@ -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
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 590fce5

Please sign in to comment.