App is still showing in debuggable after making debuggable false in app graddle

37 Views Asked by At

I have two build variants uat and prod. In uat I am making debuggable to true while in prod I am making it to false. But app is still showing in debuggable after making it to false. It's happen only in case of emulator.

following is code in my app graddle file

buildTypes {
        android.variantFilter { variant ->
            if (variant.buildType.name.equals('release') || variant.buildType.name.equals('debug')) {
                variant.setIgnore(true);
            }
        }
        uat {
            debuggable true
            signingConfig signingConfigs.uat
            minifyEnabled false

            //zipAlignEnabled true
            applicationIdSuffix ".uat"
            buildConfigField "String", "URL_ENDPOINT", "\"http://your.development.endpoint.com/\""

        }

        prod {
            debuggable false
            jniDebuggable false
            signingConfig signingConfigs.prod
            renderscriptDebuggable false
            minifyEnabled false
           // zipAlignEnabled true
            applicationIdSuffix ".prod"
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
0

There are 0 best solutions below