@@ -9,10 +9,11 @@ dependencies {
99 api project(fromPath(" testing/java/com/google/android/material/testapp/base" ))
1010 api project(fromPath(" testing/java/com/google/android/material/testapp/custom" ))
1111
12- api ' androidx.multidex:multidex:2.0.0 '
12+ api ' androidx.multidex:multidex:2.0.1 '
1313}
1414
1515android {
16+ namespace " com.google.android.material.testapp"
1617 defaultConfig {
1718 multiDexEnabled true
1819 minSdkVersion 21
@@ -21,12 +22,31 @@ android {
2122
2223 sourceSets {
2324 main. manifest. srcFile ' AndroidManifest.xml'
24- main. java. srcDirs = [ ' .' ]
25- main. java. excludes = [
26- ' **/build/**' ,
25+ // Manually add src files. Gradle 8 doesn't work well with
26+ // a flat source directory (src = [ '.' ]) where java source, a gradle
27+ // file, and a build output directory are all in the same location.
28+ main. java. srcDirs = [
29+ ' AppBarHorizontalScrollingActivity.java' ,
30+ ' AppBarLayoutCollapsePinActivity.java' ,
31+ ' AppBarWithScrollbarsActivity.java' ,
32+ ' BottomNavigationViewActivity.java' ,
33+ ' BottomSheetBehaviorActivity.java' ,
34+ ' BottomSheetBehaviorWithInsetsActivity.java' ,
35+ ' BottomSheetDialogActivity.java' ,
36+ ' CoordinatorLayoutActivity.java' ,
37+ ' DynamicCoordinatorLayoutActivity.java' ,
38+ ' ExpandableTransformationActivity.java' ,
39+ ' ExposedDropdownMenuActivity.java' ,
40+ ' FloatingActionButtonActivity.java' ,
41+ ' NavigationViewActivity.java' ,
42+ ' SnackbarActivity.java' ,
43+ ' SnackbarWithFabActivity.java' ,
44+ ' SnackbarWithTranslucentNavBarActivity.java' ,
45+ ' TabLayoutPoolingActivity.java' ,
46+ ' TabLayoutWithViewPagerActivity.java' ,
47+ ' TextInputLayoutActivity.java' ,
48+ ' TextInputLayoutWithIconsActivity.java'
2749 ]
28- // Only include things in this directory, not subdirectories
29- main. java. includes = [ ' *.java' ]
3050 main. res. srcDirs = [ ' res' ]
3151 }
3252
0 commit comments