build.gradle 1.52 KB
plugins {
    id 'com.android.application'
    id 'org.jetbrains.kotlin.android'
}

android {
    compileSdk 32

    defaultConfig {
        applicationId "com.apaas.bigscreem"
        minSdk 28
        targetSdk 32
        versionCode 1
        versionName "1.0"

    }

    signingConfigs {
        config {
            storeFile file('./AppSignature.jks')
            storePassword '123456'
            keyAlias 'study'
            keyPassword '123456'
            v1SigningEnabled true
            v2SigningEnabled true
        }
        release {
            storeFile file('./AppSignature.jks')
            storePassword '123456'
            keyAlias 'study'
            keyPassword '123456'
            v1SigningEnabled true
            v2SigningEnabled false
        }
    }

    buildTypes {
        release {
            debuggable false
            jniDebuggable false
            // 压缩对齐开关
            zipAlignEnabled true
            // 签名信息配置
            signingConfig signingConfigs.release
            // 添加清单占位符
            addManifestPlaceholders([
                    'app_name': '@string/app_name'
            ])
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {

    implementation 'androidx.core:core-ktx:1.7.0'
    implementation 'androidx.leanback:leanback:1.0.0'
    implementation 'com.github.bumptech.glide:glide:4.11.0'
    implementation 'androidx.browser:browser:1.3.0'
}