From f031f6f2cac908e72fd05256f4d7bf35c5ff06b5 Mon Sep 17 00:00:00 2001 From: Vladimir Mutafov Date: Thu, 30 Jan 2020 20:24:32 +0200 Subject: [PATCH] feat: Add Android APIs usage list (#8286) * Add Android APIs usage list * Add androidx packages * Enable metadata filtering in tests app * Add java.lang.reflect package to usage list * Add android.provider package to usage list * Remove incorrectly commited file --- .../platforms/android/native-api-usage.json | 29 +++++++++++++++++++ .../Android/native-api-usage.json | 5 ++++ 2 files changed, 34 insertions(+) create mode 100644 nativescript-core/platforms/android/native-api-usage.json create mode 100644 tests/app/App_Resources/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..565255a8e5 --- /dev/null +++ b/nativescript-core/platforms/android/native-api-usage.json @@ -0,0 +1,29 @@ +{ + "uses": [ + "java.lang:*", + "java.lang.reflect:*", + "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.provider*:*", + "android.text*:*", + "android.webkit*:*", + "androidx.appcompat*:*", + "androidx.core*:*", + "androidx.viewpager.widget*:*", + "androidx.fragment*:*", + "androidx.transition*:*" + ] +} \ No newline at end of file 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