defaultConfig {
     

        //apk  버전명_버전코트_빌드날짜로 생성 bundle 
        def date = new Date()
        def formattedDate = date.format('yyMMdd_HHmm')
        setProperty("archivesBaseName", "앱이름" + versionName+ "_" + versionCode + "_" + formattedDate)

       
    }

 

 

//키스토어 설정 

 signingConfigs {

        release {
            storeFile file('./../키스토어.keystore')
            storePassword '패스워드'
            keyAlias 'alias'
            keyPassword '패스워드'
        }
    }


     debug {
            def date = new Date()
            def formattedDate = date.format('MMdd_HHmm')
            manifestPlaceholders = [appName: "앱이름"+formattedDate]   
            minifyEnabled false
            debuggable true
            signingConfig signingConfigs.release
        }

 

 release {
            manifestPlaceholders = [appName: "운영앱이름"]
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.release
        }

 

AND