apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

group = 'expo.modules.sunmiprinter'
version = '1.0.0'

def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
apply from: expoModulesCorePlugin
applyKotlinExpoModulesCorePlugin()
useDefaultAndroidSdkVersions()
useExpoPublishing()

android {
  namespace "expo.modules.sunmiprinter"
  
  defaultConfig {
    minSdkVersion 21
  }

  buildTypes {
    release {
      minifyEnabled false
    }
  }
}

dependencies {
  implementation project(':expo-modules-core')
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.10"
  implementation 'com.sunmi:printerx:1.0.17'
}
