@@ -9,10 +9,11 @@ dependencies {
9
9
api project(fromPath(" testing/java/com/google/android/material/testapp/base" ))
10
10
api project(fromPath(" testing/java/com/google/android/material/testapp/custom" ))
11
11
12
- api ' androidx.multidex:multidex:2.0.0 '
12
+ api ' androidx.multidex:multidex:2.0.1 '
13
13
}
14
14
15
15
android {
16
+ namespace " com.google.android.material.testapp"
16
17
defaultConfig {
17
18
multiDexEnabled true
18
19
minSdkVersion 21
@@ -21,12 +22,31 @@ android {
21
22
22
23
sourceSets {
23
24
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'
27
49
]
28
- // Only include things in this directory, not subdirectories
29
- main. java. includes = [ ' *.java' ]
30
50
main. res. srcDirs = [ ' res' ]
31
51
}
32
52
0 commit comments