Skip to content

Commit 4c5a879

Browse files
author
ehowlsla
committed
mixed content mode fixed
1 parent a0844c5 commit 4c5a879

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ allprojects {
3232
```gradle
3333
dependencies {
3434
...
35-
implementation 'com.github.bootpay:client_android_java:2.0.126'
35+
implementation 'com.github.bootpay:client_android_java:2.0.127'
3636
}
3737
```
3838

bootpay/src/main/java/kr/co/bootpay/BootpayWebView.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,11 @@ internal class BootpayWebView @JvmOverloads constructor(context: Context, attrs:
303303
setWebChromeClient(Client())
304304
addJavascriptInterface(AndroidBridge(), "Android")
305305
CookieManager.getInstance().setAcceptCookie(true)
306+
306307
settings.apply {
307308
if (Build.VERSION.SDK_INT >= 21) {
308-
mixedContentMode = WebSettings.MIXED_CONTENT_COMPATIBILITY_MODE
309+
mixedContentMode = WebSettings.MIXED_CONTENT_ALWAYS_ALLOW
310+
CookieManager.getInstance().setAcceptCookie(true)
309311
CookieManager.getInstance().setAcceptThirdPartyCookies(this@BootpayWebView, true)
310312
}
311313
javaScriptEnabled = true

bootpay/src/main/java/kr/co/bootpay/analytics/BootpayAnalyticsPresenter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal class BootpayAnalyticsPresenter(context: Context) {
1717
private val rest: RestService by lazy { RestService(context) }
1818
private val executor: Scheduler by lazy { Schedulers.from(Executors.newCachedThreadPool()) }
1919

20-
private val ver = "2.0.126"
20+
private val ver = "2.0.127"
2121

2222
fun login(
2323
id: String?,

sample/sample.iml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant-run-apk" />
101101
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant-run-resources" />
102102
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant_run_app_info_output_file" />
103+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant_run_main_apk_resources" />
103104
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant_run_merged_manifests" />
104105
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/instant_run_split_apk_resources" />
105106
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javac" />

sample/src/main/java/bootpay/co/kr/samplepayment/NativeActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void onClick_request(View v) {
6060
// 결제호출
6161
Bootpay.init(getFragmentManager())
6262
.setApplicationId("5b14c0ffb6d49c40cda92c4e") // 해당 프로젝트(안드로이드)의 application id 값
63-
.setPG(PG.DANAL) // 결제할 PG 사
63+
.setPG(PG.INICIS) // 결제할 PG 사
6464
.setUserPhone("010-1234-5678") // 구매자 전화번호
6565
.setMethod(Method.CARD) // 결제수단
6666
.setName("맥\"북프로's 임다") // 결제할 상품명

sample/src/main/java/bootpay/co/kr/samplepayment/WebAppActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import android.webkit.WebSettings;
1919
import android.webkit.WebView;
2020
import android.webkit.WebViewClient;
21-
2221
import java.net.URISyntaxException;
2322

2423

0 commit comments

Comments
 (0)