apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    buildToolsVersion "28.0.3"
    defaultConfig {
        applicationId "@APP_PACKAGE@"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode @APP_VERSION_CODE_ANDROID@
        versionName "@APP_VERSION@"
    }
    buildTypes {
        releaseUnsigned.initWith(buildTypes.release)
        releaseUnsigned {
            signingConfig null
        }

        debugUnsigned.initWith(buildTypes.debug)
        debugUnsigned {
            signingConfig null
        }

    }
    aaptOptions {
        ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
    }

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['java']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
            jniLibs.srcDirs = ['lib']
        }
    }
    packagingOptions{
      doNotStrip '**.setup'
    }
}

project.afterEvaluate {
    preBuild.dependsOn
}

dependencies {
    // New support library to for channels/programs development.
    implementation 'com.android.support:support-tv-provider:28.0.0'
    implementation 'com.google.code.gson:gson:2.8.0'
}
