import NodeKinvey from 'kinvey-node-sdk';
import { CacheRack } from './rack';
import Popup from './popup';
import assign from 'lodash/assign';

export default class Kinvey extends NodeKinvey {
  static init(options = {}) {
    options = assign({
      cacheRack: new CacheRack(),
      popupClass: Popup
    }, options);
    return super.init(options);
  }
}

import NodeKinvey from 'kinvey-node-sdk';
import { CacheRack } from './rack';
import Popup from './popup';
import Device from './device';
import assign from 'lodash/assign';

export default class Kinvey extends NodeKinvey {
  static init(options = {}) {
    options = assign({
      cacheRack: new CacheRack(),
      deviceClass: Device,
      popupClass: Popup
    }, options);
    return super.init(options);
  }
}

Use Device module for deviceClass
Use Device module for deviceClass
