Skip to content

Commit

Permalink
Merge pull request #54 from capacitor-community/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Idrimi authored Oct 25, 2021
2 parents 3295649 + cba4747 commit 377b38c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 17 deletions.
7 changes: 1 addition & 6 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@
]
},
{
"login": "reslear",
"name": "reslear",
"avatar_url": "https://avatars.githubusercontent.com/u/12596485?v=4",
"profile": "https://t.me/reslear",
"contributions": [
"login": "muuvmuuv",
"name": "Marvin Heilemann",
"avatar_url": "https://avatars.githubusercontent.com/u/11534760?v=4",
Expand All @@ -74,4 +69,4 @@
],
"contributorsPerLine": 7,
"skipCi": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@CapacitorPlugin(
name = "Contacts",
//requestCodes is labeled as legacy in bridge
// requestCodes = Contacts.REQUEST_CODE,
requestCodes = Contacts.REQUEST_CODE,
permissions = { @Permission(strings = { Manifest.permission.READ_CONTACTS, Manifest.permission.WRITE_CONTACTS }, alias = "contacts") }
)
public class Contacts extends Plugin {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@capacitor-community/contacts",
"version": "1.1.1",
"version": "1.1.3",
"description": "Contacts Plugin for Capacitor",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
Expand Down
11 changes: 4 additions & 7 deletions src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,20 @@ import type { ContactsPlugin, PermissionStatus, Contact } from './definitions';

export class ContactsPluginWeb extends WebPlugin implements ContactsPlugin {
constructor() {
super({
name: 'CapContacts',
platforms: ['web'],
});
super();
}

async getPermissions(): Promise<PermissionStatus> {
throw new Error('getPermission not available');
throw this.unimplemented('getPermissions - Not implemented on web.');
}

async getContacts(): Promise<{ contacts: Contact[] }> {
throw new Error('getContacts not available');
throw this.unimplemented('getContacts - Not implemented on web.');
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
async saveContact(_: NewContact): Promise<void> {
throw new Error('getContacts not available');
throw this.unimplemented('saveContact - Not implemented on web.');
}
}

Expand Down

0 comments on commit 377b38c

Please sign in to comment.