| author | Da Risk <da_risk@geekorum.com> |
| Thu, 09 May 2019 17:53:48 -0700 | |
| changeset 137 | 5464f07a306c |
| parent 40 | c5ae393af55c |
| child 611 | 91b8d76c03cd |
| permissions | -rw-r--r-- |
|
137
5464f07a306c
Update copyright headers for 2019
Da Risk <da_risk@geekorum.com>
parents:
40
diff
changeset
|
1 |
/* |
| 0 | 2 |
* Geekttrss is a RSS feed reader application on the Android Platform. |
3 |
* |
|
|
137
5464f07a306c
Update copyright headers for 2019
Da Risk <da_risk@geekorum.com>
parents:
40
diff
changeset
|
4 |
* Copyright (C) 2017-2019 by Frederic-Charles Barthelery. |
| 0 | 5 |
* |
6 |
* This file is part of Geekttrss. |
|
7 |
* |
|
8 |
* Geekttrss is free software: you can redistribute it and/or modify |
|
9 |
* it under the terms of the GNU General Public License as published by |
|
10 |
* the Free Software Foundation, either version 3 of the License, or |
|
11 |
* (at your option) any later version. |
|
12 |
* |
|
13 |
* Geekttrss is distributed in the hope that it will be useful, |
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
* GNU General Public License for more details. |
|
17 |
* |
|
18 |
* You should have received a copy of the GNU General Public License |
|
19 |
* along with Geekttrss. If not, see <http://www.gnu.org/licenses/>. |
|
20 |
*/ |
|
21 |
package com.geekorum.build |
|
22 |
||
23 |
import com.android.build.gradle.BaseExtension |
|
24 |
import org.gradle.api.Project |
|
25 |
||
26 |
internal fun Project.configureReleaseSigningConfig() {
|
|
27 |
val releaseStoreFile = findProperty("RELEASE_STORE_FILE") as? String ?: ""
|
|
28 |
val releaseStorePassword = findProperty("RELEASE_STORE_PASSWORD") as? String ?: ""
|
|
29 |
val releaseKeyAlias= findProperty("RELEASE_KEY_ALIAS") as? String ?: ""
|
|
30 |
val releaseKeyPassword= findProperty("RELEASE_KEY_PASSWORD") as? String ?: ""
|
|
31 |
||
32 |
extensions.configure<BaseExtension>("android") {
|
|
33 |
signingConfigs {
|
|
|
40
c5ae393af55c
Update gradle version to 5.1-milestone-1
Da Risk <da_risk@geekorum.com>
parents:
0
diff
changeset
|
34 |
register("release") {
|
| 0 | 35 |
storeFile = file(releaseStoreFile) |
36 |
storePassword = releaseStorePassword |
|
37 |
keyAlias = releaseKeyAlias |
|
38 |
keyPassword = releaseKeyPassword |
|
39 |
} |
|
40 |
} |
|
41 |
||
42 |
buildTypes {
|
|
|
40
c5ae393af55c
Update gradle version to 5.1-milestone-1
Da Risk <da_risk@geekorum.com>
parents:
0
diff
changeset
|
43 |
named("release") {
|
|
c5ae393af55c
Update gradle version to 5.1-milestone-1
Da Risk <da_risk@geekorum.com>
parents:
0
diff
changeset
|
44 |
signingConfig = signingConfigs.getByName("release")
|
|
c5ae393af55c
Update gradle version to 5.1-milestone-1
Da Risk <da_risk@geekorum.com>
parents:
0
diff
changeset
|
45 |
} |
| 0 | 46 |
} |
47 |
} |
|
48 |
} |
|
49 |