Pdf-Viewer icon indicating copy to clipboard operation
Pdf-Viewer copied to clipboard

How to import library locally for contribution?

Open mrgarciamanuel opened this issue 2 years ago • 1 comments

Hi, i'm new in this library and want to use it a projet, but i have some feature in mind that this library does not provide yet.

I just forked the repo and created my own branch, but i don't know how to use it locally in some projects.

From my resources, i think i have to generate .AAR/.JAR file of this library and import it in my project dependecies.

Can u please give some help.

Thank u for your attention.

mrgarciamanuel avatar Feb 06 '24 12:02 mrgarciamanuel

Thank you for creating your first issue. We appreciate your help in making this project better. We will look into it, and get back to you soon.

github-actions[bot] avatar Feb 06 '24 12:02 github-actions[bot]

Sure! To use your forked library locally, follow these steps:

In your library module, generate the .AAR or .JAR file:

Go to Build > Build Bundle(s) / APK(s) > Build APK(s) or Build AAR. Alternatively, use Gradle commands like ./gradlew assembleRelease for AAR. Once generated, locate the .AAR or .JAR file in the build/outputs/ directory.

In your project, create a libs folder inside the app module if it doesn't already exist, and copy the .AAR or .JAR file there.

Add the file as a dependency in your project's build.gradle:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
    // include other dependencies
}

Sync your project with Gradle files.

Now, your project should be able to use the local version of the library.

afreakyelf avatar Feb 27 '24 04:02 afreakyelf

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Mar 29 '24 02:03 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Apr 03 '24 02:04 github-actions[bot]