

def DEFAULT_COMPILE_SDK_VERSION             = 30
def DEFAULT_TARGET_SDK_VERSION              = 30
def DEFAULT_BUILD_TOOLS_VERSION             = "30.0.2"



buildscript {
    ext {
        kotlinVersion = "1.5.32"
    }

    repositories {
      mavenCentral()
      google()

      maven {
          url "https://maven.google.com"
      }
    }

    dependencies {
        classpath("com.android.tools.build:gradle:7.0.4")
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
    }
}

apply plugin: "kotlin-android"
apply plugin: 'com.android.library'


android {
    compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
    buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion project.hasProperty('targetSdkVersion') ? project.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
       warning 'InvalidPackage'
    }
}

dependencies {
    implementation 'com.facebook.react:react-native:+'
    implementation 'com.google.android.libraries.healthdata:health-data-api:1.0.1-alpha01'
}
