Skip to content

Commit

Permalink
Merge pull request Necrobot-Private#12 from Furtif/master
Browse files Browse the repository at this point in the history
Updated to android (0.45.0) and ios (1.15.0)
  • Loading branch information
jjskuld authored Nov 11, 2016
2 parents c653ed5 + 0e79d23 commit ea1260c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ public Client(ISettings settings, IApiFailureStrategy apiFailureStrategy)
Platform = Platform.Ios;
}

AppVersion = 4303;
AppVersion = 4500;
SettingsHash = "";

CurrentApiEmulationVersion = new Version("0.43.3");
CurrentApiEmulationVersion = new Version("0.45.0");
}

public void SetCaptchaToken(string token)
Expand Down
10 changes: 5 additions & 5 deletions Helpers/RequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ namespace PokemonGo.RocketAPI.Helpers
{
public class RequestBuilder
{
// The next variables are specific to 43.3 client.
private static long Client_4330_Unknown25 = -8408506833887075802;
// The next variables are specific to 45.0 client.
private static long Client_4500_Unknown25 = -8408506833887075802;

private static readonly Random RandomDevice = new Random();
private static readonly TRandom TRandomDevice = new TRandom();
Expand Down Expand Up @@ -165,11 +165,11 @@ private RequestEnvelope.Types.PlatformRequest GenerateSignature(IEnumerable<IMes
var sig = new Signature
{
SessionHash = SessionHash,
Unknown25 = Client_4330_Unknown25,
Unknown25 = Client_4500_Unknown25,
Timestamp = (ulong)Utils.GetTime(true),
TimestampSinceStart = (ulong)(Utils.GetTime(true) - _client.StartTime),
LocationHash1 = Utils.GenerateLocation1(ticketBytes, _latitude, _longitude, _horizontalAccuracy),
LocationHash2 = Utils.GenerateLocation2(_latitude, _longitude, _horizontalAccuracy),
LocationHash1 = (int)Utils.GenerateLocation1(ticketBytes, _latitude, _longitude, _horizontalAccuracy),
LocationHash2 = (int)Utils.GenerateLocation2(_latitude, _longitude, _horizontalAccuracy),
DeviceInfo = deviceInfo
};

Expand Down

0 comments on commit ea1260c

Please sign in to comment.