Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
QuasselDroid-ng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
QuasselDroid-ng
Commits
3d3d4e3a
Verified
Commit
3d3d4e3a
authored
6 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Properly handle situations where no valid signing config is available
parent
0ae64f88
Branches
Branches containing commit
Tags
v1.0.3
Tags containing commit
No related merge requests found
Pipeline
#303
passed
6 years ago
Stage: build
Stage: deploy-local
Stage: deploy-beta
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/build.gradle.kts
+5
-6
5 additions, 6 deletions
app/build.gradle.kts
buildSrc/src/main/kotlin/ProjectHelper.kt
+20
-0
20 additions, 0 deletions
buildSrc/src/main/kotlin/ProjectHelper.kt
with
25 additions
and
6 deletions
app/build.gradle.kts
+
5
−
6
View file @
3d3d4e3a
...
@@ -37,13 +37,12 @@ android {
...
@@ -37,13 +37,12 @@ android {
compileSdkVersion
(
28
)
compileSdkVersion
(
28
)
signingConfigs
{
signingConfigs
{
val
signing
=
project
.
rootProject
.
properties
(
"signing.properties"
)
SigningData
.
of
(
project
.
rootProject
.
properties
(
"signing.properties"
))
?.
let
{
if
(
signing
!=
null
)
{
create
(
"default"
)
{
create
(
"default"
)
{
storeFile
=
file
(
signing
.
getProperty
(
"
storeFile
"
)
)
storeFile
=
file
(
it
.
storeFile
)
storePassword
=
signing
.
getProperty
(
"
storePassword
"
)
storePassword
=
it
.
storePassword
keyAlias
=
signing
.
getProperty
(
"
keyAlias
"
)
keyAlias
=
it
.
keyAlias
keyPassword
=
signing
.
getProperty
(
"
keyPassword
"
)
keyPassword
=
it
.
keyPassword
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
buildSrc/src/main/kotlin/ProjectHelper.kt
+
20
−
0
View file @
3d3d4e3a
...
@@ -41,3 +41,23 @@ fun Project.properties(fileName: String): Properties? {
...
@@ -41,3 +41,23 @@ fun Project.properties(fileName: String): Properties? {
props
.
load
(
file
.
inputStream
())
props
.
load
(
file
.
inputStream
())
return
props
return
props
}
}
data class
SigningData
(
val
storeFile
:
String
,
val
storePassword
:
String
,
val
keyAlias
:
String
,
val
keyPassword
:
String
)
{
companion
object
{
fun
of
(
properties
:
Properties
?):
SigningData
?
{
if
(
properties
==
null
)
return
null
val
storeFile
=
properties
.
getProperty
(
"storeFile"
)
?:
return
null
val
storePassword
=
properties
.
getProperty
(
"storePassword"
)
?:
return
null
val
keyAlias
=
properties
.
getProperty
(
"keyAlias"
)
?:
return
null
val
keyPassword
=
properties
.
getProperty
(
"keyPassword"
)
?:
return
null
return
SigningData
(
storeFile
,
storePassword
,
keyAlias
,
keyPassword
)
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment