apply plugin: 'com.android.library'

def DEFAULT_COMPILE_SDK_VERSION   = 28
def DEFAULT_BUILD_TOOLS_VERSION   = "28.0.3"
def DEFAULT_TARGET_SDK_VERSION    = 28
def DEFAULT_MIN_SDK_VERSION       = 16

buildscript {
    repositories {
        google()
        maven { url "https://maven.google.com" }
        jcenter()
        maven { url 'https://www.jitpack.io' }
    }

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

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

    defaultConfig {
        minSdkVersion rootProject.ext.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : DEFAULT_MIN_SDK_VERSION
        targetSdkVersion rootProject.ext.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
        abortOnError false
    }
}

repositories {
    google()
    mavenCentral()
    maven { url "https://maven.google.com" }
    maven { url 'https://www.jitpack.io' }
}

dependencies {
    implementation 'com.facebook.react:react-native:+'
//    implementation 'com.github.prscX:photo-editor-android:master-SNAPSHOT'
//    implementation 'fr.avianey.com.viewpagerindicator:library:2.4.1@aar'
//    implementation 'com.nineoldandroids:library:2.4.0'
//    implementation 'com.android.support:design:28.0.0'
//    implementation 'com.android.support:appcompat-v7:28.0.0'
//    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
//    implementation 'com.github.yalantis:ucrop:2.2.2-native'
//    implementation 'com.android.support:exifinterface:27.1.1'
//    implementation 'ja.burhanrashid52:photoeditor:1.0.0'
//    implementation 'com.google.android.material:material:1.0.0'
//    implementation 'androidx.cardview:cardview:1.0.0'

    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:design:28.0.0'
    implementation 'ja.burhanrashid52:photoeditor:0.4.0'
    //implementation project(':photoeditor')
    implementation 'com.android.support:cardview-v7:28.0.0'
}
