Skip to content
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

Merge branch 'development' into 'main' for v1.0.3 #13

Merged
merged 3 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,13 @@ Before use the `Achievement Methods` of the plugin, you need to setup your Achie
### signIn()

```typescript
signIn() => Promise<void>
signIn() => Promise<{ player_name: string; player_id: string; }>
```

* Method to sign-in a user

**Returns:** <code>Promise&lt;{ player_name: string; player_id: string; }&gt;</code>

--------------------


Expand Down
4 changes: 2 additions & 2 deletions dist/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"methods": [
{
"name": "signIn",
"signature": "() => Promise<void>",
"signature": "() => Promise<{ player_name: string; player_id: string; }>",
"parameters": [],
"returns": "Promise<void>",
"returns": "Promise<{ player_name: string; player_id: string; }>",
"tags": [],
"docs": "* Method to sign-in a user",
"complexTypes": [],
Expand Down
5 changes: 4 additions & 1 deletion dist/esm/definitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ export interface CapacitorGameConnectPlugin {
*
*
*/
signIn(): Promise<void>;
signIn(): Promise<{
player_name: string;
player_id: string;
}>;
/**
* * Method to display the Leaderboards
*
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/definitions.js.map

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

9 changes: 7 additions & 2 deletions dist/esm/web.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import { WebPlugin } from '@capacitor/core';
import type { CapacitorGameConnectPlugin } from './definitions';
export interface User {
player_id: string;
player_name: string;
}
export declare class CapacitorGameConnectWeb extends WebPlugin implements CapacitorGameConnectPlugin {
/**
* * Method to sign-in a user to Google Play Services
*
* * TODO: migrate interface to a different file
* * Add web support for signIn
*/
signIn(): Promise<void>;
signIn(): Promise<User>;
/**
* Method to display the Leaderboards view from Google Play Services SDK
*
Expand Down
5 changes: 3 additions & 2 deletions dist/esm/web.js

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

2 changes: 1 addition & 1 deletion dist/esm/web.js.map

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

5 changes: 3 additions & 2 deletions dist/plugin.cjs.js

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

2 changes: 1 addition & 1 deletion dist/plugin.cjs.js.map

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

5 changes: 3 additions & 2 deletions dist/plugin.js

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

Loading