Skip to content
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

cash update #7

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading