Skip to content

Commit

Permalink
cordova project
Browse files Browse the repository at this point in the history
  • Loading branch information
shprink committed Oct 6, 2015
1 parent ef5d3b3 commit 1733d15
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 33 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -25,3 +25,5 @@ build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
platforms
plugins
37 changes: 4 additions & 33 deletions README.md
@@ -1,41 +1,12 @@
wp-api-angularjs
================
## Installation

AngularJS services to consume [WP-API v2](http://v2.wp-api.org/)
### npm

## Documentation
`npm install ionic-native-transitions --save`

<http://shprink.github.io/wp-api-angularjs/>
## Configuration

## Authentication

This library only supports basic auth. OAuth1 not being suitable for JS clients (it would mean exposing key and password out of the open)

### Basic auth

Basic auth is only secured to use if used during the app run time and used with a secured connection to your Blog (via SSL).

#### During run time

Make sure your WP-API runs with an SSL certificate (https) otherwise this will expose your credentials at every request.

Display a form for users to connect and use the following code to register credentials:

```
.controller(function(WpApi){
WpApi.setBasicCredentials(<login>, <password>);
});
```

#### During configuration

You can also set basic credentials during the configuration but use this should only be used for testing as it embed credentials in the application code.

```
.config(function(WpApiProvider){
WpApiProvider.setBasicCredentials(<login>, <password>);
});
```

## Contribute

Expand Down
31 changes: 31 additions & 0 deletions config.xml
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<widget id="com.ionicNativeTransitions" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>ionic-native-transitions</name>
<description>
Your description.
</description>
<author email="youEmail@" href="yourUrl">
YourName
</author>
<content src="index.html" />
<access origin="*" />
<allow-navigation href="http://example.com/*" />
<preference name="orientation" value="portrait" />
<preference name="fullscreen" value="false" />
<preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashScreen" value="screen" />
<!-- ANDROID -->
<preference name="android-minSdkVersion" value="14"/>
<preference name="android-targetSdkVersion" value="14"/>
<preference name="CROSSWALK_ANDROID_VERSION" value="14+" />
<preference name="android-windowSoftInputMode" value="adjustNothing" />
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true" />
</feature>
<resources>
<integer name="google_play_services_version">4323000</integer>
</resources>
</widget>
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -16,6 +16,7 @@
"runIosDevice": "npm run dumpTestDev && cordova run ios --device",
"platformAddAndroid": "cordova platform add android",
"platformAddIOS": "cordova platform add ios",
"platformAddAll": "npm run platformAddAndroid && npm run platformAddIOS",
"pluginAddAll": "cordova plugin add cordova-plugin-crosswalk-webview@1.2.0 https://github.com/Telerik-Verified-Plugins/NativePageTransitions"
},
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions www/.gitignore
@@ -0,0 +1,2 @@
*
!.gitignore

0 comments on commit 1733d15

Please sign in to comment.