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
04088b34
Commit
04088b34
authored
Jan 04, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update gradle scripts
parent
3edcd200
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
65 deletions
+32
-65
build.gradle
app/build.gradle
+9
-20
build.gradle
build.gradle
+23
-9
build.gradle
core/build.gradle
+0
-15
build.gradle
native/build.gradle
+0
-2
build.gradle
net/build.gradle
+0
-15
build.gradle
snet/build.gradle
+0
-4
No files found.
app/build.gradle
View file @
04088b34
...
...
@@ -5,13 +5,8 @@ def configPath = project.hasProperty('configPath') ? project.configPath : rootPr
configProps
.
load
(
new
FileInputStream
(
configPath
))
android
{
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
buildToolsVersion
rootProject
.
ext
.
buildToolsVersion
defaultConfig
{
minSdkVersion
17
applicationId
"com.topjohnwu.magisk"
targetSdkVersion
rootProject
.
ext
.
compileSdkVersion
vectorDrawables
.
useSupportLibrary
=
true
}
...
...
@@ -56,14 +51,6 @@ android {
}
}
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
dexOptions
{
preDexLibraries
true
javaMaxHeapSize
"2g"
}
lintOptions
{
disable
'MissingTranslation'
}
...
...
@@ -71,19 +58,21 @@ android {
dependencies
{
implementation
fileTree
(
include:
[
'*.jar'
],
dir:
'libs'
)
implementation
'androidx.core:core:1.0.1'
implementation
project
(
':net'
)
fullImplementation
project
(
':core'
)
fullImplementation
'ru.noties:markwon:2.0.1'
fullImplementation
'com.caverock:androidsvg-aar:1.3'
def
androidXVersion
=
"1.0.0"
implementation
'androidx.core:core:1.0.1'
fullImplementation
'androidx.appcompat:appcompat:1.0.2'
fullImplementation
"androidx.preference:preference:${
rootProject.ext.
androidXVersion}"
fullImplementation
"androidx.recyclerview:recyclerview:${
rootProject.ext.
androidXVersion}"
fullImplementation
"androidx.cardview:cardview:${
rootProject.ext.
androidXVersion}"
fullImplementation
"com.google.android.material:material:${
rootProject.ext.
androidXVersion}"
fullImplementation
"androidx.preference:preference:${androidXVersion}"
fullImplementation
"androidx.recyclerview:recyclerview:${androidXVersion}"
fullImplementation
"androidx.cardview:cardview:${androidXVersion}"
fullImplementation
"com.google.android.material:material:${androidXVersion}"
fullImplementation
'android.arch.work:work-runtime:1.0.0-beta01'
fullImplementation
'androidx.lifecycle:lifecycle-extensions:2.0.0'
fullImplementation
'androidx.room:room-runtime:2.0.0'
fullImplementation
'ru.noties:markwon:2.0.1'
fullImplementation
'com.caverock:androidsvg-aar:1.3'
def
butterKnifeVersion
=
'10.0.0'
if
(
properties
.
containsKey
(
'android.injected.invoked.from.ide'
))
{
...
...
build.gradle
View file @
04088b34
...
...
@@ -15,20 +15,34 @@ buildscript {
}
}
allprojects
{
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
}
subprojects
{
repositories
{
google
()
jcenter
()
maven
{
url
"https://jitpack.io"
}
}
}
afterEvaluate
{
if
(
getPlugins
().
hasPlugin
(
'com.android.library'
)
||
getPlugins
().
hasPlugin
(
'com.android.application'
))
{
android
{
compileSdkVersion
28
buildToolsVersion
"28.0.3"
ext
{
compileSdkVersion
=
28
buildToolsVersion
=
"28.0.3"
androidXVersion
=
"1.0.0"
}
defaultConfig
{
if
(
minSdkVersion
==
null
)
minSdkVersion
17
targetSdkVersion
28
}
task
clean
(
type:
Delete
)
{
delete
rootProject
.
buildDir
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
}
}
}
}
core/build.gradle
View file @
04088b34
apply
plugin:
'com.android.library'
android
{
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
buildToolsVersion
rootProject
.
ext
.
buildToolsVersion
defaultConfig
{
minSdkVersion
17
targetSdkVersion
rootProject
.
ext
.
compileSdkVersion
versionCode
1
versionName
"1.0"
}
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
buildTypes
{
release
{
minifyEnabled
false
...
...
native/build.gradle
View file @
04088b34
apply
plugin:
'com.android.library'
android
{
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
buildToolsVersion
rootProject
.
ext
.
buildToolsVersion
externalNativeBuild
{
ndkBuild
{
...
...
net/build.gradle
View file @
04088b34
apply
plugin:
'com.android.library'
android
{
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
buildToolsVersion
rootProject
.
ext
.
buildToolsVersion
defaultConfig
{
minSdkVersion
16
targetSdkVersion
rootProject
.
ext
.
compileSdkVersion
versionCode
1
versionName
"1.0"
}
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
targetCompatibility
JavaVersion
.
VERSION_1_8
}
buildTypes
{
release
{
minifyEnabled
false
...
...
snet/build.gradle
View file @
04088b34
apply
plugin:
'com.android.application'
android
{
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
buildToolsVersion
rootProject
.
ext
.
buildToolsVersion
defaultConfig
{
applicationId
"com.topjohnwu.snet"
minSdkVersion
14
targetSdkVersion
rootProject
.
ext
.
compileSdkVersion
versionCode
12
versionName
"snet"
}
...
...
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