Skip to content

Commit f2134c4

Browse files
author
bootpay
authored
Update README.md
1 parent f9e7db9 commit f2134c4

File tree

1 file changed

+0
-76
lines changed

1 file changed

+0
-76
lines changed

README.md

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -70,82 +70,6 @@ Bootpay.init(getFragmentManager())
7070
.show();
7171
```
7272

73-
74-
# Java8 - Lambda 지원
75-
76-
## build.gradle (Module)
77-
```gradle
78-
android {
79-
...
80-
defaultConfig {
81-
...
82-
jackOptions {
83-
enabled true
84-
}
85-
}
86-
...
87-
compileOptions {
88-
targetCompatibility 1.8
89-
sourceCompatibility 1.8
90-
}
91-
}
92-
```
93-
94-
## 샘플 코드
95-
```java
96-
Bootpay.init(getFragmentManager())
97-
.setApplicationId("593f8febe13f332431a8ddae")
98-
.setPG(PG.DANAL)
99-
.setMethod(Method.CARD)
100-
.setName("맥북프로임다")
101-
.setOrderId(String.valueOf(System.currentTimeMillis()))
102-
.setPrice(1000)
103-
.addItem("마우스", 1, "123", 100)
104-
.addItem("키보드", 1, "122", 200)
105-
.onCancel(s -> Log.d("cancel", s))
106-
.onConfirm(s -> Log.d("confirm", s))
107-
.onDone(s -> Log.d("done", s))
108-
.onError(s -> Log.d("error", s))
109-
.show();
110-
```
111-
112-
# [Kotlin](http://kotlinlang.org/) 설정
113-
## build.gradle (Project)
114-
```gradle
115-
buildscript {
116-
dependencies {
117-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.1.4"
118-
}
119-
}
120-
```
121-
122-
## build.gradle (Module)
123-
```gradle
124-
apply plugin: 'kotlin-android'
125-
126-
dependencies {
127-
compile 'org.jetbrains.kotlin:kotlin-stdlib-jre7:1.1.4'
128-
}
129-
```
130-
131-
## 샘플 코드
132-
```kotlin
133-
Bootpay.init(fragmentManager)
134-
.setApplicationId("593f8febe13f332431a8ddae")
135-
.setPG(PG.DANAL)
136-
.setMethod(Method.SELECT)
137-
.setName("맥북프로임다")
138-
.setOrderId(System.currentTimeMillis().toString())
139-
.setPrice(1000)
140-
.addItem("마우스", 1, "123", 100)
141-
.addItem("키보드", 1, "122", 200)
142-
.onCancel { Log.d("cancel", it) }
143-
.onConfirm { Log.d("confirm", it) }
144-
.onDone { Log.d("done", it) }
145-
.onError { Log.d("error", it) }
146-
.show()
147-
```
148-
14973
<hr/>
15074

15175
### 더 자세한 정보는 [Wiki](https://github.com/bootpay/client_android_java/wiki)를 참조해주세요. 

0 commit comments

Comments
 (0)