Skip to content

Commit 3bfa7bb

Browse files
author
ehowlsla
committed
Flutter 지원을 위해 BootpayFlutterActivity 추가
1 parent 7fb5679 commit 3bfa7bb

File tree

10 files changed

+54
-15
lines changed

10 files changed

+54
-15
lines changed

bootpay/.DS_Store

0 Bytes
Binary file not shown.

bootpay/src/.DS_Store

0 Bytes
Binary file not shown.

bootpay/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<application
1010
android:allowBackup="true"
1111
android:supportsRtl="true">
12-
<activity android:name=".BootpayActivity" android:screenOrientation="portrait">
12+
<innerActivity android:name=".BootpayInnerActivity" android:screenOrientation="portrait">
1313
<intent-filter>
1414
<action android:name="android.intent.action.VIEW"/>
1515
<data android:host="app2app" android:scheme="bootpay" />
1616
</intent-filter>
17-
</activity>
17+
</innerActivity>
1818
</application>
1919

2020
</manifest>

bootpay/src/main/java/kr/co/bootpay/BootpayBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ private void requestApi() {
471471
}
472472

473473
private void requestApp2App() {
474-
Intent intent = new Intent(context, BootpayActivity.class);
474+
Intent intent = new Intent(context, BootpayInnerActivity.class);
475475
context.startActivity(intent);
476476
}
477477

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
package kr.co.bootpay;
2+
3+
import android.app.Activity;
4+
5+
import kr.co.bootpay.listner.EventListener;
6+
7+
public class BootpayFlutterActivity extends Activity implements EventListener {
8+
9+
10+
@Override
11+
public void onError(String message) {
12+
13+
}
14+
15+
@Override
16+
public void onCancel(String message) {
17+
18+
}
19+
20+
@Override
21+
public void onClose(String message) {
22+
23+
}
24+
25+
@Override
26+
public void onReady(String message) {
27+
28+
}
29+
30+
@Override
31+
public void onConfirm(String message) {
32+
33+
}
34+
35+
@Override
36+
public void onDone(String message) {
37+
38+
}
39+
}

bootpay/src/main/java/kr/co/bootpay/BootpayActivity.java renamed to bootpay/src/main/java/kr/co/bootpay/BootpayInnerActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import kr.co.bootpay.model.Request;
1313
import kr.co.bootpay.pref.UserInfo;
1414

15-
public class BootpayActivity extends Activity {
15+
public class BootpayInnerActivity extends Activity {
1616

1717
public static final int REQUEST_INTERNAL = 1000; // 원격결제
1818
public static final int REQUEST_NOTEPAYMENT = 1001; // 수기결제

bootpay/src/main/java/kr/co/bootpay/WayApp2AppBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public class WayApp2AppBuilder {
259259
// if (listener == null && (error == null || cancel == null || done == null))
260260
// error("Must to be required to handel events.");
261261
//
262-
// Intent intent = new Intent(context, BootpayActivity.class);
262+
// Intent intent = new Intent(context, BootpayInnerActivity.class);
263263
// context.startActivity(intent);
264264
// }
265265
//

bootpay/src/main/java/kr/co/bootpay/app2app/payapp/PayappPresenter.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ package kr.co.bootpay.app2app.payapp
22

33
import android.content.Context
44
import android.util.Log
5-
import kr.co.bootpay.BootpayActivity
5+
import kr.co.bootpay.BootpayInnerActivity
66
import rx.Scheduler
77
import rx.schedulers.Schedulers
88
import java.util.concurrent.Executors
99

10-
internal class PayappPresenter(activity: BootpayActivity, context: Context) {
11-
private val activity: BootpayActivity by lazy { activity }
10+
internal class PayappPresenter(innerActivity: BootpayInnerActivity, context: Context) {
11+
private val innerActivity: BootpayInnerActivity by lazy { innerActivity }
1212
private val rest: PayappRestService by lazy { PayappRestService(context) }
1313
private val executor: Scheduler by lazy { Schedulers.from(Executors.newCachedThreadPool()) }
1414

bootpay/src/main/res/.DS_Store

0 Bytes
Binary file not shown.

sample/src/main/AndroidManifest.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414
android:roundIcon="@mipmap/ic_launcher_round"
1515
android:supportsRtl="true"
1616
android:theme="@style/AppTheme">
17-
<activity android:name=".MainActivity">
17+
<innerActivity android:name=".MainActivity">
1818
<intent-filter>
1919
<action android:name="android.intent.action.MAIN"/>
2020

2121
<category android:name="android.intent.category.LAUNCHER"/>
2222
</intent-filter>
23-
</activity>
23+
</innerActivity>
2424

25-
<activity android:name=".NativeActivity" android:screenOrientation="portrait"/>
26-
<activity android:name=".WebAppActivity" android:screenOrientation="portrait"/>
27-
<activity android:name=".LocalHtmlActivity" android:screenOrientation="portrait"/>
28-
<activity android:name=".App2AppActivity" android:screenOrientation="portrait"/>
29-
<activity android:name="kr.co.bootpay.BootpayActivity" android:screenOrientation="portrait"/>
25+
<innerActivity android:name=".NativeActivity" android:screenOrientation="portrait"/>
26+
<innerActivity android:name=".WebAppActivity" android:screenOrientation="portrait"/>
27+
<innerActivity android:name=".LocalHtmlActivity" android:screenOrientation="portrait"/>
28+
<innerActivity android:name=".App2AppActivity" android:screenOrientation="portrait"/>
29+
<innerActivity android:name="kr.co.bootpay.BootpayInnerActivity" android:screenOrientation="portrait"/>
3030
</application>
3131

3232
</manifest>

0 commit comments

Comments
 (0)