Skip to content

Commit

Permalink
Merge pull request #13 from openforge/development
Browse files Browse the repository at this point in the history
Merge branch 'development' into 'main' for v1.0.3
  • Loading branch information
Ricardo385 authored Sep 18, 2023
2 parents 2df18db + 7748ae3 commit 1b27405
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 22 deletions.
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

0 comments on commit 1b27405

Please sign in to comment.