Recently i have been trying to implement the receipt validation in Unity IAP following the manual but I´m having problems when i try to obfuscate my encryption keys.
I copy my google play public key in the obfuscation window and click the button but it does not create the files, and in the console i get this log
_
- at System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x001be] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:292
-at System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in :0 - at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
- at System.IO.File.OpenRead (System.String path) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:363
- at System.IO.File.ReadAllBytes (System.String path) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:538
- at ObfuscatorWindow.ObfuscateSecrets () [0x00000] in :0
- at ObfuscatorWindow.OnGUI () [0x00000] in :0
UnityEngine.Debug:Log(Object)
ObfuscatorWindow:OnGUI()
UnityEditor.DockArea:OnGUI()
_
And when in my code i use this line:
var validator = new CrossPlatformValidator(GooglePlayTangle.Data(),
AppleTangle.Data(), Application.bundleIdentifier);
I get a compilation error stating that the files GooglePlayTangle and AppleTangle does not exist in the current context. Even after I did the Public Key Obfuscation process.
I am currently using Unit 5.3.5