mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-13 09:25:36 +08:00
Change hash encoding
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package com.microsoft.codepush.react;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.util.Base64;
|
||||
|
||||
import com.facebook.react.bridge.ReadableArray;
|
||||
import com.facebook.react.bridge.WritableMap;
|
||||
@@ -64,7 +63,7 @@ public class CodePushUpdateUtils {
|
||||
}
|
||||
|
||||
byte[] hash = messageDigest.digest();
|
||||
return Base64.encodeToString(hash, 0, hash.length, 0);
|
||||
return String.format("%064x", new java.math.BigInteger(1, hash));
|
||||
}
|
||||
|
||||
public static void copyNecessaryFilesFromCurrentPackage(String diffManifestFilePath, String currentPackageFolderPath, String newPackageFolderPath) throws IOException{
|
||||
|
||||
Reference in New Issue
Block a user