File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ if (System.env.JITPACK) {
50
50
project. ext. set(' version_name' , System . env. VERSION )
51
51
}
52
52
53
+ /* * Build Configurations */
54
+ project. ext. set(' archiveBuildTypes' , [' debug' , ' release' ])
55
+
53
56
/* * Keystore Settings, loaded from keystore.properties */
54
57
if (rootProject. file(' keystore.properties' ). exists()) {
55
58
def keystore = new Properties ()
@@ -62,20 +65,6 @@ if (rootProject.file('keystore.properties').exists()) {
62
65
project. ext. set(' releaseKeyPass' , keystore[' releaseKeyPass' ])
63
66
}
64
67
65
- /* * Build Configurations */
66
- project. ext. set(' archiveBuildTypes' , [' debug' , ' release' ])
67
-
68
- /* * Load API access-token from file `token.properties` */
69
- if (rootProject. file(' token.properties' ). exists()) {
70
- def apikeys = new Properties ()
71
- apikeys. load(new FileInputStream (rootProject. file(' token.properties' )))
72
- project. ext. set(' accessToken' , apikeys[' accessToken' ])
73
- } else {
74
- println " *** File `token.properties` is missing; the GitHub API may be rate-limited."
75
- println " *** The personal access token needs to be defined with an EditTextPreference."
76
- project. ext. set(' accessToken' , " " )
77
- }
78
-
79
68
/* * Modules */
80
69
allprojects {
81
70
Original file line number Diff line number Diff line change @@ -4,6 +4,17 @@ plugins {
4
4
id " androidx.navigation.safeargs"
5
5
}
6
6
7
+ /* * Load API access-token from file `token.properties` */
8
+ if (rootProject. file(' token.properties' ). exists()) {
9
+ def apikeys = new Properties ()
10
+ apikeys. load(new FileInputStream (rootProject. file(' token.properties' )))
11
+ project. ext. set(' accessToken' , apikeys[' accessToken' ])
12
+ } else {
13
+ println " *** File `token.properties` is missing; the GitHub API may be rate-limited."
14
+ println " *** The personal access token needs to be defined with an EditTextPreference."
15
+ project. ext. set(' accessToken' , " " )
16
+ }
17
+
7
18
base {
8
19
archivesName = ' github_client_' + rootProject. ext. get(' versionName' )
9
20
}
You can’t perform that action at this time.
0 commit comments