From 87a72479a64b881d235dd8dbe12a0cd16e8b56b6 Mon Sep 17 00:00:00 2001 From: YoKey Date: Mon, 9 Oct 2017 18:49:10 +0800 Subject: [PATCH] Add proguard --- swipeback/build.gradle | 4 ++-- swipeback/proguard-rules.pro | 20 +++----------------- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/swipeback/build.gradle b/swipeback/build.gradle index 4ee2613..45d5af1 100755 --- a/swipeback/build.gradle +++ b/swipeback/build.gradle @@ -8,8 +8,8 @@ android { defaultConfig { minSdkVersion 9 targetSdkVersion 22 - versionCode 1 - versionName "1.0" + + consumerProguardFiles 'proguard-rules.pro' } } diff --git a/swipeback/proguard-rules.pro b/swipeback/proguard-rules.pro index a528c29..384662c 100644 --- a/swipeback/proguard-rules.pro +++ b/swipeback/proguard-rules.pro @@ -1,17 +1,3 @@ -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in /Users/YoKeyword/Documents/android-sdk-macosx/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the proguardFiles -# directive in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} +-keepclassmembers class android.support.v4.widget.ViewDragHelper { + private ; +}