Skip to content

A fully functional Android app built entirely with Kotlin and Jetpack Compose

Fix lint crash

Simon Marquise128f9b87730
diff --git a/core/network/lint.xml b/core/network/lint.xml
new file mode 100644
index 000000000..bdb5e1f97
--- /dev/null
+++ b/core/network/lint.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright 2022 The Android Open Source Project
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ https://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+<lint>
+ <!--
+ Lint crashes when it tries to analyse a file without a package name:
+ java.lang.IllegalStateException: () -> kotlin.String at org.jetbrains.kotlin.asJava.classes.KtLightClassForFacadeImpl$Companion.createForFacadeNoCache
+ -->
+ <issue id="LintError">
+ <ignore path="**/JvmUnitTestFakeAssetManager.kt" />
+ </issue>
+</lint>