Skip to content

Commit

Permalink
updated version to 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AvoSukiasyan committed Sep 26, 2023
1 parent cfb4eba commit 43c3649
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 26 deletions.
12 changes: 5 additions & 7 deletions .idea/workspace.xml

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

48 changes: 32 additions & 16 deletions docs/metaMap-ionic-cordova.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ category: 61ae8e8dba577a0010791480

| LTS version (Recommended for most users): | Current Version(Latest features) |
|-------------------------------------------|----------------------------------|
| 2.2.1 | 2.2.1 |
| 2.3.0 | 2.3.0 |

### Install MetaMap for Cordova

Expand Down Expand Up @@ -172,27 +172,43 @@ Download the latest version of MetaMap for Android [here](https://search.maven.o
## Metadata Usage
Metadata is an additional optional parameters:
Metadata is an additional optional parameter that can be used to replace certain settings:
1. Set the Language:
```bash
yourMetadata: {"fixedLanguage": "es"}
```
### Set the Language:
By default the SDK language is set to "en" but it is editable to the language from the list:
"es", "fr", "pt", "ru", "tr", "de", "it", "pl", "th".
```bash
metaData: {"fixedLanguage": "value"}
```
2. Set the Button Color:
```bash
yourMetadata: {"buttonColor": "hexColor"}
### Set the Button Color:
By default main button color is white but it is editable by using hex Color format "hexColor".
```bash
metaData: {"buttonColor": "value"}
```
### Set the Title color of the button:
By default main button title color is black but it is editable by using hex Color format "hexColor".
```bash
metaData: {"buttonTextColor": "value"}
```
### Set identity Id as parameter for re-verification:
```bash
metaData: {"identityId": "value"}
```
3. Set the Title color of the button:
```bash
yourMetadata: {"buttonTextColor": "hexColor"}
### Set encryption Configuration Id as parameter for encrypting data.
```bash
metaData: {"encryptionConfigurationId": "value"}
```
### Set customization fonts as parameter.
to add custom fonts, the project needs to have these font files, otherwise SDK will use default fonts:
```bash
metadata: {"regularFont": "REGULAR_FONT_NAME.ttf", "boldFont": "BOLD_FONT_NAME.ttf"}
```
4. Set identity Id as parameter for re-verification:
```bash
yourMetadata: {"identityId": "value"}
```
## Some error codes you may encounter during integration
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metamap-cordova-plugin",
"version": "2.2.1",
"version": "2.3.0",
"description": "MetaMap SDK plugin",
"cordova": {
"id": "metamap-cordova-plugin",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<source url="https://cdn.cocoapods.org/" />
</config>
<pods use-frameworks="true">
<pod name="MetaMapSDK" spec="3.15.6" />
<pod name="MetaMapSDK" spec="3.16.1" />
</pods>
</podspec>

Expand Down
2 changes: 1 addition & 1 deletion src/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ repositories {
}

dependencies {
implementation 'com.metamap:android-sdk:3.35.0'
implementation 'com.metamap:android-sdk:3.36.0'
}

0 comments on commit 43c3649

Please sign in to comment.