Skip to content

Commit

Permalink
chore(package): update dependencies and native code
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Mar 23, 2017
1 parent aaa69c2 commit 6208852
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 16 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@
"@angular/platform-browser": "4.0.0-rc.5",
"@angular/platform-browser-dynamic": "4.0.0-rc.5",
"@angular/platform-server": "4.0.0-rc.5",
"@ionic-native/inappbrowser": "^3.0.0-alpha.1",
"@ionic-native/splashscreen": "^3.0.0-alpha.1",
"@ionic-native/core": "3.2.1",
"@ionic-native/in-app-browser": "3.2.1",
"@ionic-native/splash-screen": "3.2.1",
"@ionic/storage": "2.0.1",
"ionic-angular": "2.1.0-201703201543",
"ionic-angular": "2.1.0-201703201940",
"ionicons": "3.0.0",
"rxjs": "5.0.1",
"rxjs": "5.1.1",
"sw-toolbox": "3.4.0",
"zone.js": "0.7.2"
"zone.js": "^0.8.4"
},
"devDependencies": {
"@ionic/app-scripts": "nightly",
"@ionic/cli-plugin-cordova": "0.0.9",
"typescript": "~2.2.1"
},
"config": {
}
"config": {}
}
7 changes: 4 additions & 3 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, ViewChild } from '@angular/core';

import { Events, MenuController, Nav, Platform } from 'ionic-angular';
import { Splashscreen } from '@ionic-native/splashscreen';
import { SplashScreen } from '@ionic-native/splash-screen';

import { ConferenceData } from '../providers/conference-data';
import { UserData } from '../providers/user-data';
Expand Down Expand Up @@ -49,7 +49,8 @@ export class ConferenceApp {
public userData: UserData,
public menu: MenuController,
public platform: Platform,
public confData: ConferenceData/*,
public confData: ConferenceData,
public splashScreen: SplashScreen/*,
public storage: Storage*/
) {

Expand Down Expand Up @@ -125,7 +126,7 @@ export class ConferenceApp {
platformReady() {
// Call any initial plugins when ready
this.platform.ready().then(() => {
Splashscreen.hide();
this.splashScreen.hide();
});
}

Expand Down
14 changes: 11 additions & 3 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,31 @@ import { ConferenceApp } from './app.component';
import { ConferenceData } from '../providers/conference-data';
import { UserData } from '../providers/user-data';

import { InAppBrowser } from '@ionic-native/in-app-browser';
import { SplashScreen } from '@ionic-native/splash-screen';


@NgModule({
declarations: [
ConferenceApp
],
imports: [
BrowserModule,
HttpModule,
IonicModule.forRoot(ConferenceApp, {
preloadModules: true
}),
HttpModule,
IonicStorageModule.forRoot()
IonicStorageModule.forRoot()
],
bootstrap: [IonicApp],
entryComponents: [
ConferenceApp
],
providers: [ConferenceData, UserData]
providers: [
ConferenceData,
UserData,
InAppBrowser,
SplashScreen
]
})
export class AppModule { }
7 changes: 4 additions & 3 deletions src/pages/speaker-list/speaker-list.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component } from '@angular/core';

import { ActionSheet, ActionSheetController, Config, IonicPage, NavController } from 'ionic-angular';
import { InAppBrowser } from '@ionic-native/inappbrowser';
import { InAppBrowser } from '@ionic-native/in-app-browser';

import { ConferenceData } from '../../providers/conference-data';

Expand All @@ -19,7 +19,8 @@ export class SpeakerListPage {
public actionSheetCtrl: ActionSheetController,
public navCtrl: NavController,
public confData: ConferenceData,
public config: Config
public config: Config,
public inAppBrowser: InAppBrowser
) { }

ionViewDidLoad() {
Expand All @@ -37,7 +38,7 @@ export class SpeakerListPage {
}

goToSpeakerTwitter(speaker: any) {
new InAppBrowser(`https://twitter.com/${speaker.twitter}`, '_blank');
this.inAppBrowser.create(`https://twitter.com/${speaker.twitter}`, '_blank');
}

openSpeakerShare(speaker: any) {
Expand Down

0 comments on commit 6208852

Please sign in to comment.