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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Android libraries e.g. androidx.documentfile or com.android.support:support-v4 or com.android.support:support-v4? #415

Open
ctoabidmaqbool opened this issue Dec 20, 2024 · 1 comment

Comments

@ctoabidmaqbool
Copy link

I am creating custom Attach plugin, but I am not sure how to use Android native libraris while developming the plugins native coding e.g. DalvikPdfViewerService.java.

I am trying to create custom Attach plugin e.g. pdfViewer.

I have added the lib depedency in modules/pdfviewer/build.gradle e.g.

implementation 'com.android.support:support-v4:28.0.0'

but still i can't use imports form this library e.g. import android.support.v4.provider.DocumentFile;

show how can i use native libs e.g. containing .aar files.

in previous javafxmobile-plugin i can simply use

project.afterEvaluate {
    explodeAarDependencies(project.configurations.androidCompile)
    explodeAarDependencies(project.configurations.compile)
}

now how can i use while creating attach plugin or in project which is using attach plugins.

@ctoabidmaqbool
Copy link
Author

I think, only way to copy and past lib's codding directly, which is still not better way to doing things.
like xzing lib is directly copy & past without importing xzing lib.

https://github.com/gluonhq/attach/tree/master/modules/barcode-scan/src/main/native/android/dalvik/zxing

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

No branches or pull requests

1 participant