### Using Icons in Compose - Kotlin Source: https://github.com/walter-juan/compose-icon-collections/blob/main/README.md Demonstrates how to use the icons from the library in Compose code. It shows examples of using icons from Octicons and Tabler icon sets. The contentDescription parameter should be set appropriately for accessibility. ```Kotlin Icon(imageVector = Octicons.Home16, contentDescription = null) Icon(imageVector = Tabler.Filled.HospitalCircle, contentDescription = null) Icon(imageVector = Tabler.Outline.HospitalCircle, contentDescription = null) ``` -------------------------------- ### Testing Icons: Adding AllIcons to App.kt (Kotlin) Source: https://github.com/walter-juan/compose-icon-collections/blob/main/README.md To test the icons, add `AllIcons` to the `icons` list in the `App.kt` file of the sample app. This will include all icons in the sample app's display. ```kotlin Add `AllIcons` to the `icons` list in the [App.kt](sample/composeApp/src/commonMain/kotlin/com/woowla/compose/icon/collections/sample/App.kt) file ``` -------------------------------- ### Testing Icons: Gradle Dependency Replacement (Kotlin) Source: https://github.com/walter-juan/compose-icon-collections/blob/main/README.md To test icon changes, replace the existing icon dependency in the `build.gradle.kts` file of the sample app with the icon dependency you want to test. ```kotlin Replace the icons dependency you would like to test in [build.gradle.kts](sample/composeApp/build.gradle.kts) file ``` -------------------------------- ### Downloading All Icons with Gradle Source: https://github.com/walter-juan/compose-icon-collections/blob/main/README.md This Gradle task downloads all icons for all modules in the project. It's recommended not to use the `-Pgitcommit` flag with this task. It requires Gradle to be set up and configured for the project. ```Gradle ./gradlew download-icons ``` -------------------------------- ### Adding a New Module (Gradle) Source: https://github.com/walter-juan/compose-icon-collections/blob/main/README.md To add a new icon module, copy the `build.gradle` file from an existing module (either `octicons` for GitHub releases or `boxicons` for main branch updates). Update the version, `download-icons` task, and other necessary configurations within the `build.gradle` file. ```gradle Create a new module by copying the `build.gradle` from an existing module. Copy `octicons` if the icon pack uses GitHub releases or `boxicons` if it uses the main branch. Update everything needed like the version, `download-icons` task, and others from the `build.gradle` ``` -------------------------------- ### Downloading Icons with Gradle Source: https://github.com/walter-juan/compose-icon-collections/blob/main/README.md This Gradle task downloads icons for a specific module. The `-Pgitcommit` flag can be used to commit the changes after downloading. It requires Gradle to be set up and configured for the project. ```Gradle ./gradlew :download-icons ``` -------------------------------- ### Downloading Icons with Git Commit Flag Source: https://github.com/walter-juan/compose-icon-collections/blob/main/README.md This Gradle task downloads icons for a specific module and includes the `-Pgitcommit` flag to commit the changes after downloading. It requires Gradle to be set up and configured for the project, along with Git for version control. ```Gradle ./gradlew :download-icons -Pgitcommit ``` -------------------------------- ### Updating Deploy Workflow (YAML) Source: https://github.com/walter-juan/compose-icon-collections/blob/main/README.md When adding a new icon pack, update the `deploy.yml` workflow by adding a new input option. This ensures that the deployment process includes the new icon pack. ```yaml Add new input option in [deploy.yml](.github/workflows/publish.yml) ``` -------------------------------- ### Adding mavenCentral Repository - Kotlin Source: https://github.com/walter-juan/compose-icon-collections/blob/main/README.md Configures the project to use Maven Central as a repository for dependencies. This is a prerequisite for including the Compose icon collections library. ```Kotlin repositories { mavenCentral() } ``` -------------------------------- ### Updating Icons Workflow (YAML) Source: https://github.com/walter-juan/compose-icon-collections/blob/main/README.md If the new icon pack uses GitHub releases, add the new task to the `update-icons.yml` workflow. This enables automated updates for the new icon pack. ```yaml If the icon pack uses GitHub releases, add the new task in [update-icons.yml](.github/workflows/update-icons.yml) ``` -------------------------------- ### Updating Icons from Main Branch (Gradle) Source: https://github.com/walter-juan/compose-icon-collections/blob/main/README.md This task downloads icons directly from the main branch. After running the task, the version in the `build.gradle` file must be manually updated, and the changes committed. This is used when the icon pack doesn't use GitHub releases. ```gradle Icon pack using the main branch: Run the icon download task, manually update the version in the `build.gradle` file, and commit the changes. ``` -------------------------------- ### Updating Icons with Git Commit Flag (Gradle) Source: https://github.com/walter-juan/compose-icon-collections/blob/main/README.md This task downloads icons from a GitHub release and uses the `-Pgitcommit` flag to automatically commit the changes to the repository. This is applicable for icon packs that utilize GitHub releases for versioning. ```gradle Icon pack using GitHub releases: Run the icon download task, use the `-Pgitcommit` flag to commit the changes. ``` -------------------------------- ### MIT License Text Source: https://github.com/walter-juan/compose-icon-collections/blob/main/docs/fontawesome/fontawesome-license.txt This snippet contains the full text of the MIT license applicable to non-font and non-icon files in the Font Awesome Free download. It outlines the permissions and limitations for using, copying, modifying, and distributing the software. ```plaintext Copyright 2024 Fonticons, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` -------------------------------- ### Adding Icon Collections Dependency - Kotlin Source: https://github.com/walter-juan/compose-icon-collections/blob/main/README.md Adds the Compose icon collections library as a dependency to the project. Replace {artifact} and {version} with the appropriate values. This snippet shows how to add the dependency to the commonMain source set in a Kotlin Multiplatform project. ```Kotlin kotlin { sourceSets { commonMain { dependencies { implementation("com.woowla.compose.icon.collections:{artifact}:{version}") } } } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.