buildscript {
  repositories {
    google()
    mavenCentral()
  }
  dependencies {
    classpath 'com.android.tools.build:gradle:3.6.0'
  }
}

apply plugin: 'com.android.library'

def safeExtGet(prop, fallback) {
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

android {
  compileSdkVersion safeExtGet('compileSdkVersion', 32)
  defaultConfig {
    minSdkVersion safeExtGet('minSdkVersion', 23)
    targetSdkVersion safeExtGet('targetSdkVersion', 32)
  }
  lintOptions {
    abortOnError false
  }
}

repositories {
  maven {
    url('../node_modules/react-native/android')
  }
  google()
  mavenCentral()
}

dependencies {
  implementation 'com.facebook.react:react-native:+'

  implementation 'androidx.appcompat:appcompat:1.4.1'
  implementation 'com.afollestad.material-dialogs:core:0.9.6.0'
  implementation 'com.squareup.whorlwind:whorlwind:2.0.0'
  implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
  implementation 'io.reactivex.rxjava2:rxjava:2.1.14'
}
