Skip to content

Commit

Permalink
remove native transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
shprink committed Sep 18, 2016
1 parent 33dbc38 commit cf7a306
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
16 changes: 0 additions & 16 deletions lib/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ require 'angular-cache'
require 'angular-moment'
require 'moment'
require './font/font.coffee'
require 'ionic-native-transitions'
require 'expose?_!lodash'
require 'wp-api-angularjs'
require './config.js'
Expand Down Expand Up @@ -36,7 +35,6 @@ module.exports = app = angular.module 'wordpress-hybrid-client', [
'ionic'
'ngIOS9UIWebViewPatch'
'wordpress-hybrid-client.config'
'ionic-native-transitions'
'ui.router'
'wp-api-angularjs'
'angular-cache'
Expand Down Expand Up @@ -86,20 +84,6 @@ app.config ($logProvider, $compileProvider) ->
$logProvider.debugEnabled if IS_PROD then false else true
$compileProvider.debugInfoEnabled if IS_PROD then false else true

###
NATIVE TRANSITIONS CONF
###
app.config ($WPHCConfig, $ionicNativeTransitionsProvider) ->
defaultOptions = _.get $WPHCConfig, 'cordova.nativeTransitions.defaultOptions'
defaultTransition = _.get $WPHCConfig, 'cordova.nativeTransitions.defaultTransition'
defaultBackTransition = _.get $WPHCConfig, 'cordova.nativeTransitions.defaultBackTransition'
enabled = _.get $WPHCConfig, 'cordova.nativeTransitions.enabled'
enabled = if _.isBoolean enabled then enabled else true
$ionicNativeTransitionsProvider.setDefaultOptions defaultOptions if defaultOptions
$ionicNativeTransitionsProvider.setDefaultTransition defaultTransition if defaultTransition
$ionicNativeTransitionsProvider.setDefaultBackTransition defaultBackTransition if defaultBackTransition
$ionicNativeTransitionsProvider.enable enabled

###
IONIC CONF
###
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wordpress-hybrid-client",
"version": "2.0.0-beta11",
"version": "2.0.0-beta12",
"title": "wordpress-hybrid-client",
"description": "AngularJS client using Ionic Framework and based on the json-rest-api plugin: https://wordpress.org/plugins/json-rest-api/ with CORS enabled.",
"main": "index.js",
Expand Down Expand Up @@ -111,10 +111,6 @@
"cordova-plugin-x-toast@2.1.1",
"cordova-plugin-statusbar@1.0.1",
"cordova-plugin-google-analytics@0.8.1",
{
"locator": "https://github.com/Telerik-Verified-Plugins/NativePageTransitions#0.5.5",
"id": "com.telerik.plugins.nativepagetransitions"
},
"phonegap-plugin-push@1.5.3",
"cordova-plugin-crosswalk-webview@1.6.0",
"cordova-plugin-spinner-dialog@1.3.1",
Expand Down

0 comments on commit cf7a306

Please sign in to comment.