Screw that Jack compiler, use retrolambda

This commit is contained in:
topjohnwu 2017-03-31 16:04:12 +08:00
parent 0a0ad9a184
commit 411b600e14
4 changed files with 16 additions and 8 deletions

View File

@ -1,4 +1,2 @@
# Magisk Manager # Magisk Manager
The project should be built with Android Studio version 2.2.0+ You need to install CMake and NDK to build the zipadjust library for zip preprocessing
I use Java 8 features, which requires Jack compiler and it's only available in 2.2.0+
Also, you need to install CMake and NDK to build the zipadjust library for zip preprocessing

View File

@ -1,4 +1,5 @@
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
android { android {
compileSdkVersion 25 compileSdkVersion 25
@ -10,10 +11,6 @@ android {
targetSdkVersion 25 targetSdkVersion 25
versionCode 28 versionCode 28
versionName "4.3.1" versionName "4.3.1"
jackOptions {
enabled true
jackInProcess true
}
ndk { ndk {
moduleName 'zipadjust' moduleName 'zipadjust'
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a' abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
@ -38,6 +35,14 @@ android {
path 'src/main/jni/CMakeLists.txt' path 'src/main/jni/CMakeLists.txt'
} }
} }
lintOptions {
disable 'MissingTranslation'
}
retrolambda {
javaVersion JavaVersion.VERSION_1_7
defaultMethods false
incremental true
}
} }
repositories { repositories {
jcenter() jcenter()

View File

@ -22,4 +22,8 @@
-keep interface android.support.v7.** { *; } -keep interface android.support.v7.** { *; }
# SpongyCastle # SpongyCastle
-keep class org.spongycastle.** {*;} -keep class org.spongycastle.** { *; }
-dontwarn javax.naming.**
# retrolambda
-dontwarn java.lang.invoke.*

View File

@ -7,6 +7,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:2.3.0' classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'me.tatarka:gradle-retrolambda:3.6.0'
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files