-
Notifications
You must be signed in to change notification settings - Fork 0
Kmp #2
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
Merged
Kmp #2
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
473cd4e
✨ feat(core): 라이브러리 기능 개선 및 문서화 추가
ienground 92b9e27
Merge pull request #1 from ienground/main
ienground 91993fd
✨ feat(core): 코어 모듈 기능 개발 및 예제 앱 구조 변경
ienground 8ae720e
♻️ refactor(core): TapTarget 컴포넌블 구조 리팩토링
ienground 4a15c95
✨ feat(core): iOS 앱 통합 및 빌드 구성 추가
ienground 954532f
⚡ perf(core): 빌드 스크립트 개선 및 의존성 업데이트
ienground d32efe1
♻️ refactor(core): CLAUDE.md 삭제 및 문서 정리
ienground 493daf5
♻️ refactor(core): README.md 정리 및 문서 개선
ienground 2c372b7
✨ feat(core): README 문서 업데이트 및 예시 이미지 변경
ienground 15a4751
Update README.md
ienground c6ce9ba
Update README.md
ienground 6ce3f97
♻️ refactor(core): iOS scheme 및 빌드 파일 수정
ienground 6a7828b
♻️ refactor(core): 패키지 경로 변경 및 MainViewController 리팩토링
ienground File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ local.properties | |
| .idea/* | ||
| !.idea/copyright | ||
| .DS_Store | ||
| /build | ||
| build | ||
| /captures | ||
| .externalNativeBuild | ||
| ktlint | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,57 @@ | ||
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
| plugins { | ||
| alias(libs.plugins.android.application) apply false | ||
| alias(libs.plugins.jetbrains.kotlin.android) apply false | ||
| alias(libs.plugins.android.library) apply false | ||
| alias(libs.plugins.gradleNexus.publish) | ||
| alias(libs.plugins.jetbrains.dokka) | ||
| alias(libs.plugins.android.kotlin.multiplatform.library) apply false | ||
| alias(libs.plugins.kotlin.multiplatform) apply false | ||
| alias(libs.plugins.serialization) apply false | ||
| alias(libs.plugins.vanniktech.mavenPublish) apply false | ||
| alias(libs.plugins.android.lint) apply false | ||
| alias(libs.plugins.compose.compiler) apply false | ||
| } | ||
| val isReleaseVersion = !version.toString().endsWith("SNAPSHOT") | ||
|
|
||
| apply(from = "./scripts/publish-root.gradle") | ||
| subprojects { | ||
| plugins.withId("com.vanniktech.maven.publish") { | ||
| configure<com.vanniktech.maven.publish.MavenPublishBaseExtension> { | ||
| publishToMavenCentral(automaticRelease = true) | ||
|
|
||
| // Artifact ID만 각 프로젝트의 이름으로 자동 설정 | ||
| group = "zone.ien.taptargetcmp" | ||
| version = libs.versions.lib.version.name.get() | ||
| println("${group} ${project.name} ${version}") | ||
|
ienground marked this conversation as resolved.
|
||
|
|
||
| coordinates(group.toString(), project.name, version.toString()) | ||
|
|
||
| pom { | ||
| name = project.name | ||
| description = "A Compose Multiplatform implementation of Material Design tap targets, for feature discovery." | ||
| inceptionYear = "2026" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
inceptionYear = "2024" |
||
| url = "https://github.com/ienground/tap-target-cmp" | ||
| licenses { | ||
| license { | ||
| name = "Apache-2.0" | ||
| url = "https://www.apache.org/licenses/LICENSE-2.0" | ||
| } | ||
| } | ||
| developers { | ||
| developer { | ||
| id = "ienground" | ||
| name = "Ericano Rhee" | ||
| url = "https://www.ien.zone" | ||
| } | ||
| } | ||
| scm { | ||
| url = "https://github.com/ienground/tap-target-cmp.git" | ||
| connection = "scm:git:https://github.com/ienground/tap-target-cmp.git" | ||
| developerConnection = "scm:git:https://github.com/ienground/tap-target-cmp.git" | ||
| } | ||
| } | ||
|
|
||
| val isPublishingToMavenLocal = gradle.startParameter.taskNames.any { it.contains("publishToMavenLocal", ignoreCase = true) } | ||
| val isSnapshot = version.toString().endsWith("SNAPSHOT") | ||
|
|
||
| if (!isSnapshot && !isPublishingToMavenLocal) { | ||
| signAllPublications() | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
buildSrc/src/main/java/com/psoffritti/taptargetcompose/Configuration.kt
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
|
|
||
| plugins { | ||
| alias(libs.plugins.android.application) | ||
| alias(libs.plugins.compose.multiplatform) | ||
| alias(libs.plugins.compose.compiler) | ||
| } | ||
|
|
||
| android { | ||
| namespace = "zone.ien.taptargetcmp.example" | ||
| compileSdk = libs.versions.android.compileSdk.get().toInt() | ||
|
|
||
| defaultConfig { | ||
| applicationId = "zone.ien.taptargetcmp.example" | ||
| minSdk = libs.versions.android.minSdk.get().toInt() | ||
| targetSdk = libs.versions.android.targetSdk.get().toInt() | ||
| versionCode = 1 | ||
| versionName = libs.versions.lib.version.name.get() | ||
| } | ||
| packaging { | ||
| resources { | ||
| excludes += "/META-INF/{AL2.0,LGPL2.1}" | ||
| } | ||
| } | ||
| buildTypes { | ||
| getByName("release") { | ||
| isMinifyEnabled = false | ||
| proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") | ||
| } | ||
| } | ||
| compileOptions { | ||
| sourceCompatibility = JavaVersion.VERSION_21 | ||
| targetCompatibility = JavaVersion.VERSION_21 | ||
| } | ||
| } | ||
|
|
||
| kotlin { | ||
| target { | ||
| compilerOptions { | ||
| jvmTarget.set(JvmTarget.JVM_21) | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| implementation(projects.example.composeApp) | ||
| implementation(libs.activity.compose) | ||
| implementation(libs.compose.ui.tooling) | ||
| } | ||
| } |
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
example/androidApp/src/main/kotlin/zone/ien/taptargetcmp/example/MainActivity.kt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| package zone.ien.taptargetcmp.example | ||
|
|
||
| import androidx.activity.ComponentActivity | ||
| import androidx.activity.compose.setContent | ||
| import androidx.activity.enableEdgeToEdge | ||
| import androidx.compose.runtime.Composable | ||
| import androidx.compose.ui.tooling.preview.Preview | ||
|
|
||
| class MainActivity : ComponentActivity() { | ||
| override fun onCreate(savedInstanceState: android.os.Bundle?) { | ||
| super.onCreate(savedInstanceState) | ||
|
|
||
| setContent { | ||
| enableEdgeToEdge() | ||
| App() | ||
| } | ||
| } | ||
| } | ||
|
|
||
| @Preview | ||
| @Composable | ||
| fun AppAndroidPreview() { | ||
| App() | ||
| } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
|
|
||
| plugins { | ||
| alias(libs.plugins.kotlin.multiplatform) | ||
| alias(libs.plugins.android.kotlin.multiplatform.library) | ||
| alias(libs.plugins.serialization) | ||
| alias(libs.plugins.compose.multiplatform) | ||
| alias(libs.plugins.compose.compiler) | ||
| } | ||
|
|
||
| kotlin { | ||
| androidLibrary { | ||
| namespace = "zone.ien.taptargetcmp.example.lib" | ||
| compileSdk = libs.versions.android.compileSdk.get().toInt() | ||
| minSdk = libs.versions.android.minSdk.get().toInt() | ||
|
|
||
| compilerOptions { | ||
| jvmTarget.set(JvmTarget.JVM_21) | ||
| } | ||
|
|
||
| androidResources { | ||
| enable = true | ||
| } | ||
| } | ||
|
|
||
| listOf( | ||
| iosArm64(), | ||
| iosSimulatorArm64() | ||
| ).forEach { iosTarget -> | ||
| iosTarget.binaries.framework { | ||
| baseName = "ComposeApp" | ||
| isStatic = true | ||
| } | ||
| } | ||
|
|
||
| sourceSets { | ||
| commonMain.dependencies { | ||
| implementation(libs.compose.material3) | ||
| implementation(libs.compose.preview) | ||
| implementation(projects.taptarget) | ||
| } | ||
| commonTest.dependencies { | ||
| implementation(libs.kotlin.test) | ||
| } | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| androidRuntimeClasspath(libs.compose.ui.tooling) | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.