apply plugin: 'com.android.library'

buildscript {
  repositories {
    google()
    jcenter()
  }

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

android {
  compileSdkVersion 28
  buildToolsVersion "28.0.3"
  defaultConfig {
    minSdkVersion 21
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
  }
  lintOptions {
    abortOnError false
  }
  productFlavors {
  }
}

allprojects {
  repositories {
    google()
    jcenter()
    maven {
      // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
      url "$rootDir/../node_modules/react-native/android"
    }
  }
}

dependencies {
  implementation 'com.facebook.react:react-native:+'
  implementation ('com.dji:dji-sdk:4.10', {
//             Uncomment the following line if your app does not need Anti Distortion for
//             Mavic 2 Pro and Mavic 2 Zoom. It will greatly reducing the size of the APK:
    exclude module: 'library-anti-distortion'
//             Uncomment the following line if your APP does not need network RTK
    exclude module: 'library-networkrtk-helper'
  })
  compileOnly 'com.dji:dji-sdk-provided:4.10'
}