-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. added instrumental test 2. renamed vm with getMVBVm 3. changed convertIfIsParcelableArray to ConvertToActual 4. undid Bundle 5. optimized save.kt and Saver.kt 6. add Container for rmb 7. changed MVBViewModel functions with operators. 8. optimized the writing style in MVBData 9. renamed a function with `convertIfIsParcelableArray`.
- Loading branch information
WilliamKwokX
committed
Sep 19, 2023
1 parent
7ebd245
commit b4bb787
Showing
59 changed files
with
904 additions
and
494 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
18 changes: 18 additions & 0 deletions
18
api/src/androidTest/java/pers/shawxingkwok/mvb/ConvertToActual.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,18 @@ | ||
package pers.shawxingkwok.mvb | ||
|
||
import android.os.Parcelable | ||
import kotlinx.parcelize.Parcelize | ||
import org.junit.Test | ||
import pers.shawxingkwok.mvb.android.convertToActual | ||
|
||
internal class ConvertToActual { | ||
@Parcelize | ||
class P : Parcelable | ||
|
||
@Test | ||
fun start(){ | ||
val arr = arrayOf<Parcelable>() | ||
val newArr = arr.convertToActual(P::class.java) | ||
assert(newArr.javaClass.componentType == P::class.java) | ||
} | ||
} |
Oops, something went wrong.