Facebook login in my android app is working fine in release apk, but not working properly after publishing the same apk on play store

后端 未结 5 1544
悲&欢浪女
悲&欢浪女 2021-02-02 17:16

In my android application, I used facebook login. It is first time ever I used it.

The login functionality is working fine in release apk file. Also, I have generated ke

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-02 17:53

    Kotlin code:

            import android.util.Base64
            import android.util.Log
    
            fun hashFromSHA1(sha1: String) {
                val arr = sha1.split(":".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray()
                val byteArr = ByteArray(arr.size)
    
                for (i in arr.indices) {
                    byteArr[i] = Integer.decode("0x" + arr[i])!!.toByte()
                }
    
                Log.e("hash : ", Base64.encodeToString(byteArr, Base64.NO_WRAP))
            }
    

提交回复
热议问题