diff options
author | Chang Li <licha@google.com> | 2021-04-27 20:49:53 +0000 |
---|---|---|
committer | Chang Li <licha@google.com> | 2021-04-28 09:55:44 +0000 |
commit | 97265d0e193cec31f858b14c8c1d8d2e0f0fda8a (patch) | |
tree | 3f94817a4e3b75f6708bbbd1a4bf10794b481823 /notification | |
parent | 9f1bd5f87b46607553e7b4932684c9cdd32ba869 (diff) | |
download | libtextclassifier-97265d0e193cec31f858b14c8c1d8d2e0f0fda8a.tar.gz |
Export libtextclassifier.
Bug: 186178939
Test: atest -p external/libtextclassifeir
Change-Id: I9d1cde59d0a5ecc9c47aace61e1c585540c9f32c
Diffstat (limited to 'notification')
-rw-r--r-- | notification/Android.bp | 4 | ||||
-rw-r--r-- | notification/AndroidManifest.xml | 4 | ||||
-rw-r--r-- | notification/LibNoManifest_AndroidManifest.xml | 2 | ||||
-rw-r--r-- | notification/lint-baseline.xml | 37 | ||||
-rw-r--r-- | notification/tests/AndroidManifest.xml | 4 |
5 files changed, 7 insertions, 44 deletions
diff --git a/notification/Android.bp b/notification/Android.bp index 277985b..782d5cb 100644 --- a/notification/Android.bp +++ b/notification/Android.bp @@ -28,7 +28,7 @@ android_library { name: "TextClassifierNotificationLib", static_libs: ["TextClassifierNotificationLibNoManifest"], sdk_version: "system_current", - min_sdk_version: "29", + min_sdk_version: "30", manifest: "AndroidManifest.xml", } @@ -41,6 +41,6 @@ android_library { "guava", ], sdk_version: "system_current", - min_sdk_version: "29", + min_sdk_version: "30", manifest: "LibNoManifest_AndroidManifest.xml", } diff --git a/notification/AndroidManifest.xml b/notification/AndroidManifest.xml index 3153d1d..5a98ea3 100644 --- a/notification/AndroidManifest.xml +++ b/notification/AndroidManifest.xml @@ -1,7 +1,7 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.textclassifier.notification"> - <uses-sdk android:minSdkVersion="29" /> + <uses-sdk android:minSdkVersion="30" /> <application> <activity @@ -10,4 +10,4 @@ android:theme="@android:style/Theme.NoDisplay" /> </application> -</manifest>
\ No newline at end of file +</manifest> diff --git a/notification/LibNoManifest_AndroidManifest.xml b/notification/LibNoManifest_AndroidManifest.xml index b9ebf7d..06e8da4 100644 --- a/notification/LibNoManifest_AndroidManifest.xml +++ b/notification/LibNoManifest_AndroidManifest.xml @@ -25,6 +25,6 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.textclassifier.notification"> - <uses-sdk android:minSdkVersion="29" android:targetSdkVersion="29"/> + <uses-sdk android:minSdkVersion="30" android:targetSdkVersion="30"/> </manifest> diff --git a/notification/lint-baseline.xml b/notification/lint-baseline.xml deleted file mode 100644 index f2530d7..0000000 --- a/notification/lint-baseline.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<issues format="5" by="lint 4.1.0" client="cli" variant="all" version="4.1.0"> - - <issue - id="NewApi" - message="Call requires API level R (current min is 29): `android.app.Notification#getContextualActions`" - errorLine1=" boolean hasAppGeneratedContextualActions = !notification.getContextualActions().isEmpty();" - errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> - <location - file="external/libtextclassifier/notification/src/com/android/textclassifier/notification/SmartSuggestionsHelper.java" - line="246" - column="62"/> - </issue> - - <issue - id="NewApi" - message="Call requires API level R (current min is 29): `android.app.Notification#findRemoteInputActionPair`" - errorLine1=" notification.findRemoteInputActionPair(/* requiresFreeform */ true);" - errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~"> - <location - file="external/libtextclassifier/notification/src/com/android/textclassifier/notification/SmartSuggestionsHelper.java" - line="249" - column="22"/> - </issue> - - <issue - id="NewApi" - message="Call requires API level R (current min is 29): `android.app.Notification.MessagingStyle.Message#getMessagesFromBundleArray`" - errorLine1=" Message.getMessagesFromBundleArray(" - errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~"> - <location - file="external/libtextclassifier/notification/src/com/android/textclassifier/notification/SmartSuggestionsHelper.java" - line="440" - column="17"/> - </issue> - -</issues> diff --git a/notification/tests/AndroidManifest.xml b/notification/tests/AndroidManifest.xml index 81308e3..d3da067 100644 --- a/notification/tests/AndroidManifest.xml +++ b/notification/tests/AndroidManifest.xml @@ -2,8 +2,8 @@ package="com.android.textclassifier.notification"> <uses-sdk - android:minSdkVersion="29" - android:targetSdkVersion="29" /> + android:minSdkVersion="30" + android:targetSdkVersion="30" /> <application> <uses-library android:name="android.test.runner"/> |