Witam.
Chciałbym użyć w moim dość dużym projekcie ProGuarda, głównie ze względów bezpieczeństwa niż redukowania rozmiarów.
Nie wiem jak napisać reguły aby przeszło mi przez gradle i przy okazji apka się nie sypała, jest na to jakiś szybki sposób ?
Używam
shrinkResources true
minifyEnabled true
Zależności:
compile project(path: ':backend', configuration: 'android-endpoints')
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.google.android.gms:play-services-analytics:8.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'com.android.support:support-v4:23.2.0'
compile 'com.android.support:appcompat-v7:23.2.0'
compile 'com.android.support:design:23.2.0'
compile 'com.android.support:cardview-v7:23.2.0'
compile 'com.android.support:recyclerview-v7:23.2.0'
compile 'com.android.support:preference-v7:23.2.0'
compile 'org.greenrobot:eventbus:3.0.0'
compile 'com.google.code.gson:gson:2.4'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.github.lecho:hellocharts-android:v1.5.8'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.easing:library:1.0.1@aar'
compile 'com.daimajia.androidanimations:library:1.1.3@aar'
compile 'com.github.ShogoMizumoto:ZDepthShadowLayout:1.0.4'
compile 'com.github.deano2390:MaterialShowcaseView:1.0.5'
compile 'com.github.paolorotolo:appintro:3.4.0'
compile 'me.grantland:autofittextview:0.2.1'
compile 'com.getbase:floatingactionbutton:1.10.1'
compile 'com.wang.avi:library:1.0.4'
compile 'org.solovyev.android.views:linear-layout-manager:0.5@aar'
compile 'com.hkm.slidingmenulib:libmenu:0.4.7'
compile 'com.github.jorgecastilloprz:fabprogresscircle:1.01@aar'
compile 'com.minimize.library:seekbar-compat:0.2.5'
compile project(path: ':lvl')
Aktualnie mój proguard_rules jest składanką tego co znalazłem w dokumentacjach tych bibliotek (nie wszystkie miały te reguły).