#1319 Lint Issue: SyntheticAccessor

This commit is contained in:
Sean Mac Gillicuddy 2019-08-13 14:54:33 +01:00
parent 9905ab0d3a
commit 8675e4b54d

View File

@ -126,7 +126,6 @@ dependencies {
// Leak canary // Leak canary
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0-alpha-2' debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.0-alpha-2'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
implementation "android.arch.lifecycle:extensions:1.1.1" implementation "android.arch.lifecycle:extensions:1.1.1"
implementation "io.objectbox:objectbox-kotlin:$objectboxVersion" implementation "io.objectbox:objectbox-kotlin:$objectboxVersion"
@ -152,9 +151,9 @@ if (custom.listFiles()) {
def fileName = file.getName() def fileName = file.getName()
if (fileName.startsWith(".") || if (fileName.startsWith(".") ||
fileName.contains("test") || fileName.contains("test") ||
fileName == "main" || fileName == "main" ||
fileName.contains("Test")) { fileName.contains("Test")) {
return return
} }
map.put(fileName, file.getAbsolutePath()) map.put(fileName, file.getAbsolutePath())
@ -170,8 +169,8 @@ tasks.withType(Test) {
} }
def branchName = System.getenv('TRAVIS_PULL_REQUEST') ?: "false" == "false" def branchName = System.getenv('TRAVIS_PULL_REQUEST') ?: "false" == "false"
? System.getenv('TRAVIS_BRANCH') ?: "local" ? System.getenv('TRAVIS_BRANCH') ?: "local"
: System.getenv('TRAVIS_PULL_REQUEST_BRANCH') : System.getenv('TRAVIS_PULL_REQUEST_BRANCH')
def buildNumber = System.getenv('TRAVIS_BUILD_NUMBER') ?: "dev" def buildNumber = System.getenv('TRAVIS_BUILD_NUMBER') ?: "dev"
ext { ext {
@ -198,9 +197,9 @@ private String generateVersionName() {
private Integer generateVersionCode() { private Integer generateVersionCode() {
20 * 10000 + 20 * 10000 +
(ext.versionMajor * 10000) + (ext.versionMajor * 10000) +
(ext.versionMinor * 100) + (ext.versionMinor * 100) +
(ext.versionPatch) (ext.versionPatch)
} }
android { android {
@ -228,12 +227,15 @@ android {
abortOnError true abortOnError true
checkAllWarnings true checkAllWarnings true
warningsAsErrors true warningsAsErrors true
//TODO stop ignoring
ignore 'MissingTranslation', ignore 'SyntheticAccessor',
'CheckResult', //TODO stop ignoring below this
'LabelFor', 'MissingTranslation',
'DuplicateStrings', 'CheckResult',
'LogConditional' 'LabelFor',
'DuplicateStrings',
'LogConditional'
warning 'UnknownNullness', warning 'UnknownNullness',
'SelectableText', 'SelectableText',
'IconDensities' 'IconDensities'
@ -437,9 +439,9 @@ android {
def baseAbiVersionCode = abiCodes.get(output.getFilter(OutputFile.ABI)) ?: 0 def baseAbiVersionCode = abiCodes.get(output.getFilter(OutputFile.ABI)) ?: 0
def baseDensityVersionCode = densityCodes.get(output.getFilter(OutputFile.DENSITY)) ?: 1 def baseDensityVersionCode = densityCodes.get(output.getFilter(OutputFile.DENSITY)) ?: 1
output.versionCodeOverride = output.versionCodeOverride =
(baseDensityVersionCode * 10000000) + (baseDensityVersionCode * 10000000) +
(baseAbiVersionCode * 1000000) + (baseAbiVersionCode * 1000000) +
variant.versionCode variant.versionCode
} }
} }
} }
@ -452,7 +454,7 @@ play {
resolutionStrategy = "fail" resolutionStrategy = "fail"
} }
ktlint{ ktlint {
android = true android = true
} }
@ -474,7 +476,7 @@ class TestDroidUpload extends TestServer {
System.out.println(id) System.out.println(id)
try { try {
delegate.postResource(createUri(selfURI, "/files/" + id + "/share"), delegate.postResource(createUri(selfURI, "/files/" + id + "/share"),
[accessGroupId: accessGroup], APIProject.class) [accessGroupId: accessGroup], APIProject.class)
} catch (Exception e) { } catch (Exception e) {
System.out.println(e.getLocalizedMessage()) System.out.println(e.getLocalizedMessage())
} }
@ -488,7 +490,7 @@ class TestDroidUpload extends TestServer {
user.shareFile(testedId, accessGroup) user.shareFile(testedId, accessGroup)
new URL(RUNNER_GATEWAY + "?apk=" + testedId + "&test=" + testId + "&buildno=" + buildNumber). new URL(RUNNER_GATEWAY + "?apk=" + testedId + "&test=" + testId + "&buildno=" + buildNumber).
getText() getText()
} }
@Override @Override