-
Notifications
You must be signed in to change notification settings - Fork 12
[ID-3859] feat: Passport prefab #539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
CodeSchwert
wants to merge
33
commits into
main
Choose a base branch
from
feat/passport-prefab
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
e556262
feat(passport): add passport manager prefab
CodeSchwert 8b3fc3b
feat(passport): add prefab to package samples
CodeSchwert 20df644
feat(passport): add ui controller example
CodeSchwert b43ecd7
docs(passport): add passport manager samples readme
CodeSchwert d8d02be
docs(passport): lint fix prefab samples readme
CodeSchwert a817e63
fix(passport): fix deeplinking log path
CodeSchwert a49ace5
feat: add prefab with ui elements baked in
CodeSchwert 111be79
update README
CodeSchwert 65cf736
Merge branch 'main' into feat/passport-prefab
CodeSchwert 5ff7369
feat: add marketing consent support to sdk and prefab
CodeSchwert 8e44b05
chore: lint trailing white space
CodeSchwert 2d241c8
chore: remove comment
CodeSchwert 84ae7a6
docs: update tooltips and quick start
CodeSchwert fa31da3
docs: default login method setting
CodeSchwert 2900b39
chore: lint fix
CodeSchwert a9c6fce
feat(tests): implement reliable CI authentication automation
CodeSchwert 5e5b616
fix(ci): prevent parallel UI tests from competing for same email inbox
CodeSchwert 8c13d0f
refactor: decouple UI components from core SDK
CodeSchwert 32cd757
ci: prevent unnecessary test cancellations in UI workflow
CodeSchwert fe27997
fix: implement smart login with state-aware authentication flow
CodeSchwert 9aa31f7
ci: skipping imx transfer tests
CodeSchwert 19c9330
ci: skip imx tests for mac
CodeSchwert c3fac60
ci: debug login button
CodeSchwert 90d3de0
test: force clean Unity state on test startup
CodeSchwert 4caf298
Merge branch 'main' into feat/passport-prefab
CodeSchwert 93bdf88
chore: post merge tidy up
CodeSchwert 55227f3
chore: cleanup deps
CodeSchwert bc55364
chore: revert unitask version
CodeSchwert 16a30f4
chore: revert unitask version
CodeSchwert 13c9390
docs: american english typos
CodeSchwert c005c8c
feat: social login button prefabs
nattb8 2840b94
feat: passport login ui prefab
CodeSchwert 178fcb9
chore: move asset to correct folder
CodeSchwert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/Packages/Passport/Runtime/Scripts/Private/Model/MarketingConsentStatus.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
|
||
namespace Immutable.Passport.Model | ||
{ | ||
/// <summary> | ||
/// Enum representing marketing consent status. | ||
/// </summary> | ||
[Serializable] | ||
public enum MarketingConsentStatus | ||
{ | ||
OptedIn, | ||
Unsubscribed | ||
} | ||
|
||
/// <summary> | ||
/// Extension methods for MarketingConsentStatus enum. | ||
/// </summary> | ||
public static class MarketingConsentStatusExtensions | ||
{ | ||
/// <summary> | ||
/// Converts the enum value to the string format expected by the game bridge. | ||
/// </summary> | ||
/// <param name="status">The marketing consent status</param> | ||
/// <returns>The corresponding string value</returns> | ||
public static string ToApiString(this MarketingConsentStatus status) | ||
{ | ||
return status switch | ||
{ | ||
MarketingConsentStatus.OptedIn => "opted_in", | ||
MarketingConsentStatus.Unsubscribed => "unsubscribed", | ||
_ => throw new ArgumentOutOfRangeException(nameof(status), status, "Unknown MarketingConsentStatus value") | ||
}; | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/Packages/Passport/Runtime/Scripts/Private/Model/MarketingConsentStatus.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/Packages/Passport/Samples~/PassportManagerPrefab/Immutable.Passport.Samples.asmdef
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "Immutable.Passport.Samples", | ||
"rootNamespace": "Immutable.Passport", | ||
"references": [ | ||
"Immutable.Passport.Runtime.Public", | ||
"Immutable.Passport.Runtime.Private", | ||
"Immutable.Passport.Core.Logging", | ||
"Immutable.Browser.Core", | ||
"UniTask", | ||
"Unity.Modules.UI", | ||
"Unity.TextMeshPro" | ||
], | ||
"includePlatforms": [ | ||
"Android", | ||
"Editor", | ||
"iOS", | ||
"macOSStandalone", | ||
"WebGL", | ||
"WindowsStandalone64" | ||
], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": false, | ||
"precompiledReferences": [], | ||
"autoReferenced": false, | ||
"defineConstraints": [], | ||
"versionDefines": [], | ||
"noEngineReferences": false | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.