Merge branch 'fix/android_module_sources' into 'master'
Ensure sources are set for published artifacts See merge request proton/mobile/android/proton-libs!475
This commit is contained in:
commit
4b318c9ee5
|
@ -63,6 +63,13 @@ fun org.gradle.api.Project.android(
|
|||
// You must turn it on if you need it in your module: android(useViewBinding = true).
|
||||
buildFeatures.viewBinding = useViewBinding
|
||||
|
||||
// Ensure sources are set for published artifacts
|
||||
sourceSets {
|
||||
getByName("main").java.srcDirs("src/main/kotlin")
|
||||
getByName("test").java.srcDirs("src/test/kotlin")
|
||||
getByName("androidTest").java.srcDirs("src/androidTest/kotlin")
|
||||
}
|
||||
|
||||
testOptions {
|
||||
unitTests.isIncludeAndroidResources = true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue