summaryrefslogtreecommitdiff
path: root/android-lint/src
diff options
context:
space:
mode:
authorScott Pollom <spollom@google.com>2022-02-08 10:55:51 -0800
committerScott Pollom <spollom@google.com>2022-02-09 16:25:59 +0000
commit31483d396ffa942fe3c0e01c982e391708acea83 (patch)
tree989228333908e8349668cf296310232975ec5b7b /android-lint/src
parentddc664bf73ce0dcec5bbc59885699066cfa13320 (diff)
downloadidea-31483d396ffa942fe3c0e01c982e391708acea83.tar.gz
Remove UnpackedNativeCodeDetector
This lint check is obsolete because (1) native lib packaging should now be specified via AGP's DSL, and (2) AGP will inject the recommended value for android:extractNativeLibs into the merged manifest if not specified in the DSL. Bug: 216662628 Test: existing Change-Id: I74d4f71193b5006b29c35e5baa46e463da692dd3
Diffstat (limited to 'android-lint/src')
-rw-r--r--android-lint/src/META-INF/android-lint-plugin.xml1
-rw-r--r--android-lint/src/com/android/tools/idea/lint/inspections/AndroidLintUnpackedNativeCodeInspection.java26
2 files changed, 0 insertions, 27 deletions
diff --git a/android-lint/src/META-INF/android-lint-plugin.xml b/android-lint/src/META-INF/android-lint-plugin.xml
index 92b503e32c4..3d7ca900f19 100644
--- a/android-lint/src/META-INF/android-lint-plugin.xml
+++ b/android-lint/src/META-INF/android-lint-plugin.xml
@@ -309,7 +309,6 @@
<globalInspection hasStaticDescription="true" shortName="AndroidLintUnknownId" displayName="Reference to an unknown id" bundle="messages.AndroidLintBundle" enabledByDefault="true" level="ERROR" implementationClass="com.android.tools.idea.lint.inspections.AndroidLintUnknownIdInspection"/>
<globalInspection hasStaticDescription="true" shortName="AndroidLintUnknownIdInLayout" displayName="Reference to an id that is not in the current layout" bundle="messages.AndroidLintBundle" enabledByDefault="true" level="WARNING" implementationClass="com.android.tools.idea.lint.inspections.AndroidLintUnknownIdInLayoutInspection"/>
<globalInspection hasStaticDescription="true" shortName="AndroidLintUnlocalizedSms" displayName="SMS phone number missing country code" bundle="messages.AndroidLintBundle" enabledByDefault="true" level="WARNING" implementationClass="com.android.tools.idea.lint.inspections.AndroidLintUnlocalizedSmsInspection"/>
- <globalInspection hasStaticDescription="true" shortName="AndroidLintUnpackedNativeCode" displayName="Missing android:extractNativeLibs=false" bundle="messages.AndroidLintBundle" enabledByDefault="false" level="WARNING" implementationClass="com.android.tools.idea.lint.inspections.AndroidLintUnpackedNativeCodeInspection"/>
<globalInspection hasStaticDescription="true" shortName="AndroidLintUnprotectedSMSBroadcastReceiver" displayName="Unprotected SMS BroadcastReceiver" bundle="messages.AndroidLintBundle" enabledByDefault="true" level="WARNING" implementationClass="com.android.tools.idea.lint.inspections.AndroidLintUnprotectedSMSBroadcastReceiverInspection"/>
<globalInspection hasStaticDescription="true" shortName="AndroidLintUnsafeDynamicallyLoadedCode" displayName="load used to dynamically load code" bundle="messages.AndroidLintBundle" enabledByDefault="true" level="WARNING" implementationClass="com.android.tools.idea.lint.inspections.AndroidLintUnsafeDynamicallyLoadedCodeInspection"/>
<globalInspection hasStaticDescription="true" shortName="AndroidLintUnsafeNativeCodeLocation" displayName="Native code outside library directory" bundle="messages.AndroidLintBundle" enabledByDefault="true" level="WARNING" implementationClass="com.android.tools.idea.lint.inspections.AndroidLintUnsafeNativeCodeLocationInspection"/>
diff --git a/android-lint/src/com/android/tools/idea/lint/inspections/AndroidLintUnpackedNativeCodeInspection.java b/android-lint/src/com/android/tools/idea/lint/inspections/AndroidLintUnpackedNativeCodeInspection.java
deleted file mode 100644
index 4610e905feb..00000000000
--- a/android-lint/src/com/android/tools/idea/lint/inspections/AndroidLintUnpackedNativeCodeInspection.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright (C) 2021 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
- *
- * http://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.
- */
-package com.android.tools.idea.lint.inspections;
-
-import com.android.tools.idea.lint.common.AndroidLintInspectionBase;
-import com.android.tools.idea.lint.AndroidLintBundle;
-import com.android.tools.lint.checks.UnpackedNativeCodeDetector;
-
-public class AndroidLintUnpackedNativeCodeInspection extends AndroidLintInspectionBase {
- public AndroidLintUnpackedNativeCodeInspection() {
- super(AndroidLintBundle.message("android.lint.inspections.unpacked.native.code"), UnpackedNativeCodeDetector.ISSUE);
- }
-}