lunr: true tags: obfuscating obfuscation proguard SDK minifyEnabled proguardFiles title: Obfuscating an application that has integrated the Connecthings' SDK nextStepTitle: obfuscating an application that has integrated the Connecthings' SDK layout: post.jade


What you will learn

This tutorial will teach you how to configure your obfuscation file.

The Connecthings SDK has a proguard.txt file embedded within, it will be automatically merged with the default android's proguard file.

So you only have to focus on the activation of proguard for your application !

Configure your build.gradle for proguard

You can use the following configuration:

android {
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt')
            signingConfig signingConfigs.release
        }
        debug {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt')
        }
    }
}

Note:

You cannot use the "android-proguard-optimize.txt" file provided by the Android SDK because some optimizations are not supported by the ALT BEACONS Library.