buildscript {
  repositories {
    google()
    jcenter()
    maven {
      url 'https://maven.google.com/'
      name 'Google'
    }
  }

  dependencies {
    classpath 'com.android.tools.build:gradle:3.4.3'
  }
}

apply plugin: 'com.android.library'

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

android {
  compileSdkVersion safeExtGet("compileSdkVersion",31)
  //buildToolsVersion safeExtGet("buildToolsVersion","28.0.3")

  defaultConfig {
    minSdkVersion 21
    targetSdkVersion safeExtGet("targetSdkVersion",31)
    versionCode 1
    versionName "1.0"
  }
  lintOptions {
    abortOnError false
  }
}

repositories {
  google()
  mavenCentral()
  jcenter()
}

dependencies {
  //noinspection GradleDynamicVersion
  implementation "com.facebook.react:react-native:+"
  implementation "com.google.code.gson:gson:2.8.9"
  implementation "com.stripe:stripeterminal:2.5.2"
}
