Skip to content

Commit

Permalink
컴포즈 모듈 빌드 오류 해결 및 README.md 업데이트 (#198)
Browse files Browse the repository at this point in the history
* docs: 2.2.3.txt

* chore: compose 모듈 빌드 추가

* chore: jitpack 배포 관련 코드 수정

* chore

* fix: color 리소스 임시 추가

* del: jitpack.yml install 제거

* chore: 버전 업데이트(2.2.3->2.2.4)

* chore: jitpack.yml 복구

* docs: README.md 수정
  • Loading branch information
cometj03 authored Aug 22, 2023
1 parent eda6b62 commit 67afd80
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 24 deletions.
5 changes: 1 addition & 4 deletions DesignSystem/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,8 @@ android {
afterEvaluate {
publishing {
publications {
yds(MavenPublication) {
release(MavenPublication) {
from components.release
groupId project.name
artifactId project.name
version versionProperties['versionName']
}
}
}
Expand Down
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,24 @@ YDS 문서는 노션 페이지에서 관리됩니다.

## 🛠 설치 방법
#### gradle Project
```groovy
```kts
allprojects {
repositories {
'...'
maven { url 'https://jitpack.io' }
maven { url = uri("https://jitpack.io") }
}
}
```
#### gradle app
```groovy
implementation "com.github.yourssu:YDS-Android:${YDSVersion}"
```kts
// YDS for both XML and Compose
implementation("com.github.yourssu:YDS-Android:${YDSVersion}")

// YDS for XML view
implementation("com.github.yourssu.YDS-Android:DesignSystem:${YDSVersion}")

// YDS for Jetpack Compose
implementation("com.github.yourssu.YDS-Android:compose:${YDSVersion}")
```
#### theme
- 라이트 테마
Expand Down
14 changes: 1 addition & 13 deletions compose/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
import java.util.Properties

plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
`maven-publish`
}

val versionProperties = Properties().apply {
File(
rootProject.rootDir,
"version.properties"
).inputStream().use { load(it) }
}

android {
namespace = "com.yourssu.design.system.compose"
compileSdk = 33
Expand Down Expand Up @@ -51,11 +42,8 @@ android {
afterEvaluate {
publishing {
publications {
create<MavenPublication>("YDS-Compose") {
create<MavenPublication>("release") {
from(components["release"])
groupId = project.name
artifactId = project.name
version = versionProperties["versionName"].toString()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="buttonNormal">#BEBFC0</color>
</resources>
4 changes: 4 additions & 0 deletions compose/src/main/res/values/foundation_semantic_colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="buttonNormal">#505458</color>
</resources>
3 changes: 2 additions & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ jdk:
- openjdk11
install:
- ./gradlew :DesignSystem:build :DesignSystem:publishToMavenLocal -x :DesignSystem:test
- find . -name "*.aar"
- ./gradlew :compose:build :compose:publishToMavenLocal -x :compose:test
- find . -name "*.aar"
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include ':DesignSystem'
include ':compose'
include ':app:storybook'
include ':app:yds-ui-tester'
rootProject.name = "YDS-Android"
include ':compose'
2 changes: 1 addition & 1 deletion version.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
versionName=2.2.3
versionName=2.2.4
#자동 배포를 위해서 버전은 여기 한 군데에서 관리하면 된다

0 comments on commit 67afd80

Please sign in to comment.