Skip to content

Commit 67d2067

Browse files
committed
feat: search room entity 생성
1 parent 0f530ab commit 67d2067

3 files changed

Lines changed: 19 additions & 12 deletions

File tree

app/build.gradle

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ android {
3838
}
3939
lintOptions {
4040
abortOnError false
41+
disable 'GradleDependency' // noinspection GradleDependency 경고 비활성화
4142
}
4243
buildToolsVersion '28.0.3'
4344
ndkVersion '20.1.5948944'
4445
}
4546

4647
dependencies {
48+
def room_version = "2.2.5"
49+
4750
implementation fileTree(dir: 'libs', include: ['*.jar'])
48-
//noinspection GradleDependency
4951
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
5052
implementation 'com.google.android.material:material:1.3.0-beta01'
5153
implementation 'androidx.appcompat:appcompat:1.2.0'
@@ -55,6 +57,10 @@ dependencies {
5557
// 머티리얼 디자인 라이브러리
5658
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
5759

60+
// room
61+
implementation "androidx.room:room-runtime:$room_version"
62+
kapt "androidx.room:room-compiler:$room_version"
63+
5864
// test implementation
5965
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
6066
testImplementation 'junit:junit:4.12'
@@ -65,14 +71,9 @@ dependencies {
6571
testImplementation 'androidx.arch.core:core-testing:2.1.0'
6672
androidTestImplementation 'androidx.test:runner:1.2.0'
6773
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
68-
androidTestImplementation 'androidx.test:runner:1.2.0'
69-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
70-
androidTestImplementation 'androidx.test:runner:1.2.0'
7174
androidTestImplementation 'androidx.test:rules:1.2.0'
7275
androidTestImplementation 'androidx.test:core:1.2.0'
73-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
7476
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
75-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
7677
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.2.0'
7778

7879
// Google Ads
@@ -87,11 +88,6 @@ dependencies {
8788
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
8889
implementation 'com.google.code.gson:gson:2.8.5'
8990

90-
// room
91-
implementation 'androidx.room:room-runtime:2.2.0'
92-
kapt 'androidx.room:room-compiler:2.2.0'
93-
kaptTest 'androidx.room:room-testing:2.2.0'
94-
9591
// Lifecycle components
9692
implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
9793
implementation 'android.arch.lifecycle:viewmodel:1.1.1'
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.seok.gfd.room.entity
2+
3+
import androidx.room.ColumnInfo
4+
import androidx.room.Entity
5+
import androidx.room.PrimaryKey
6+
7+
@Entity
8+
data class GithubID(
9+
@PrimaryKey val gid : Int,
10+
@ColumnInfo(name = "gid_name") val gidName : String?
11+
)

app/src/main/res/values/styles.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
<style name="AppLightTheme.Button" parent="Widget.MaterialComponents.Button.OutlinedButton">
1717
<item name="strokeColor">@color/primaryGray3</item>
1818
<item name="android:textColor">@color/blue</item>
19-
<item name="strokeWidth">2dp</item>
19+
<item name="strokeWidth">1dp</item>
2020
</style>
2121
</resources>

0 commit comments

Comments
 (0)