Skip to content

Instantly share code, notes, and snippets.

@changusmc changusmc/common.gradle Secret
Created Oct 11, 2019

Embed
What would you like to do?
subprojects { Project project ->
project.apply from: xplatRoot.absolutePath + "/tools/gradle/test_results_formatter.gradle"
project.plugins.withId('com.android.library') {
project.apply plugin: 'kotlin-android'
if (project.hasProperty('apply_jacoco_plugin') {
// Runs in CI or when a local dev enables this property
project.apply from: xplatRoot.absolutePath + "/tools/gradle/jacoco_test_coverage.gradle"
}
project.android {
compileSdkVersion androidCompileSdkVersion
buildToolsVersion androidBuildToolsVersion
lintOptions {
ignore 'MissingTranslation'
}
defaultConfig {
minSdkVersion androidMinSdkVersion
targetSdkVersion androidTargetSdkVersion
testInstrumentationRunner 'com.dropbox.base.test.runner.DbxBaseTestRunner'
// This is needed for when we build this as a standalone target,
// which will typically be in tests.
multiDexEnabled true
}
compileOptions {
sourceCompatibility androidSourceCompatibility
targetCompatibility androidTargetCompatibility
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.