Closed jdnichollsc closed 1 year ago
Try this filter
{
"uses": [
"android.app:Activity",
"android.app:Service",
"android.content.pm:PackageManager",
"android.content.pm:ResolveInfo",
"android.content.res:Resources",
"android.content:ComponentCallbacks2",
"android.content:ComponentName",
"android.content:Context",
"android.content:Intent",
"android.content:ServiceConnection",
"android.graphics:Bitmap",
"android.graphics:BitmapFactory",
"android.graphics:BitmapFactory.Options",
"android.graphics:Color",
"android.net:Uri",
"android.nfc:NfcAdapter",
"android.os:BaseBundle",
"android.os:Build",
"android.os:Build.VERSION",
"android.os:Build.VERSION_CODES",
"android.os:Bundle",
"android.os:Parcelable",
"android.provider:Browser",
"android.text:TextUtils",
"android.util:Log",
"android.view:ContextThemeWrapper",
"android.view:KeyEvent.Callback",
"android.view:LayoutInflater.Factory2",
"android.view:View.OnCreateContextMenuListener",
"android.view:Window.Callback",
"androidNative:Array",
"androidx.browser.customtabs:CustomTabsCallback",
"androidx.browser.customtabs:CustomTabsClient",
"androidx.browser.customtabs:CustomTabsIntent",
"androidx.browser.customtabs:CustomTabsIntent.Builder",
"androidx.browser.customtabs:CustomTabsService",
"androidx.browser.customtabs:CustomTabsServiceConnection",
"androidx.browser.customtabs:CustomTabsSession",
"androidx.core.graphics:ColorUtils",
"java.io:Serializable",
"java.lang:Class",
"java.lang:Cloneable",
"java.lang:Long",
"java.lang:Object",
"java.lang:Throwable",
"java.util.regex:Matcher",
"java.util.regex:Pattern",
"java.util:AbstractList",
"java.util:ArrayList",
"java.util:Arrays",
"java.util:Collection",
"java.util:List"
]
}
@jcassidyav it works like a charm, thanks a lot mate! <3
Environment Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
I am the maintainer of the InAppBrowser for NativeScript plugin, and I'm trying to create an instance of a Native class from Android extending the androidx.browser.customtabs.CustomTabsServiceConnection class, but I'm getting this error:
To Reproduce
git clone https://github.com/proyecto26/nativescript-inappbrowser.git
git fetch
git checkout 27fe8f3
cd src
npm i
npm run demo.android
Expected behavior Be able to run the demo project and create an instance of a custom Android Native Class here.
Sample project
Please use this repository/commit hash: https://github.com/proyecto26/nativescript-inappbrowser/tree/27fe8f34d68bf04d74817155663fede52267dfef
Additional context
I'm following this other example: https://github.com/sitefinitysteve/nativescript-auth0/blob/master/src/android/provider/customTabsController.ts#L20 I'm not sure if this error is happening since NativeScript 8 with Android 25. Still supporting Android Support, thanks for your help! <3