File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
OneSignalSDK/onesignal/src/main/java/com/onesignal Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 57
57
import org .json .JSONException ;
58
58
import org .json .JSONObject ;
59
59
60
- import java .security .MessageDigest ;
61
60
import java .util .ArrayList ;
62
61
import java .util .Collection ;
63
62
import java .util .Collections ;
@@ -537,21 +536,6 @@ static long[] parseVibrationPattern(JSONObject fcmBundle) {
537
536
return null ;
538
537
}
539
538
540
- static String hexDigest (String str , String digestInstance ) throws Throwable {
541
- MessageDigest digest = java .security .MessageDigest .getInstance (digestInstance );
542
- digest .update (str .getBytes ("UTF-8" ));
543
- byte messageDigest [] = digest .digest ();
544
-
545
- StringBuilder hexString = new StringBuilder ();
546
- for (byte aMessageDigest : messageDigest ) {
547
- String h = Integer .toHexString (0xFF & aMessageDigest );
548
- while (h .length () < 2 )
549
- h = "0" + h ;
550
- hexString .append (h );
551
- }
552
- return hexString .toString ();
553
- }
554
-
555
539
static void sleep (int ms ) {
556
540
try {
557
541
Thread .sleep (ms );
You can’t perform that action at this time.
0 commit comments