apply plugin: "com.android.application"

project.ext.react = [
        root     : "../../../",
        entryFile: "playground/index.android.js"
]

apply from: "../../../node_modules/react-native/react.gradle"

android {
    compileSdkVersion 25
    buildToolsVersion "27.0.1"

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        applicationId "com.reactnativenavigation.playground"
        minSdkVersion 19
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
    }
    signingConfigs {
        release {
            storeFile file('../playground.keystore')
            storePassword "playground"
            keyAlias "playground"
            keyPassword "playground"
        }
    }
    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.facebook.react:react-native:+'
    implementation 'com.android.support:design:25.4.0'
    implementation "com.android.support:appcompat-v7:25.4.0"
    implementation project(':react-native-navigation')
}
