Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Room Park Android
Project
Project
Details
Activity
Releases
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
Vladislav Bogdashkin
Room Park Android
Commits
7fce221f
Commit
7fce221f
authored
May 15, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix building error when not releaase
parent
b91e8b45
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
build.gradle
app/build.gradle
+12
-6
No files found.
app/build.gradle
View file @
7fce221f
...
...
@@ -18,13 +18,12 @@ apply plugin: 'com.google.firebase.crashlytics'
// Create a variable called keystorePropertiesFile, and initialize it to your
// keystore.properties file, in the rootProject folder.
def
keystorePropertiesFile
=
rootProject
.
file
(
"../roomParkKeystore.properties"
)
// Initialize a new Properties() object called keystoreProperties.
def
keystoreProperties
=
new
Properties
()
// Load your keystore.properties file into the keystoreProperties object.
keystoreProperties
.
load
(
new
FileInputStream
(
keystorePropertiesFile
))
android
{
...
...
@@ -43,13 +42,20 @@ android {
signingConfigs
{
release
{
// You need to specify either an absolute path or include the
// keystore file in the same directory as the build.gradle file.
def
keystorePropertiesFile
=
rootProject
.
file
(
"../roomParkKeystore.properties"
)
if
(
keystorePropertiesFile
.
exists
()
){
keystoreProperties
.
load
(
new
FileInputStream
(
keystorePropertiesFile
))
keyAlias
keystoreProperties
[
'keyAlias'
]
keyPassword
keystoreProperties
[
'keyPassword'
]
storeFile
file
(
keystoreProperties
[
'storeFile'
])
storePassword
keystoreProperties
[
'storePassword'
]
}
// else throw new GradleException('Plesase, provide keystore properties file! ')
// You need to specify either an absolute path or include the
// keystore file in the same directory as the build.gradle file.
}
}
buildTypes
{
...
...
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