Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
b3f05fd9
Commit
b3f05fd9
authored
May 27, 2022
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update setup
parent
683cfee8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
28 deletions
+10
-28
build.gradle.kts
app/build.gradle.kts
+0
-4
build.gradle.kts
app/shared/build.gradle.kts
+0
-3
proguard-rules.pro
app/shared/proguard-rules.pro
+0
-21
Setup.kt
buildSrc/src/main/java/Setup.kt
+10
-0
No files found.
app/build.gradle.kts
View file @
b3f05fd9
...
...
@@ -56,10 +56,6 @@ android {
keepDebugSymbols
+=
"**/*.so"
}
}
kotlinOptions
{
jvmTarget
=
"11"
}
}
setupApp
()
...
...
app/shared/build.gradle.kts
View file @
b3f05fd9
...
...
@@ -6,9 +6,6 @@ setupCommon()
android
{
namespace
=
"com.topjohnwu.shared"
defaultConfig
{
consumerProguardFiles
(
"proguard-rules.pro"
)
}
}
dependencies
{
...
...
app/shared/proguard-rules.pro
deleted
100644 → 0
View file @
683cfee8
# 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
buildSrc/src/main/java/Setup.kt
View file @
b3f05fd9
import
com.android.build.gradle.BaseExtension
import
com.android.build.gradle.internal.dsl.BaseAppModuleExtension
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.kotlin.dsl.filter
import
org.gradle.kotlin.dsl.named
import
org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions
import
java.io.*
import
java.util.*
import
java.util.zip.Deflater
...
...
@@ -22,6 +24,11 @@ private fun Project.androidBase(configure: Action<BaseExtension>) =
private
fun
Project
.
android
(
configure
:
Action
<
BaseAppModuleExtension
>)
=
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
get
()
=
extensions
.
getByName
(
"android"
)
as
BaseAppModuleExtension
...
...
@@ -41,6 +48,9 @@ fun Project.setupCommon() {
targetCompatibility
=
JavaVersion
.
VERSION_11
}
}
kotlinOptions
{
jvmTarget
=
"11"
}
}
private
fun
Project
.
setupAppCommon
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment