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
f6a2b1c8
Commit
f6a2b1c8
authored
Jul 02, 2020
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor gradle script changes
parent
c2e66220
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
build.gradle
build.gradle
+14
-11
No files found.
build.gradle
View file @
f6a2b1c8
...
...
@@ -2,12 +2,6 @@ import java.nio.file.Paths
// Top-level build file where you can add configuration options common to all sub-projects/modules.
def
props
=
new
Properties
()
def
configPath
=
project
.
hasProperty
(
'configPath'
)
?
new
File
(
project
.
configPath
)
:
rootProject
.
file
(
'config.prop'
)
if
(
configPath
.
exists
())
configPath
.
withInputStream
{
is
->
props
.
load
(
is
)
}
buildscript
{
ext
.
vKotlin
=
'1.3.72'
ext
.
vNav
=
'2.3.0'
...
...
@@ -33,6 +27,13 @@ task clean(type: Delete) {
delete
rootProject
.
buildDir
}
String
.
metaClass
.
toFile
=
{
new
File
(
this
)
}
def
configFile
=
rootProject
.
findProperty
(
'configPath'
)?.
toFile
()
?:
rootProject
.
file
(
'config.prop'
)
if
(!
configFile
.
exists
())
throw
new
GradleException
(
"Please setup config.prop"
)
def
props
=
new
Properties
()
configFile
.
withInputStream
{
is
->
props
.
load
(
is
)
}
ext
.
props
=
props
subprojects
{
...
...
@@ -98,17 +99,19 @@ subprojects {
android
{
signingConfigs
{
config
{
storeFile
new
File
(
props
[
'keyStore'
])
storePassword
props
[
'keyStorePass'
]
keyAlias
props
[
'keyAlias'
]
keyPassword
props
[
'keyPass'
]
if
(
props
.
containsKey
(
'keyStore'
))
{
storeFile
new
File
(
props
[
'keyStore'
])
storePassword
props
[
'keyStorePass'
]
keyAlias
props
[
'keyAlias'
]
keyPassword
props
[
'keyPass'
]
}
}
}
buildTypes
{
debug
{
// If keystore exists, sign the APK with custom signature
if
(
signingConfigs
.
config
.
storeFile
.
exists
())
if
(
signingConfigs
.
config
.
storeFile
?
.
exists
())
signingConfig
signingConfigs
.
config
}
release
{
...
...
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