Skip to content

Commit de82049

Browse files
author
Delta
committed
Made the build.gradle search through the manifest file
Prevents the build scripts from complaining about redundant keys which are actually used in the AndroidManifest.xml as titles and such
1 parent 302db1a commit de82049

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

android/BOINC/app/build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,21 @@ def validateTranslations() {
219219
}
220220
}
221221

222+
new File('app/src/main/AndroidManifest.xml').each {
223+
def source = it
224+
mainStringsMap.each {
225+
if (!it.value) {
226+
def string = it
227+
source.eachLine {
228+
if (it.contains(string.key)) {
229+
string.setValue(true)
230+
return
231+
}
232+
}
233+
}
234+
}
235+
}
236+
222237
def mainStringsContainsRedundantKeys = false
223238
mainStringsMap.each {
224239
if (!it.value) {

0 commit comments

Comments
 (0)