Commit 36bfe2dc authored by Donald's avatar Donald

retrolambda

parent ed4b2c1f
apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
repositories {
maven { url "http://repo1.maven.org/maven2" }
......@@ -26,6 +27,11 @@ android {
additionalParameters "--no-version-vectors"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
......
......@@ -15,3 +15,16 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
-keep class butterknife.** { *; }
-dontwarn butterknife.internal.**
-keep class **$$ViewBinder { *; }
-keepclasseswithmembernames class * {
@butterknife.* <fields>;
}
-keepclasseswithmembernames class * {
@butterknife.* <methods>;
}
-keepnames class * { @butterknife.Bind *;}
\ No newline at end of file
......@@ -225,6 +225,11 @@ public class ContentProviderHelper {
}
return list;
}
public static void test(Context context) {
getAllMedia(context).stream().filter(Media::isGif);
}
}
......@@ -4,9 +4,11 @@ buildscript {
repositories {
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0-rc1'
classpath 'me.tatarka:gradle-retrolambda:3.6.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment