Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#230123
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Jan 26, 2023
2 parents cbb8b70 + d23acc7 commit c8b6056
Show file tree
Hide file tree
Showing 29 changed files with 139 additions and 93 deletions.
2 changes: 1 addition & 1 deletion AndroidStudioExample/app/packageMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
popd

cd target
Copy-Item client-sdk-0.178.221207.jar -Destination ../../builds/client-sdk-0.178.221207.jar
Copy-Item client-sdk-0.180.230123.jar -Destination ../../builds/client-sdk-0.180.230123.jar
2 changes: 1 addition & 1 deletion AndroidStudioExample/app/packageMe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ mkdir -p ./builds
popd

cd target
cp client-sdk-0.178.221207.jar ../../builds/client-sdk-0.178.221207.jar
cp client-sdk-0.180.230123.jar ../../builds/client-sdk-0.180.230123.jar
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,6 @@ public static class PostFunctionResultForFunctionExecutionRequest {
public static class PostFunctionResultForPlayerTriggeredActionRequest {
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
public Map<String,String> CustomTags;
/**
* The optional entity to perform this action on. Defaults to the currently logged in entity.
* @deprecated Do not use
*/
@Deprecated
public EntityKey Entity;
/** The result of the function execution. */
public ExecuteFunctionResult FunctionResult;
/** The player profile the function was invoked with. */
Expand All @@ -684,12 +678,6 @@ public static class PostFunctionResultForPlayerTriggeredActionRequest {
public static class PostFunctionResultForScheduledTaskRequest {
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
public Map<String,String> CustomTags;
/**
* The entity to perform this action on.
* @deprecated Do not use
*/
@Deprecated
public EntityKey Entity;
/** The result of the function execution */
public ExecuteFunctionResult FunctionResult;
/** The id of the scheduled task that invoked the function. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import com.playfab.PlayFabErrors.ErrorCallback;

public class PlayFabSettings {
public static String SdkVersion = "0.178.221207";
public static String BuildIdentifier = "adobuild_javasdk_8";
public static String SdkVersionString = "JavaSDK-0.178.221207";
public static String SdkVersion = "0.180.230123";
public static String BuildIdentifier = "adobuild_javasdk_114";
public static String SdkVersionString = "JavaSDK-0.180.230123";

public static Map<String, String> RequestGetParams;
static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import java.util.*;
import java.io.*;
import java.lang.Thread;
import java.util.Properties;

import com.google.gson.*;
Expand Down Expand Up @@ -35,6 +36,7 @@ public class PlayFabApiTest
private static String entityId = null;
private static String entityType = null;

private static Random rand = new Random();
// Helpers
private <RT> void VerifyResult(PlayFabResult<RT> result, boolean expectSuccess)
{
Expand All @@ -50,6 +52,16 @@ private <RT> void VerifyResult(PlayFabResult<RT> result, boolean expectSuccess)
assertNull(errorMessage, result.Result);
assertNotNull(errorMessage, result.Error);
}

// Add a rest to the tests so they don't throttle themselves.
try
{
Thread.sleep(rand.nextInt(1000));
}
catch(Exception e)
{
System.out.println(e);
}
}

private <RT> String CompileErrorsFromResult(PlayFabResult<RT> result)
Expand Down
2 changes: 1 addition & 1 deletion PlayFabClientSDK/packageMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
popd

cd target
Copy-Item client-sdk-0.178.221207.jar -Destination ../../builds/client-sdk-0.178.221207.jar
Copy-Item client-sdk-0.180.230123.jar -Destination ../../builds/client-sdk-0.180.230123.jar
2 changes: 1 addition & 1 deletion PlayFabClientSDK/packageMe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ mkdir -p ./builds
popd

cd target
cp client-sdk-0.178.221207.jar ../../builds/client-sdk-0.178.221207.jar
cp client-sdk-0.180.230123.jar ../../builds/client-sdk-0.180.230123.jar
2 changes: 1 addition & 1 deletion PlayFabClientSDK/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- GAV & Meta -->
<groupId>com.playfab</groupId>
<artifactId>client-sdk</artifactId>
<version>0.178.221207</version>
<version>0.180.230123</version>
<name>PlayFab Client API</name>
<description>PlayFab is the unified backend platform for games — everything you need to build and operate your game, all in one place, so you can focus on creating and delivering a great player experience. </description>
<url>https://docs.microsoft.com/gaming/playfab/</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,6 @@ public static class PostFunctionResultForFunctionExecutionRequest {
public static class PostFunctionResultForPlayerTriggeredActionRequest {
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
public Map<String,String> CustomTags;
/**
* The optional entity to perform this action on. Defaults to the currently logged in entity.
* @deprecated Do not use
*/
@Deprecated
public EntityKey Entity;
/** The result of the function execution. */
public ExecuteFunctionResult FunctionResult;
/** The player profile the function was invoked with. */
Expand All @@ -684,12 +678,6 @@ public static class PostFunctionResultForPlayerTriggeredActionRequest {
public static class PostFunctionResultForScheduledTaskRequest {
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
public Map<String,String> CustomTags;
/**
* The entity to perform this action on.
* @deprecated Do not use
*/
@Deprecated
public EntityKey Entity;
/** The result of the function execution */
public ExecuteFunctionResult FunctionResult;
/** The id of the scheduled task that invoked the function. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import com.playfab.PlayFabErrors.ErrorCallback;

public class PlayFabSettings {
public static String SdkVersion = "0.178.221207";
public static String BuildIdentifier = "adobuild_javasdk_8";
public static String SdkVersionString = "JavaSDK-0.178.221207";
public static String SdkVersion = "0.180.230123";
public static String BuildIdentifier = "adobuild_javasdk_114";
public static String SdkVersionString = "JavaSDK-0.180.230123";

public static Map<String, String> RequestGetParams;
static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import java.util.*;
import java.io.*;
import java.lang.Thread;
import java.util.Properties;

import com.google.gson.*;
Expand Down Expand Up @@ -35,6 +36,7 @@ public class PlayFabApiTest
private static String entityId = null;
private static String entityType = null;

private static Random rand = new Random();
// Helpers
private <RT> void VerifyResult(PlayFabResult<RT> result, boolean expectSuccess)
{
Expand All @@ -50,6 +52,16 @@ private <RT> void VerifyResult(PlayFabResult<RT> result, boolean expectSuccess)
assertNull(errorMessage, result.Result);
assertNotNull(errorMessage, result.Error);
}

// Add a rest to the tests so they don't throttle themselves.
try
{
Thread.sleep(rand.nextInt(1000));
}
catch(Exception e)
{
System.out.println(e);
}
}

private <RT> String CompileErrorsFromResult(PlayFabResult<RT> result)
Expand Down
2 changes: 1 addition & 1 deletion PlayFabSDK/packageMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
popd

cd target
Copy-Item combo-sdk-0.178.221207.jar -Destination ../../builds/combo-sdk-0.178.221207.jar
Copy-Item combo-sdk-0.180.230123.jar -Destination ../../builds/combo-sdk-0.180.230123.jar
2 changes: 1 addition & 1 deletion PlayFabSDK/packageMe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ mkdir -p ./builds
popd

cd target
cp combo-sdk-0.178.221207.jar ../../builds/combo-sdk-0.178.221207.jar
cp combo-sdk-0.180.230123.jar ../../builds/combo-sdk-0.180.230123.jar
2 changes: 1 addition & 1 deletion PlayFabSDK/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- GAV & Meta -->
<groupId>com.playfab</groupId>
<artifactId>combo-sdk</artifactId>
<version>0.178.221207</version>
<version>0.180.230123</version>
<name>PlayFab Combo API</name>
<description>PlayFab is the unified backend platform for games — everything you need to build and operate your game, all in one place, so you can focus on creating and delivering a great player experience. </description>
<url>https://docs.microsoft.com/gaming/playfab/</url>
Expand Down
28 changes: 22 additions & 6 deletions PlayFabSDK/src/main/java/com/playfab/PlayFabAdminAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -5807,7 +5807,10 @@ private static PlayFabResult<UpdateStoreItemsResult> privateSetStoreItemsAsync(f
}

/**
* Creates and updates the key-value store of custom title settings which can be read by the client
* Creates and updates the key-value store of custom title settings which can be read by the client. For example, a
* developer could choose to store values which modify the user experience, such as enemy spawn rates, weapon strengths,
* movement speeds, etc. This allows a developer to update the title without the need to create, test, and ship a new
* build.
* @param request SetTitleDataRequest
* @return Async Task will return SetTitleDataResult
*/
Expand All @@ -5821,7 +5824,10 @@ public PlayFabResult<SetTitleDataResult> call() throws Exception {
}

/**
* Creates and updates the key-value store of custom title settings which can be read by the client
* Creates and updates the key-value store of custom title settings which can be read by the client. For example, a
* developer could choose to store values which modify the user experience, such as enemy spawn rates, weapon strengths,
* movement speeds, etc. This allows a developer to update the title without the need to create, test, and ship a new
* build.
* @param request SetTitleDataRequest
* @return SetTitleDataResult
*/
Expand All @@ -5842,7 +5848,12 @@ public PlayFabResult<SetTitleDataResult> call() throws Exception {
}
}

/** Creates and updates the key-value store of custom title settings which can be read by the client */
/**
* Creates and updates the key-value store of custom title settings which can be read by the client. For example, a
* developer could choose to store values which modify the user experience, such as enemy spawn rates, weapon strengths,
* movement speeds, etc. This allows a developer to update the title without the need to create, test, and ship a new
* build.
*/
@SuppressWarnings("unchecked")
private static PlayFabResult<SetTitleDataResult> privateSetTitleDataAsync(final SetTitleDataRequest request) throws Exception {
if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method");
Expand Down Expand Up @@ -5931,7 +5942,8 @@ private static PlayFabResult<SetTitleDataAndOverridesResult> privateSetTitleData
}

/**
* Updates the key-value store of custom title settings which cannot be read by the client
* Updates the key-value store of custom title settings which cannot be read by the client. These values can be used to
* tweak settings used by game servers and Cloud Scripts without the need to update and re-deploy.
* @param request SetTitleDataRequest
* @return Async Task will return SetTitleDataResult
*/
Expand All @@ -5945,7 +5957,8 @@ public PlayFabResult<SetTitleDataResult> call() throws Exception {
}

/**
* Updates the key-value store of custom title settings which cannot be read by the client
* Updates the key-value store of custom title settings which cannot be read by the client. These values can be used to
* tweak settings used by game servers and Cloud Scripts without the need to update and re-deploy.
* @param request SetTitleDataRequest
* @return SetTitleDataResult
*/
Expand All @@ -5966,7 +5979,10 @@ public PlayFabResult<SetTitleDataResult> call() throws Exception {
}
}

/** Updates the key-value store of custom title settings which cannot be read by the client */
/**
* Updates the key-value store of custom title settings which cannot be read by the client. These values can be used to
* tweak settings used by game servers and Cloud Scripts without the need to update and re-deploy.
*/
@SuppressWarnings("unchecked")
private static PlayFabResult<SetTitleDataResult> privateSetTitleInternalDataAsync(final SetTitleDataRequest request) throws Exception {
if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception ("Must have PlayFabSettings.DeveloperSecretKey set to call this method");
Expand Down
17 changes: 12 additions & 5 deletions PlayFabSDK/src/main/java/com/playfab/PlayFabAdminModels.java
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,14 @@ public static class CheckLimitedEditionItemAvailabilityResult {

}

public static class ChurnPredictionSegmentFilter {
/** Comparison */
public SegmentFilterComparison Comparison;
/** RiskLevel */
public ChurnRiskLevel RiskLevel;

}

public static enum ChurnRiskLevel {
NoData,
LowRisk,
Expand Down Expand Up @@ -3859,6 +3867,8 @@ public static class SegmentAndDefinition {
public AdCampaignSegmentFilter AdCampaignFilter;
/** property for all player filter. */
public AllPlayersSegmentFilter AllPlayersFilter;
/** Filter property for player churn risk level. */
public ChurnPredictionSegmentFilter ChurnPredictionFilter;
/** Filter property for first login date. */
public FirstLoginDateSegmentFilter FirstLoginDateFilter;
/** Filter property for first login timespan. */
Expand Down Expand Up @@ -4514,11 +4524,8 @@ public static class SetTitleDataAndOverridesResult {
}

/**
* This API method is designed to store title specific values which can be read by the client. For example, a developer
* could choose to store values which modify the user experience, such as enemy spawn rates, weapon strengths, movement
* speeds, etc. This allows a developer to update the title without the need to create, test, and ship a new build. This
* operation is additive. If a Key does not exist in the current dataset, it will be added with the specified Value. If it
* already exists, the Value for that key will be overwritten with the new Value.
* This operation is additive. If a Key does not exist in the current dataset, it will be added with the specified Value.
* If it already exists, the Value for that key will be overwritten with the new Value.
*/
public static class SetTitleDataRequest {
/**
Expand Down
12 changes: 0 additions & 12 deletions PlayFabSDK/src/main/java/com/playfab/PlayFabCloudScriptModels.java
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,6 @@ public static class PostFunctionResultForFunctionExecutionRequest {
public static class PostFunctionResultForPlayerTriggeredActionRequest {
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
public Map<String,String> CustomTags;
/**
* The optional entity to perform this action on. Defaults to the currently logged in entity.
* @deprecated Do not use
*/
@Deprecated
public EntityKey Entity;
/** The result of the function execution. */
public ExecuteFunctionResult FunctionResult;
/** The player profile the function was invoked with. */
Expand All @@ -684,12 +678,6 @@ public static class PostFunctionResultForPlayerTriggeredActionRequest {
public static class PostFunctionResultForScheduledTaskRequest {
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
public Map<String,String> CustomTags;
/**
* The entity to perform this action on.
* @deprecated Do not use
*/
@Deprecated
public EntityKey Entity;
/** The result of the function execution */
public ExecuteFunctionResult FunctionResult;
/** The id of the scheduled task that invoked the function. */
Expand Down
6 changes: 3 additions & 3 deletions PlayFabSDK/src/main/java/com/playfab/PlayFabSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import com.playfab.PlayFabErrors.ErrorCallback;

public class PlayFabSettings {
public static String SdkVersion = "0.178.221207";
public static String BuildIdentifier = "adobuild_javasdk_8";
public static String SdkVersionString = "JavaSDK-0.178.221207";
public static String SdkVersion = "0.180.230123";
public static String BuildIdentifier = "adobuild_javasdk_114";
public static String SdkVersionString = "JavaSDK-0.180.230123";

public static Map<String, String> RequestGetParams;
static {
Expand Down
12 changes: 12 additions & 0 deletions PlayFabSDK/src/test/java/com/playfab/test/PlayFabApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import java.util.*;
import java.io.*;
import java.lang.Thread;
import java.util.Properties;

import com.google.gson.*;
Expand Down Expand Up @@ -38,6 +39,7 @@ public class PlayFabApiTest
private static String entityId = null;
private static String entityType = null;

private static Random rand = new Random();
// Helpers
private <RT> void VerifyResult(PlayFabResult<RT> result, boolean expectSuccess)
{
Expand All @@ -53,6 +55,16 @@ private <RT> void VerifyResult(PlayFabResult<RT> result, boolean expectSuccess)
assertNull(errorMessage, result.Result);
assertNotNull(errorMessage, result.Error);
}

// Add a rest to the tests so they don't throttle themselves.
try
{
Thread.sleep(rand.nextInt(1000));
}
catch(Exception e)
{
System.out.println(e);
}
}

private <RT> String CompileErrorsFromResult(PlayFabResult<RT> result)
Expand Down
2 changes: 1 addition & 1 deletion PlayFabServerSDK/packageMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ New-Item -ItemType Directory -Force ./builds
popd

cd target
Copy-Item server-sdk-0.178.221207.jar -Destination ../../builds/server-sdk-0.178.221207.jar
Copy-Item server-sdk-0.180.230123.jar -Destination ../../builds/server-sdk-0.180.230123.jar
2 changes: 1 addition & 1 deletion PlayFabServerSDK/packageMe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ mkdir -p ./builds
popd

cd target
cp server-sdk-0.178.221207.jar ../../builds/server-sdk-0.178.221207.jar
cp server-sdk-0.180.230123.jar ../../builds/server-sdk-0.180.230123.jar
Loading

0 comments on commit c8b6056

Please sign in to comment.