Skip to content

Commit

Permalink
Merge pull request #70 from TaloDev/develop
Browse files Browse the repository at this point in the history
Release 0.20.0
  • Loading branch information
tudddorrr authored Aug 1, 2024
2 parents 7d86975 + cf11f19 commit b222a90
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 167 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ jobs:
cd Release
npm pack
- name: Set itch package path
id: find-package
- name: Remove the version from the artifact name
run: |
filepath="`ls Release | grep .tgz`"
echo "filepath=$filepath" >> $GITHUB_OUTPUT
filepath=$(ls Release/*.tgz)
new_filepath=$(echo "$filepath" | sed -E 's/-[0-9]+\.[0-9]+\.[0-9]+\.tgz$/.tgz/')
mv "$filepath" "$new_filepath"
- name: Upload to itch
uses: manleydev/butler-publish-itchio-action@master
Expand All @@ -66,7 +66,7 @@ jobs:
CHANNEL: package
ITCH_GAME: talo-unity
ITCH_USER: sleepystudios
PACKAGE: Release/${{ steps.find-package.outputs.filepath }}
PACKAGE: Release/com.trytalo.talo.tgz
VERSION: ${{ github.ref_name }}

- name: Create release
Expand Down
11 changes: 11 additions & 0 deletions Packages/com.trytalo.talo/Runtime/PlayerAuthAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,16 @@ public async Task ResetPassword(string code, string password)
});
await Call(uri, "POST", content);
}

public async Task ToggleVerification(string currentPassword, bool verificationEnabled, string email = "")
{
var uri = new Uri(baseUrl + "/toggle_verification");
string content = JsonUtility.ToJson(new PlayerAuthToggleVerificationRequest {
currentPassword = currentPassword,
verificationEnabled = verificationEnabled,
email = email
});
await Call(uri, "PATCH", content);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace TaloGameServices
{
[System.Serializable]
public class PlayerAuthToggleVerificationRequest
{
public string currentPassword;
public bool verificationEnabled;
public string email;
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Packages/com.trytalo.talo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.trytalo.talo",
"version": "0.19.0",
"version": "0.20.0",
"displayName": "Talo Game Services",
"description": "Talo (https://trytalo.com) is an open-source game backend with services designed to help you build games faster. You can currently:\n\n- Identify and authenticate players\n- Store persistent data across players\n- Track events (levelling up, finding loot, etc)\n- Display high scores with leaderboards\n- Store and load player saves\n- Load game config options and flags from the cloud\n- Get feedback directly from your players",
"unity": "2022.3",
Expand Down
Loading

0 comments on commit b222a90

Please sign in to comment.