plugins {
    id 'com.android.application'
    id 'kotlin-android'
    id 'kotlin-kapt'
    id 'kotlin-parcelize'
}
android {
    compileSdk versions.compile_sdk
    defaultConfig {
        applicationId "com.arc.fast.transition.sample"
        minSdk versions.min_sdk
        targetSdk versions.compile_sdk
        versionCode versions.publish_code
        versionName versions.publish_name
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
//    signingConfigs {
//        release {
//            keyAlias 'sample'
//            keyPassword 'sample'
//            storeFile file('../sample.jks')
//            storePassword 'sample'
//        }
//    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
//            signingConfig signingConfigs.release
        }
        debug {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
//            signingConfig signingConfigs.release
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_11
        targetCompatibility JavaVersion.VERSION_11
    }
    kotlinOptions {
        jvmTarget = JavaVersion.VERSION_11
    }
    // dataBinding
    buildFeatures {
        dataBinding true
    }
    namespace 'com.arc.fast.transition.sample'

    // 配置打包APK的名称
//    android.applicationVariants.all {
//        variant ->
//            def name = ""
//            if (variant.buildType.name.contains('release')) {
//                name = "release"
//            } else {
//                name = "debug"
//            }
//            variant.outputs.all {
//                outputFileName = "${defaultConfig.applicationId}_${name}_${variant.versionName}(${variant.versionCode}).apk"
//            }
//    }
}
dependencies {
    implementation 'androidx.core:core-ktx:1.9.0'
    implementation 'androidx.appcompat:appcompat:1.6.0'
    implementation 'com.google.android.material:material:1.8.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    implementation 'androidx.recyclerview:recyclerview:1.2.1'
    //
    implementation 'io.github.youth5201314:banner:2.2.2'
    implementation "org.greenrobot:eventbus:3.3.1"
    implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.7'
    // transition
//    implementation project(path: ':shared-element')
    implementation 'com.github.Arcns.fast-transition:shared-element:2.0.0'
    // other
    implementation 'com.github.Arcns.arc-fast:core:1.23.1'
    implementation 'com.github.Arcns.arc-fast:immersive:1.23.1'
    implementation 'com.github.Arcns.arc-fast:rounded:1.23.1'
    implementation 'com.github.Arcns.arc-fast:drag-exit:1.23.1'
    implementation 'com.github.Arcns.arc-fast:nested-scroll-compat:1.23.1'
}