Skip to content

Commit

Permalink
웹뷰 쿠키 추가 (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuTaK97 authored Aug 13, 2023
1 parent c683773 commit 372b198
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.wafflestudio.snutt2.lib.android.webview

import android.content.Context
import android.graphics.Bitmap
import android.os.Build
import android.webkit.*
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
Expand Down Expand Up @@ -76,6 +77,18 @@ class WebViewContainer(
reviewUrlHost,
"x-os-type=android"
)
setCookie(
reviewUrlHost,
"x-os-version=${Build.VERSION.SDK_INT}"
)
setCookie(
reviewUrlHost,
"x-app-version=${BuildConfig.VERSION_NAME}"
)
setCookie(
reviewUrlHost,
"x-app-type=${if (BuildConfig.DEBUG) "debug" else "release"}"
)
setCookie(
reviewUrlHost,
"theme=${
Expand Down

0 comments on commit 372b198

Please sign in to comment.