
It's currently difficult to use ExoPlayer modules in other gradle projects because they rely on constants and dependencies defined in our own top level gradle file. This change moves the constants into a separate file referenced directly from each module. It also removes the need for the top level gradle file to declare a dependency on com.novoda:bintray-release. This is now only needed if "exoplayerPublishEnabled = true" is specified. Issue: #2851 Issue: #2974 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=160272072
37 lines
1.7 KiB
Groovy
37 lines
1.7 KiB
Groovy
apply from: '../../version_constants.gradle'
|
|
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
compileSdkVersion project.ext.compileSdkVersion
|
|
buildToolsVersion project.ext.buildToolsVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion 14
|
|
targetSdkVersion project.ext.targetSdkVersion
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':library-core')
|
|
compile 'com.android.support:support-annotations:' + supportLibraryVersion
|
|
compile 'com.google.ads.interactivemedia.v3:interactivemedia:3.6.0'
|
|
compile 'com.google.android.gms:play-services-ads:10.2.4'
|
|
// There exists a dependency chain:
|
|
// com.google.android.gms:play-services-ads:10.2.4
|
|
// |-> com.google.android.gms:play-services-ads-lite:10.2.4
|
|
// |-> com.google.android.gms:play-services-basement:10.2.4
|
|
// |-> com.android.support:support-v4:24.0.0
|
|
// The support-v4:24.0.0 module directly includes older versions of the same
|
|
// classes as com.android.support:support-annotations. We need to manually
|
|
// force it to the version we're using to avoid a compilation failure. This
|
|
// will become unnecessary when the support-v4 dependency in the chain above
|
|
// has been updated to 24.2.0 or later.
|
|
compile 'com.android.support:support-v4:' + supportLibraryVersion
|
|
androidTestCompile project(':library')
|
|
androidTestCompile 'com.google.dexmaker:dexmaker:' + dexmakerVersion
|
|
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:' + dexmakerVersion
|
|
androidTestCompile 'org.mockito:mockito-core:' + mockitoVersion
|
|
androidTestCompile 'com.android.support.test:runner:' + testSupportLibraryVersion
|
|
}
|