Skip to content

Commit

Permalink
docs(README): Add plugin version table
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Jun 9, 2023
1 parent 7fd742f commit 4d45bc0
Showing 1 changed file with 36 additions and 21 deletions.
57 changes: 36 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@ Capacitor community plugin for native market for Play Store/App Store.

## Maintainers

| Maintainer | GitHub | Social | Sponsoring Company |
| -----------| -------| -------| -------------------|
| Priyank Patel | [priyankpat](https://github.com/priyankpat) | [@priyankpat_](https://twitter.com/priyankpat_) | Ionic |
| Maintainer | GitHub | Social | Sponsoring Company |
| ------------- | ------------------------------------------- | ------------------------------------------------ | ------------------ |
| Priyank Patel | [priyankpat](https://github.com/priyankpat) | [@priyankpat\_](https://twitter.com/priyankpat_) | Ionic |

Maintenance Status: Actively Maintained

## Plugin versions

| Capacitor version | Plugin version |
| ----------------- | -------------- |
| 5.x | 5.x |
| 4.x | 4.x |
| < 3.x | 1.x |

## Installation

To use npm
Expand Down Expand Up @@ -38,18 +46,25 @@ Android Platform: Register the plugin in your main activity:
import com.getcapacitor.community.nativemarket.NativeMarket;

public class MainActivity extends BridgeActivity {

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// Initializes the Bridge
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
// Additional plugins you've installed go here
// Ex: add(TotallyAwesomePlugin.class);
add(NativeMarket.class);
}});
this.init(
savedInstanceState,
new ArrayList<Class<? extends Plugin>>() {
{
// Additional plugins you've installed go here
// Ex: add(TotallyAwesomePlugin.class);
add(NativeMarket.class);
}
}
);
}
}

```

## Configuration
Expand All @@ -58,18 +73,18 @@ No configuration required for this plugin

## Supported methods

| Name | Android | iOS | Web
| :---- | :--- | :--- | :--- |
| openStoreListing | ✅ | ✅ | ❌
| openDevPage | ✅ | ❌ | ❌
| openCollection | ✅ | ❌ | ❌
| openEditorChoicePage | ✅ | ❌ | ❌
| search | ✅ | ✅ | ❌
| Name | Android | iOS | Web |
| :------------------- | :------ | :-- | :-- |
| openStoreListing | | | |
| openDevPage | | | |
| openCollection | | | |
| openEditorChoicePage | | | |
| search | | | |

## Usage

```typescript
import { Plugins } from '@capacitor/core';
import { Plugins } from "@capacitor/core";

const { NativeMarket } = Plugins;

Expand All @@ -79,7 +94,7 @@ const { NativeMarket } = Plugins;
* @returns void
*/
NativeMarket.openStoreListing({
appId: 'com.example.app',
appId: "com.example.app",
});

/**
Expand All @@ -88,7 +103,7 @@ NativeMarket.openStoreListing({
* @returns void
*/
NativeMarket.openDevPage({
devId: '5700313618786177705',
devId: "5700313618786177705",
});

/**
Expand All @@ -97,7 +112,7 @@ NativeMarket.openDevPage({
* @returns void
*/
NativeMarket.openCollection({
name: 'featured',
name: "featured",
});

/**
Expand All @@ -106,7 +121,7 @@ NativeMarket.openCollection({
* @returns void
*/
NativeMarket.openEditorChoicePage({
editorChoice: 'editorial_fitness_apps_us',
editorChoice: "editorial_fitness_apps_us",
});

/**
Expand All @@ -115,6 +130,6 @@ NativeMarket.openEditorChoicePage({
* @returns void
*/
NativeMarket.search({
terms: 'capacitor',
terms: "capacitor",
});
```

0 comments on commit 4d45bc0

Please sign in to comment.