Material Design Team 2bb0fa112e Adding ViewPager2 as dependency to MDC
This paves the way to add TabLayoutMediator to MDC's tabs library, which
makes it possible for a ViewPager2 to be linked to a TabLayout similarly
to how a ViewPager was linked to TabLayout.

PiperOrigin-RevId: 246496849
2019-05-03 11:04:35 -04:00

42 lines
1.1 KiB
Groovy

apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
archivesBaseName = getArchivesBaseName(project.name)
version = rootProject.ext.mdcLibraryVersion
dependencies {
implementation compatibility("annotation")
implementation compatibility("appcompat")
implementation compatibility("core")
implementation compatibility("core_ui")
implementation compatibility("viewpager2")
implementation project(fromPath("lib/java/com/google/android/material/animation"))
implementation project(fromPath("lib/java/com/google/android/material/internal"))
implementation project(fromPath("lib/java/com/google/android/material/resources"))
implementation project(fromPath("lib/java/com/google/android/material/ripple"))
}
android {
sourceSets {
main.manifest.srcFile 'AndroidManifest.xml'
main.java.srcDir '.'
main.java.excludes = [
'**/build/**',
]
main.res.srcDirs = [
'res',
'res-public'
]
main.assets.srcDir 'assets'
}
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: rootProject.ext.mavenRepoUrl)
}
}
}