Skip to content

Instantly share code, notes, and snippets.

@changusmc
Created October 11, 2019 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save changusmc/9b2f09149bec15f2cee35859accd024a to your computer and use it in GitHub Desktop.
Save changusmc/9b2f09149bec15f2cee35859accd024a to your computer and use it in GitHub Desktop.
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