Location of the project.properties file in Android Studio 0.6.1

I am learning how to use ProGuard, but I could not find the project.properties file in my project. Has it been replaced? I see proguard-rules.pro. But I could not find the line where I need to delete the comment #.

So far this is what I have done. I change false to true in runProguard and change proguardFiles to "proguard-android-optimize".

  apply plugin: 'android'

   android {
    compileSdkVersion 19
    buildToolsVersion "19.1.0"

    defaultConfig {
        applicationId "tok.advertisement"
        minSdkVersion 11
        targetSdkVersion 19

    }
    buildTypes {
        release {
            runProguard true
            proguardFiles getDefaultProguardFile('proguard-android-optimize'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:19.+'
}
+4
source share
1 answer

Project properties were replaced during the transition to the Gradle system. ProGuard in Gradle: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Running-ProGuard

+3
source

Source: https://habr.com/ru/post/1546507/


All Articles