buildscript {
    repositories {
        jcenter() // or mavenCentral()
        google()
    }

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

allprojects {
    repositories {
        jcenter()
        google()
    }
}

apply plugin: 'com.android.application'

android {
    splits {
        abi {
            enable true
            reset()
            include 'armeabi-v7a'
        }
    }

    lintOptions {
        disable "ResourceType"
        checkReleaseBuilds false
    }

    compileSdkVersion 23

    defaultConfig {
        applicationId "kr.co.icontrols.ilp300_700"
        minSdkVersion 19
        targetSdkVersion 19
        multiDexEnabled true

        ndk {
            moduleName "iLP300_700_JNI"
        }
    }

    signingConfigs {
        config {
            keyAlias 'HDC_HN_RELEASE_KEY'
            keyPassword 'hdchnsys1776'
            storeFile file('../HDC_HN_RELEASE_KEY.jks')
            storePassword 'hdchnsys1776'
        }
    }

    buildTypes {
        debug {
            signingConfig signingConfigs.config
        }
        release {
            signingConfig signingConfigs.config
        }
        release_secured {
            signingConfig signingConfigs.config
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    applicationVariants.all { variant ->
        variant.outputs.all { output ->
            outputFileName = new File("../", "ILP300_700.apk");
        }
    }
}

dependencies {
    implementation 'com.android.support:support-v4:23.4.0'
    implementation files('libs/daum-speech-openapi-2.1.jar')
    implementation files('libs/iencryptor.jar')
    implementation files('libs/SttTTsAPI.jar')
    implementation files('libs/WallPadAPI.jar')
    implementation files('libs/WallPadSupport.jar')
    implementation files('libs/milsiplib.aar')
}
