@@ -6,11 +6,11 @@ plugins {
6
6
}
7
7
8
8
/* * Load API access-token from file `token.properties` */
9
- if (rootProject. file(' token.properties' ). exists()) {
10
- def apikeys = new Properties ( )
11
- def fis = new FileInputStream (rootProject . file( ' token.properties ' ) )
12
- apikeys . load(fis)
13
- project. ext. set(' accessToken' , apikeys [' accessToken' ])
9
+ if (rootProject. file(" token.properties" ). exists()) {
10
+ def fis = new FileInputStream (rootProject . file( " token.properties " ) )
11
+ def token = new Properties ( )
12
+ token . load(fis)
13
+ project. ext. set(" accessToken" , token [' accessToken' ])
14
14
fis. close()
15
15
} else {
16
16
println " *** File `token.properties` is missing; the GitHub API may be rate-limited."
@@ -28,11 +28,11 @@ android {
28
28
buildToolsVersion = libs. versions. android. build. tools. get()
29
29
compileSdk = Integer . parseInt(libs. versions. android. compile. sdk. get())
30
30
defaultConfig {
31
+ applicationId = " io.syslogic.github"
31
32
minSdk = Integer . parseInt(libs. versions. android. min. sdk. get())
32
33
targetSdk = Integer . parseInt(libs. versions. android. target. sdk. get())
33
34
versionCode = Integer . parseInt(libs. versions. app. version. code. get())
34
35
versionName = libs. versions. app. version. name. get()
35
- applicationId = " io.syslogic.github"
36
36
// noinspection GroovyConstructorNamedArguments
37
37
manifestPlaceholders = [ accessToken : " " ]
38
38
testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
@@ -63,18 +63,18 @@ android {
63
63
signingConfigs {
64
64
debug {
65
65
storeFile new File (" ${ System.properties['user.home']} /.android/debug.keystore" )
66
- if (rootProject. file(' keystore.properties' ). exists()) {
67
- storePassword rootProject. ext. get(' debugKeystorePass' )
68
- keyAlias rootProject. ext. get(' debugKeyAlias' )
69
- keyPassword rootProject. ext. get(' debugKeyPass' )
66
+ if (rootProject. file(" keystore.properties" ). exists()) {
67
+ storePassword rootProject. ext. get(" debugKeystorePass" )
68
+ keyAlias rootProject. ext. get(" debugKeyAlias" )
69
+ keyPassword rootProject. ext. get(" debugKeyPass" )
70
70
}
71
71
}
72
72
release {
73
73
storeFile new File (" ${ System.properties['user.home']} /.android/release.keystore" )
74
- if (rootProject. file(' keystore.properties' ). exists()) {
75
- storePassword rootProject. ext. get(' releaseKeystorePass' )
76
- keyAlias rootProject. ext. get(' releaseKeyAlias' )
77
- keyPassword rootProject. ext. get(' releaseKeyPass' )
74
+ if (rootProject. file(" keystore.properties" ). exists()) {
75
+ storePassword rootProject. ext. get(" releaseKeystorePass" )
76
+ keyAlias rootProject. ext. get(" releaseKeyAlias" )
77
+ keyPassword rootProject. ext. get(" releaseKeyPass" )
78
78
}
79
79
}
80
80
}
@@ -112,7 +112,7 @@ android {
112
112
}
113
113
114
114
lint {
115
- lintConfig = project. file(' lint.xml' )
115
+ lintConfig = project. file(" lint.xml" )
116
116
checkAllWarnings = true
117
117
warningsAsErrors = true
118
118
abortOnError = false
@@ -122,79 +122,79 @@ android {
122
122
123
123
dependencies {
124
124
125
- api project(path : ' :library' )
125
+ api( project(path : " :library" ) )
126
126
127
127
// Material Design Components
128
- implementation libs. material. design
128
+ implementation( libs. material. design)
129
129
130
130
// Annotations
131
- implementation libs. androidx. annotation
131
+ implementation( libs. androidx. annotation)
132
132
133
133
// Flexbox Layout
134
- implementation libs. flexbox
134
+ implementation( libs. flexbox)
135
135
136
136
// https://developer.android.com/jetpack/androidx/
137
- implementation libs. androidx. appcompat
138
- implementation libs. androidx. splashscreen
139
- implementation libs. androidx. recyclerview
140
- implementation libs. androidx. preference
141
- implementation libs. androidx. cardview
137
+ implementation( libs. androidx. appcompat)
138
+ implementation( libs. androidx. splashscreen)
139
+ implementation( libs. androidx. recyclerview)
140
+ implementation( libs. androidx. preference)
141
+ implementation( libs. androidx. cardview)
142
142
143
143
// Navigation
144
- androidTestImplementation libs. androidx. navigation. testing
145
- implementation libs. androidx. navigation. fragment
144
+ androidTestImplementation( libs. androidx. navigation. testing)
145
+ implementation( libs. androidx. navigation. fragment)
146
146
147
147
// Fragment
148
- androidTestImplementation libs. androidx. fragment. testing
149
- implementation libs. androidx. fragment
148
+ androidTestImplementation( libs. androidx. fragment. testing)
149
+ implementation( libs. androidx. fragment)
150
150
151
151
// Room Runtime
152
- annotationProcessor libs. androidx. room. compiler
153
- testImplementation libs. androidx. room. testing
154
- implementation libs. androidx. room. runtime
152
+ annotationProcessor( libs. androidx. room. compiler)
153
+ testImplementation( libs. androidx. room. testing)
154
+ implementation( libs. androidx. room. runtime)
155
155
156
156
// Retrofit2
157
- implementation libs. gson
158
- implementation libs. retrofit
159
- implementation (libs. retrofit. gson. converter) {
157
+ implementation( libs. gson)
158
+ implementation( libs. retrofit)
159
+ implementation(libs. retrofit. gson. converter) {
160
160
exclude group : " com.google.code.gson" , module : " gson"
161
161
}
162
162
163
163
// https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit
164
- implementation libs. jgit
164
+ implementation( libs. jgit)
165
165
166
166
// https://mvnrepository.com/artifact/org.slf4j/slf4j-simple
167
- // api "org.slf4j:slf4j-nop:$slf4j_version"
168
- api libs. slf4j
167
+ // api( "org.slf4j:slf4j-nop:$slf4j_version")
168
+ api( libs. slf4j)
169
169
170
170
// jUnit4
171
- testImplementation libs. junit
171
+ testImplementation( libs. junit)
172
172
173
173
// Required for connected tests.
174
174
// https://mvnrepository.com/artifact/androidx.test/monitor
175
- debugImplementation libs. androidx. test. monitor
175
+ debugImplementation( libs. androidx. test. monitor)
176
176
177
177
// https://mvnrepository.com/artifact/androidx.test.ext
178
- androidTestImplementation libs. androidx. test. junit
178
+ androidTestImplementation( libs. androidx. test. junit)
179
179
180
180
// https://mvnrepository.com/artifact/androidx.test
181
181
// https://developer.android.com/jetpack/androidx/releases/test
182
- androidTestImplementation libs. androidx. test. core
183
- androidTestImplementation libs. androidx. test. runner
184
- androidTestImplementation libs. androidx. test. rules
182
+ androidTestImplementation( libs. androidx. test. core)
183
+ androidTestImplementation( libs. androidx. test. runner)
184
+ androidTestImplementation( libs. androidx. test. rules)
185
185
186
186
// https://mvnrepository.com/artifact/androidx.test.uiautomator/uiautomator
187
- androidTestImplementation libs. androidx. test. uiautomator
187
+ androidTestImplementation( libs. androidx. test. uiautomator)
188
188
189
189
// Espresso
190
- androidTestImplementation libs. androidx. test. espresso. core
191
- androidTestImplementation libs. androidx. test. espresso. web
192
- // androidTestImplementation "androidx.test.espresso:espresso-contrib:$androidx_test_espresso_version"
193
- // androidTestImplementation "androidx.test.espresso:espresso-intents:$androidx_test_espresso_version"
194
- // androidTestImplementation "androidx.test.espresso:espresso-accessibility:$androidx_test_espresso_version"
195
- // androidTestImplementation "androidx.test.espresso.idling:idling-concurrent:$espresso_version"
190
+ androidTestImplementation( libs. androidx. test. espresso. core)
191
+ androidTestImplementation( libs. androidx. test. espresso. web)
192
+ // androidTestImplementation( "androidx.test.espresso:espresso-contrib:$androidx_test_espresso_version")
193
+ // androidTestImplementation( "androidx.test.espresso:espresso-intents:$androidx_test_espresso_version")
194
+ // androidTestImplementation( "androidx.test.espresso:espresso-accessibility:$androidx_test_espresso_version")
195
+ // androidTestImplementation( "androidx.test.espresso.idling:idling-concurrent:$espresso_version")
196
196
197
197
// The following dependency can be either "implementation" or "androidTestImplementation",
198
198
// depending on whether you want it to appear on your APK's compile classpath or the test APK classpath.
199
- // androidTestImplementation "androidx.test.espresso:espresso-idling-resource:$androidx_test_espresso_version"
199
+ // androidTestImplementation( "androidx.test.espresso:espresso-idling-resource:$androidx_test_espresso_version")
200
200
}
0 commit comments