Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: new android plugin fails when 3rd party library used #7468

Closed
1 of 3 tasks
sdetweil opened this issue May 16, 2024 · 1 comment
Closed
1 of 3 tasks

[Bug]: new android plugin fails when 3rd party library used #7468

sdetweil opened this issue May 16, 2024 · 1 comment
Labels

Comments

@sdetweil
Copy link

sdetweil commented May 16, 2024

Capacitor Version

馃拪 Capacitor Doctor 馃拪

Latest Dependencies:

@capacitor/cli: 6.0.0
@capacitor/core: 6.0.0
@capacitor/android: 6.0.0
@capacitor/ios: 6.0.0

Installed Dependencies:

@capacitor/cli: 4.6.1
@capacitor/core: 6.0.0
@capacitor/android: 6.0.0
@capacitor/ios: 6.0.0

[error] app directory is missing in android

Other API Details

Mac-mini:estimoteplugin4 sam$ npm -v
10.5.2
Mac-mini:estimoteplugin4 sam$ node -v
v20.13.1

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

creating a new android plugin using 3rd party lib
without lib it works as expected
see forum https://forum.ionicframework.com/t/custom-capacitor-plugin-android-fails-to-load-after-adding-3rd-party-lib/241729

once adding 3rd party lib, plugin fails to load.

Expected Behavior

expect it to work
web side works (not for production, just for test of plugin build) (doesn't call library of course)

Project Reproduction

https://github.com/sdetweil/estimoteplugin4

Additional Information

two repos... app (fribble)
https://github.com/sdetweil/fribble
and plugin
https://github.com/sdetweil/estimoteplugin4

the plugin source has two implementations.. one without calling 3rd party lib (as source on github) , works..
uncomment 3rd party imports and 2 lines of code, comment out one line of code, fails..
also change def of my hash

phone is android 14, samsung z-fold5

sample app provided by vendor using sdk
https://github.com/Estimote/Android-Estimote-UWB-SDK

@sdetweil
Copy link
Author

i don't know what the problem was, i changed the lines I told above and suddenly it works.. then permissions, (solved)
and I ported the IOS plugin to the same project and tested, so Iave 1 app source, that build and runs and calls the platform specific plugin, with the same dialect.. and produces the same results..

now to port the app to ionic 6... ... we shall see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant