Feat: Add Compose Multiplatform module#107
Closed
jacob-derynk wants to merge 1 commit into
Closed
Conversation
This commit introduces a new `library-compose-multiplatform` module to the project
Key changes include:
- **New Module:** Added `library-compose-multiplatform` with necessary Gradle configuration for Kotlin Multiplatform and Compose Multiplatform.
- **Dependencies:** Included Compose Multiplatform libraries (runtime, ui, foundation, animation, material3) in `libs.versions.toml`.
- **Sample Integration:**
- Added a "Hello World" Composable (`HelloWorld.kt`) in the new module.
- Created a new `HelloWorldActivity` in the sample app to display this Composable.
- Added a button in `MainActivity` to navigate to the `HelloWorldActivity`.
- **Build Configuration:**
- Updated `settings.gradle.kts` to include the new module and Compose Multiplatform repositories.
- Updated root `build.gradle.kts` to include Kotlin Multiplatform and Compose Multiplatform plugins.
- Added `.kotlin/` to `.gitignore`.
- **Sample UI Update:** Modified `activity_main.xml` and `strings.xml` in the sample app to accommodate the new "Hello World CMP" button.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces a new
library-compose-multiplatformmodule to the projectKey changes include:
library-compose-multiplatformwith necessary Gradle configuration for Kotlin Multiplatform and Compose Multiplatform.libs.versions.toml.HelloWorld.kt) in the new module.HelloWorldActivityin the sample app to display this Composable.MainActivityto navigate to theHelloWorldActivity.settings.gradle.ktsto include the new module and Compose Multiplatform repositories.build.gradle.ktsto include Kotlin Multiplatform and Compose Multiplatform plugins..kotlin/to.gitignore.activity_main.xmlandstrings.xmlin the sample app to accommodate the new "Hello World CMP" button.