Skip to content
Snippets Groups Projects
Select Git revision
  • fc98bf5f7b9a1c59bfa70b6552216acb3dd81754
  • master default protected
2 results

Save.jsx

Blame
  • build.gradle 1.35 KiB
    apply plugin: 'com.android.application'
    android {
    
        compileSdkVersion 25
        buildToolsVersion '25.0.2'
    
        defaultConfig {
            applicationId "ohi.andre.consolelauncher"
    
            minSdkVersion 8
            targetSdkVersion 23
    
            versionCode 122
            versionName "6.2b"
        }
    
        buildTypes {
            release {
                minifyEnabled true
                shrinkResources true
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
                zipAlignEnabled true
            }
            debug {
                minifyEnabled false
                shrinkResources false
                zipAlignEnabled true
            }
        }
    
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_7
            targetCompatibility JavaVersion.VERSION_1_7
        }
    
        dependencies {
            compile 'com.android.support:appcompat-v7:23.4.0'
        }
    
        applicationVariants.all { variant ->
            def vn = variant.versionName
            def x = vn.substring(0, vn.length() - 1)
    
            variant.outputs.each { output ->
                output.outputFile = new File(
                        output.outputFile.parent,
                        output.outputFile.name.replace("app-release.apk", "${x}/${variant.applicationId}_${variant.versionName}_${new Date().format("dd-MM_hh.mm.ss")}.apk"))
            }
        }
    }
    dependencies {
        compile files('libs/anrwatchdog-1.3.0.jar')
    }