Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Robolectric works with Kotlin 1.7.x
1. Add artifactType with jar for utils' runtimeElements We should add artifactType with jar to ensure standard runtimeElements variant has a max priority selection sequence than other variants that brought by kotlin plugin. 2. Use annotations module to replace shadowapi for androidx_test androidx_test only needs annotations module, instead of a larger one called shadowapi. 3. Use java/main to replace kotlin/main for utils modules Use java/main classes directory to replace default kotlin/main to avoid d8 error when dexing & desugaring kotlin classes with non-exist kotlin/main directory because utils module doesn't have kotlin code in production. If utils module starts to add Kotlin code in main source set, we can remove this destinationDirectory modification. Signed-off-by: utzcoz <utzcoz@outlook.com>
- Loading branch information
Showing
3 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
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
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
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