-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to AGP 8 & Kotlin 1.9.10 #324
Changes from 10 commits
0e994d6
0d64a3d
3beae4f
7e057be
7a9e9af
476606a
639afdc
2f0ddcc
539d959
cbacdba
543d07b
e7980dc
03d0061
4b70922
bbf0477
8313672
2f04dff
94bf9ae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<manifest package="com.instacart.formula.android.compose"/> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"/> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<manifest package="com.instacart.formula.android"/> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"/> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
package com.instacart.formula | ||
|
||
import com.google.common.truth.Truth.assertThat | ||
import com.nhaarman.mockito_kotlin.mock | ||
import com.nhaarman.mockito_kotlin.spy | ||
import com.nhaarman.mockito_kotlin.whenever | ||
import org.junit.Test | ||
import org.mockito.internal.stubbing.answers.CallsRealMethods | ||
import org.mockito.kotlin.mock | ||
import org.mockito.kotlin.whenever | ||
|
||
class MockitoFormulaTest { | ||
|
||
|
@@ -17,7 +16,9 @@ class MockitoFormulaTest { | |
assertThat(formula.type()).isEqualTo(MyFormula::class) | ||
} | ||
|
||
class MyFormula : StatelessFormula<Unit, Unit>() { | ||
class MyFormula : Formula<Unit, Unit, Unit>() { | ||
override fun initialState(input: Unit) = Unit | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Laimiux this test was failing due to an issue mocking
I changed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suspect this test was added to ensure that |
||
override fun Snapshot<Unit, Unit>.evaluate(): Evaluation<Unit> { | ||
return Evaluation(Unit) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this should be java 18?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, updated.