From c03bb7063978175a8d5fe640aabdd869cdf4c75a Mon Sep 17 00:00:00 2001 From: vmutafov Date: Tue, 28 Jan 2020 18:20:33 +0200 Subject: [PATCH 1/6] Add Android APIs usage list --- .../platforms/android/native-api-usage.json | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 nativescript-core/platforms/android/native-api-usage.json diff --git a/nativescript-core/platforms/android/native-api-usage.json b/nativescript-core/platforms/android/native-api-usage.json new file mode 100644 index 0000000000..86614adcc7 --- /dev/null +++ b/nativescript-core/platforms/android/native-api-usage.json @@ -0,0 +1,22 @@ +{ + "uses": [ + "java.lang:*", + "java.io:*", + "java.nio:*", + "java.util:*", + "com.tns*:*", + "org.nativescript*:*", + "android.content*:*", + "android.app*:*", + "android.os*:*", + "android.view*:*", + "android.net*:*", + "android.graphics*:*", + "android.util*:*", + "android.media*:*", + "android.widget*:*", + "android.animation*:*", + "android.text*:*", + "android.webkit*:*" + ] +} \ No newline at end of file From 671cf7d9121724c1309d1b8a4e7fdbffa145f39b Mon Sep 17 00:00:00 2001 From: vmutafov Date: Thu, 30 Jan 2020 11:14:44 +0200 Subject: [PATCH 2/6] Add androidx packages --- nativescript-core/platforms/android/native-api-usage.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nativescript-core/platforms/android/native-api-usage.json b/nativescript-core/platforms/android/native-api-usage.json index 86614adcc7..98a8a2d286 100644 --- a/nativescript-core/platforms/android/native-api-usage.json +++ b/nativescript-core/platforms/android/native-api-usage.json @@ -17,6 +17,11 @@ "android.widget*:*", "android.animation*:*", "android.text*:*", - "android.webkit*:*" + "android.webkit*:*", + "androidx.appcompat*:*", + "androidx.core*:*", + "androidx.viewpager.widget*:*", + "androidx.fragment*:*", + "androidx.transition*:*" ] } \ No newline at end of file From 7ef6aaa4f15e7df67b3ca331b77ea191b2e2f59b Mon Sep 17 00:00:00 2001 From: vmutafov Date: Thu, 30 Jan 2020 11:39:16 +0200 Subject: [PATCH 3/6] Enable metadata filtering in tests app --- tests/app/App_Resources/Android/native-api-usage.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/app/App_Resources/Android/native-api-usage.json diff --git a/tests/app/App_Resources/Android/native-api-usage.json b/tests/app/App_Resources/Android/native-api-usage.json new file mode 100644 index 0000000000..07ecf56e62 --- /dev/null +++ b/tests/app/App_Resources/Android/native-api-usage.json @@ -0,0 +1,5 @@ +{ + "whitelist-plugins-usages": true, + "whitelist": [], + "blacklist": [] +} \ No newline at end of file From 922b15e38c374fad53bde33f5a266ebb64e00af0 Mon Sep 17 00:00:00 2001 From: vmutafov Date: Thu, 30 Jan 2020 14:44:18 +0200 Subject: [PATCH 4/6] Add java.lang.reflect package to usage list --- nativescript-core/platforms/android/native-api-usage.json | 1 + 1 file changed, 1 insertion(+) diff --git a/nativescript-core/platforms/android/native-api-usage.json b/nativescript-core/platforms/android/native-api-usage.json index 98a8a2d286..a34baaf453 100644 --- a/nativescript-core/platforms/android/native-api-usage.json +++ b/nativescript-core/platforms/android/native-api-usage.json @@ -1,6 +1,7 @@ { "uses": [ "java.lang:*", + "java.lang.reflect:*", "java.io:*", "java.nio:*", "java.util:*", From 1c04e1523fbe3826fd1d07148b4369c83273e919 Mon Sep 17 00:00:00 2001 From: vmutafov Date: Thu, 30 Jan 2020 16:52:28 +0200 Subject: [PATCH 5/6] Add android.provider package to usage list --- .../platforms/android/Untitled-2 | 22 +++++++++++++++++++ .../platforms/android/native-api-usage.json | 1 + 2 files changed, 23 insertions(+) create mode 100644 nativescript-core/platforms/android/Untitled-2 diff --git a/nativescript-core/platforms/android/Untitled-2 b/nativescript-core/platforms/android/Untitled-2 new file mode 100644 index 0000000000..1b7f07bef9 --- /dev/null +++ b/nativescript-core/platforms/android/Untitled-2 @@ -0,0 +1,22 @@ +{ + "uses": [ + java.lang:* +java.io:* +java.nio:* +java.util:* +com.tns*:* +org.nativescript*:* +android.content*:* +android.app*:* +android.os*:* +android.view*:* +android.net*:* +android.graphics*:* +android.util*:* +android.media*:* +android.widget*:* +android.animation*:* +android.text*:* +android.webkit*:* + ] +} \ No newline at end of file diff --git a/nativescript-core/platforms/android/native-api-usage.json b/nativescript-core/platforms/android/native-api-usage.json index a34baaf453..565255a8e5 100644 --- a/nativescript-core/platforms/android/native-api-usage.json +++ b/nativescript-core/platforms/android/native-api-usage.json @@ -17,6 +17,7 @@ "android.media*:*", "android.widget*:*", "android.animation*:*", + "android.provider*:*", "android.text*:*", "android.webkit*:*", "androidx.appcompat*:*", From 5b5c968e78067a168e7d14ba4b8b5bb195bc37df Mon Sep 17 00:00:00 2001 From: vmutafov Date: Thu, 30 Jan 2020 17:10:00 +0200 Subject: [PATCH 6/6] Remove incorrectly commited file --- .../platforms/android/Untitled-2 | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 nativescript-core/platforms/android/Untitled-2 diff --git a/nativescript-core/platforms/android/Untitled-2 b/nativescript-core/platforms/android/Untitled-2 deleted file mode 100644 index 1b7f07bef9..0000000000 --- a/nativescript-core/platforms/android/Untitled-2 +++ /dev/null @@ -1,22 +0,0 @@ -{ - "uses": [ - java.lang:* -java.io:* -java.nio:* -java.util:* -com.tns*:* -org.nativescript*:* -android.content*:* -android.app*:* -android.os*:* -android.view*:* -android.net*:* -android.graphics*:* -android.util*:* -android.media*:* -android.widget*:* -android.animation*:* -android.text*:* -android.webkit*:* - ] -} \ No newline at end of file