mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-17 13:18:30 +00:00
Update setup
This commit is contained in:
parent
683cfee88b
commit
b3f05fd925
@ -56,10 +56,6 @@ android {
|
|||||||
keepDebugSymbols += "**/*.so"
|
keepDebugSymbols += "**/*.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlinOptions {
|
|
||||||
jvmTarget = "11"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setupApp()
|
setupApp()
|
||||||
|
@ -6,9 +6,6 @@ setupCommon()
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "com.topjohnwu.shared"
|
namespace = "com.topjohnwu.shared"
|
||||||
defaultConfig {
|
|
||||||
consumerProguardFiles("proguard-rules.pro")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
21
app/shared/proguard-rules.pro
vendored
21
app/shared/proguard-rules.pro
vendored
@ -1,21 +0,0 @@
|
|||||||
# Add project specific ProGuard rules here.
|
|
||||||
# You can control the set of applied configuration files using the
|
|
||||||
# proguardFiles setting in build.gradle.
|
|
||||||
#
|
|
||||||
# For more details, see
|
|
||||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
||||||
|
|
||||||
# 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 *;
|
|
||||||
#}
|
|
||||||
|
|
||||||
# Uncomment this to preserve the line number information for
|
|
||||||
# debugging stack traces.
|
|
||||||
#-keepattributes SourceFile,LineNumberTable
|
|
||||||
|
|
||||||
# If you keep the line number information, uncomment this to
|
|
||||||
# hide the original source file name.
|
|
||||||
#-renamesourcefileattribute SourceFile
|
|
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
import com.android.build.gradle.BaseExtension
|
import com.android.build.gradle.BaseExtension
|
||||||
import com.android.build.gradle.internal.dsl.BaseAppModuleExtension
|
import com.android.build.gradle.internal.dsl.BaseAppModuleExtension
|
||||||
import org.apache.tools.ant.filters.FixCrLfFilter
|
import org.apache.tools.ant.filters.FixCrLfFilter
|
||||||
@ -9,6 +10,7 @@ import org.gradle.api.tasks.StopExecutionException
|
|||||||
import org.gradle.api.tasks.Sync
|
import org.gradle.api.tasks.Sync
|
||||||
import org.gradle.kotlin.dsl.filter
|
import org.gradle.kotlin.dsl.filter
|
||||||
import org.gradle.kotlin.dsl.named
|
import org.gradle.kotlin.dsl.named
|
||||||
|
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions
|
||||||
import java.io.*
|
import java.io.*
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import java.util.zip.Deflater
|
import java.util.zip.Deflater
|
||||||
@ -22,6 +24,11 @@ private fun Project.androidBase(configure: Action<BaseExtension>) =
|
|||||||
private fun Project.android(configure: Action<BaseAppModuleExtension>) =
|
private fun Project.android(configure: Action<BaseAppModuleExtension>) =
|
||||||
extensions.configure("android", configure)
|
extensions.configure("android", configure)
|
||||||
|
|
||||||
|
private fun Project.kotlinOptions(configure: Action<KotlinJvmOptions>) =
|
||||||
|
extensions.findByName("kotlinOptions")?.let {
|
||||||
|
configure.execute(it as KotlinJvmOptions)
|
||||||
|
}
|
||||||
|
|
||||||
private val Project.android: BaseAppModuleExtension
|
private val Project.android: BaseAppModuleExtension
|
||||||
get() = extensions.getByName("android") as BaseAppModuleExtension
|
get() = extensions.getByName("android") as BaseAppModuleExtension
|
||||||
|
|
||||||
@ -41,6 +48,9 @@ fun Project.setupCommon() {
|
|||||||
targetCompatibility = JavaVersion.VERSION_11
|
targetCompatibility = JavaVersion.VERSION_11
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
kotlinOptions {
|
||||||
|
jvmTarget = "11"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun Project.setupAppCommon() {
|
private fun Project.setupAppCommon() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user