Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
JooYang committed Apr 4, 2024
2 parents f9a68f3 + d14fdbb commit 9eddf3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Examples/UIKit-Example/Sources/Environment/Environment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import TossPayments

public final class Environment {
public enum Constant {
Expand Down Expand Up @@ -72,6 +73,7 @@ public final class Environment {

static var stage: String = UserDefaults.standard.string(forKey: "TossPayments.Stage") ?? Constant.defaultStage {
didSet {
TossPaymentsEnvironment.stage = stage
UserDefaults.standard.set(stage, forKey: "TossPayments.Stage")
}
}
Expand Down
6 changes: 2 additions & 4 deletions TossPayments/Sources/Service/TossPaymentsEnvironment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

import Foundation

enum TossPaymentsEnvironment {
static var stage: String {
UserDefaults.standard.string(forKey: "TossPayments.Stage") ?? "v1"
}
public enum TossPaymentsEnvironment {
public static var stage: String = "v1"
}
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.30
0.1.31

0 comments on commit 9eddf3e

Please sign in to comment.