Chandresh Kachariya
Chandresh Kachariya

Reputation: 677

How secure Web services in android Studio?

i have search many time to how secure my web service in my android project but always got a single answer set ProGuard in Gradle file.

But i don't have idea about ProGuard.

Please any one can idea about ProGuard so help me and explain with example step by step.

I have already read ProGuard rules on developer site (https://developer.android.com/)

Below code inside my Gradle file

buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

above code through not secure my web services.

Upvotes: 0

Views: 451

Answers (2)

Chandresh Kachariya
Chandresh Kachariya

Reputation: 677

I have find a solution...

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

We can update above code build.gradle file and sync your project

Upvotes: 1

Ashish Rawat
Ashish Rawat

Reputation: 5829

Proguard can help you in minifying and code obfuscation Details here https://developer.android.com/google/play/billing/billing_best_practices.html

However to secure the webservice, you need to implement SSL authentication. You will get great details here, https://developer.android.com/training/articles/security-ssl.html In case you are stuck with any specific problem during implementation then post it here.

Regards AShish

Upvotes: 0

Related Questions