File tree Expand file tree Collapse file tree
android/src/main/java/com/dooboolab/naverlogin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ class RNNaverLoginModule(reactContext: ReactApplicationContext) : ReactContextBa
1818 override fun getName () = " RNNaverLogin"
1919
2020 @ReactMethod
21- fun logout (promise : Promise ) =
21+ fun logout (promise : Promise ) {
2222 UiThreadUtil .runOnUiThread {
2323 callLogout()
2424 promise.safeResolve(null )
2525 }
26+ }
2627
2728 private fun callLogout () =
2829 try {
@@ -46,7 +47,7 @@ class RNNaverLoginModule(reactContext: ReactApplicationContext) : ReactContextBa
4647 }
4748
4849 @ReactMethod
49- fun login (promise : Promise ) =
50+ fun login (promise : Promise ) {
5051 UiThreadUtil .runOnUiThread {
5152 loginPromise = promise
5253 if (currentActivity == null ) {
@@ -80,9 +81,10 @@ class RNNaverLoginModule(reactContext: ReactApplicationContext) : ReactContextBa
8081 onLoginFailure(je.localizedMessage)
8182 }
8283 }
84+ }
8385
8486 @ReactMethod
85- fun deleteToken (promise : Promise ) =
87+ fun deleteToken (promise : Promise ) {
8688 UiThreadUtil .runOnUiThread {
8789 NidOAuthLogin ().callDeleteTokenApi(
8890 object : OAuthLoginCallback {
@@ -100,6 +102,7 @@ class RNNaverLoginModule(reactContext: ReactApplicationContext) : ReactContextBa
100102 },
101103 )
102104 }
105+ }
103106
104107 companion object {
105108 private var loginPromise: Promise ? = null
You can’t perform that action at this time.
0 commit comments