### Consumer Repository Setup Source: https://github.com/appdevnext/androidchart/wiki/Publish-to-github-packages Configure the repository and dependencies in the consumer project to fetch the library from GitHub Packages. ```kotlin dependencyResolutionManagement { repositories { maven { url = uri("https://maven.pkg.github.com/AppDevNext/AndroidChart") credentials { username = providers.gradleProperty("githubUser").orNull password = providers.gradleProperty("githubToken").orNull } } } } ``` ```kotlin implementation("com.github.AppDevNext.AndroidChart:chartLib:VERSION-SNAPSHOT") implementation("com.github.AppDevNext.AndroidChart:chartLibCompose:VERSION-SNAPSHOT") ``` -------------------------------- ### Set Environment Variables Source: https://github.com/appdevnext/androidchart/wiki/Publish-to-github-packages Define authentication credentials for GitHub Packages in your shell or CI environment. ```bash export GITHUBACTOR="your-github-username"` export GITHUBTOKEN="your-github-personal-access-token" ``` -------------------------------- ### Run Gradle Publish Tasks Source: https://github.com/appdevnext/androidchart/wiki/Publish-to-github-packages Execute the Gradle tasks to publish library modules to the GitHub Packages repository. ```bash ./gradlew :chartLib:publishAllPublicationsToGitHubPackagesRepository ./gradlew :chartLibCompose:publishAllPublicationsToGitHubPackagesRepository ``` ```bash ./gradlew :chartLib:publishAllPublicationsToGitHubPackagesRepository \ :chartLibCompose:publishAllPublicationsToGitHubPackagesRepository ``` -------------------------------- ### Configure Gradle dependencies for AndroidChart Source: https://github.com/appdevnext/androidchart/blob/master/README.md Add the JitPack repository and the required library dependencies to your project's build file. ```gradle.kts repositories { maven { url = uri("https://jitpack.io") } } dependencies { implementation("com.github.AppDevNext.AndroidChart:chartLib:VERSION") // or for compose implementation("com.github.AppDevNext.AndroidChart:chartLibCompose:VERSION") } ``` ```gradle repositories { maven { url 'https://central.sonatype.com/api/v1/publisher/deployments/download/' } } dependencies { implementation 'info.mxtracks:chart:${latestVersion}-SNAPSHOT' } ``` -------------------------------- ### GitHub Actions CI Configuration Source: https://github.com/appdevnext/androidchart/wiki/Publish-to-github-packages Automate the publishing process within a GitHub Actions workflow using the built-in GITHUB_TOKEN. ```yaml - name: Publish to GitHub Packages env: GITHUBACTOR: ${{ github.actor }} GITHUBTOKEN: ${{ secrets.GITHUB_TOKEN }} run: | ./gradlew :chartLib:publishAllPublicationsToGitHubPackagesRepository \ :chartLibCompose:publishAllPublicationsToGitHubPackagesRepository ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.