Skip to content

Commit

Permalink
Merge pull request #7 from UMC-5th-Notation/corgi
Browse files Browse the repository at this point in the history
cash update
  • Loading branch information
Dev-Corgi authored Feb 2, 2024
2 parents 0f9b885 + ace92f0 commit 4547aa8
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ android {
dependencies {
implementation ("com.kakao.sdk:v2-user:2.19.0") // 카카오 로그인
implementation("com.kakao.sdk:v2-share:2.19.0")// 카카오 공유

implementation("androidx.core:core-ktx:1.9.0")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.11.0")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.notation.campusnote.sharedPreference

import android.content.Context
import android.content.SharedPreferences

class MyPreferences(context: Context) {
private val sharedPreferences: SharedPreferences = context.getSharedPreferences("MyPrefs", Context.MODE_PRIVATE)

// 클라이언트 ID 저장
fun saveClientId(clientId: String) {
sharedPreferences.edit().putString("client_id", clientId).apply()
}

// 클라이언트 ID 가져오기
fun getClientId(): String? {
return sharedPreferences.getString("client_id", null)
}

// 클라이언트 ID 저장
fun saveProfilePic(profilePic: String) {
sharedPreferences.edit().putString("profile_pic", profilePic).apply()
}

// 클라이언트 ID 가져오기
fun getProfilePic(): String? {
return sharedPreferences.getString("profile_pic", null)
}

}
4 changes: 2 additions & 2 deletions local.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Mon Jan 29 20:29:41 KST 2024
sdk.dir=C\:\\Users\\samsung\\AppData\\Local\\Android\\Sdk
#Fri Feb 02 10:00:00 KST 2024
sdk.dir=C\:\\andriodsdklocation

0 comments on commit 4547aa8

Please sign in to comment.