plugins {
  id 'com.android.library'
  id 'expo-module-gradle-plugin'
}

group = 'org.unimodules'
version = '56.0.7'

expoModule {
  canBePublished false
}

android {
  namespace "org.unimodules.test.core"
  defaultConfig {
    versionCode 3
    versionName '56.0.7'
  }
  packagingOptions {
    resources {
      excludes += [
              'META-INF/LICENSE.md',
              'META-INF/LICENSE-notice.md',
      ]
    }
  }
}

dependencies {
  api 'androidx.test:core:1.7.0'
  api 'junit:junit:4.13.2'
  api('io.mockk:mockk:1.13.5') {
    // jupiter is junit 5 which we don't use
    exclude group: 'org.junit.jupiter'
  }
  api ("org.robolectric:robolectric:4.16") {
    // Duplicate class bcprov-jdk15to18-1.78.1.jar and bcprov-jdk18on-1.78.1.jar
    // Exclude the conflicting jdk18on version, so that jdk15to18 is used
    exclude group: 'org.bouncycastle', module: 'bcprov-jdk18on'
  }
  // specify a version of Bouncy Castle - used in robolectric and androidx.room (expo-updates)
  implementation 'org.bouncycastle:bcprov-jdk15to18:1.81'
  testImplementation 'org.bouncycastle:bcprov-jdk15to18:1.81'

  implementation 'com.facebook.react:react-android'

  implementation "org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}"

  // instrumented testing dependencies
  api 'androidx.test.ext:junit:1.3.0'
  api 'androidx.test:runner:1.7.0'
  api 'androidx.test:rules:1.7.0'
  api "com.google.truth:truth:1.4.5"
  api "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.2"
}
