Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/raczo/cordova-plugin-reverser

A simple Apache Cordova plugin that reverses every other word in a sentence.
https://github.com/raczo/cordova-plugin-reverser

Last synced: 1 day ago
JSON representation

A simple Apache Cordova plugin that reverses every other word in a sentence.

Awesome Lists containing this project

README

        

# Reverser App and Plugin

This repository contains a simple cordova app and a plugin that reverses every other word of a sentence.

## Plugin

- Name: reverserplugin
- Package: dev.oscarsalguero.reverserplugin
- Folder: reverserplugin

### What does this plugin do?

1. Receives user input, a sentence (String) from the app, consisting of a sentence and uses native code in Java for Android or Objective-C for iOS to reverse every other word in that sentence.

2. Returns the processed otput to the app's UI to show it to the user.

## App

Written in HTML, CSS and JavaScript.

1. The app captures user input trough a textarea and sends it to the cordova plugin upon tapping a button.

2. Once a processed output has been retrieved from the plugin, the app displays the output or result received from the plugin in the same textarea it was entered.

Supported platforms:

- Android
- iOS

#### Android Details:

- Activity: MainActivity
- Android target: android-30
- Created with: [email protected]


Android App Launcher Icon

Android App Launcher Icon


Android App UI With Sample Input

Android App UI With Sample Input


Android App Input Reversed By Plugin

Android App Input Reversed By Plugin


#### iOS Details:

- Created with: [email protected]


iOS App Launcher Icon

iOS App Launcher Icon


iOS App UI With Sample Input

iOS App UI With Sample Input


iOS App Input Reversed By Plugin

iOS App Input Reversed By Plugin




# How To Use

## Cloning This Repository

```
git clone https://github.com/RacZo/cordova-plugin-reverser.git reverser
```

The sample app source will be in the root of the repository folder:

```
reverser
```

The plugin's source code is in:

```
reverser/reverserplugin
```

To add the plugin:

```
cordova plugin add file:./reverserplugin
```

To remove the plugin:

```
cordova plugin remove dev.oscarsalguero.reverserplugin
```

## Also Available Via NPM

- URL: https://www.npmjs.com/package/reverserplugin