blob: 6abd17474a47f6e39c60191f41b705ab82d6ae7d [file] [log] [blame]
import org.robolectric.gradle.AndroidProjectConfigPlugin
import org.robolectric.gradle.GradleManagedDevicePlugin
apply plugin: 'com.android.library'
apply plugin: AndroidProjectConfigPlugin
apply plugin: GradleManagedDevicePlugin
android {
compileSdk 33
defaultConfig {
minSdk 16
targetSdk 33
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
sourceSets {
String sharedTestDir = 'src/sharedTest/'
String sharedTestSourceDir = sharedTestDir + 'java'
String sharedTestResourceDir = sharedTestDir + 'resources'
String sharedAndroidManifest = sharedTestDir + "AndroidManifest.xml"
test.resources.srcDirs += sharedTestResourceDir
test.java.srcDirs += sharedTestSourceDir
test.manifest.srcFile sharedAndroidManifest
androidTest.resources.srcDirs += sharedTestResourceDir
androidTest.java.srcDirs += sharedTestSourceDir
androidTest.manifest.srcFile sharedAndroidManifest
}
}
dependencies {
implementation "androidx.appcompat:appcompat:$appCompatVersion"
implementation "androidx.constraintlayout:constraintlayout:$constraintlayoutVersion"
implementation "androidx.multidex:multidex:$multidexVersion"
// Testing dependencies
testImplementation project(":robolectric")
testImplementation "androidx.test:runner:$axtRunnerVersion"
testImplementation "junit:junit:$junitVersion"
testImplementation "androidx.test:rules:$axtRulesVersion"
testImplementation "androidx.test.espresso:espresso-intents:$espressoVersion"
testImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
testImplementation "androidx.test.ext:truth:$axtTruthVersion"
testImplementation "androidx.test:core:$axtCoreVersion"
testImplementation "androidx.fragment:fragment:$fragmentVersion"
testImplementation "androidx.fragment:fragment-testing:$fragmentVersion"
testImplementation "androidx.test.ext:junit:$axtJunitVersion"
testImplementation "com.google.truth:truth:$truthVersion"
androidTestImplementation project(':annotations')
androidTestImplementation "androidx.test:runner:$axtRunnerVersion"
androidTestImplementation "junit:junit:$junitVersion"
androidTestImplementation "androidx.test:rules:$axtRulesVersion"
androidTestImplementation "androidx.test.espresso:espresso-intents:$espressoVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
androidTestImplementation "androidx.test.ext:truth:$axtTruthVersion"
androidTestImplementation "androidx.test:core:$axtCoreVersion"
androidTestImplementation "androidx.test.ext:junit:$axtJunitVersion"
androidTestImplementation "com.google.truth:truth:$truthVersion"
}