Add AngularFire2 so we can use it in our ionic application.

This commit is contained in:
Jeremy Wall (zaphar) 2017-10-22 14:52:24 -05:00
parent bb11af767b
commit 46099bbf32
4 changed files with 121 additions and 107 deletions

View File

@ -66,7 +66,6 @@
<feature name="SplashScreen">
<param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen" />
</feature>
<engine name="android" spec="^6.2.3" />
<plugin name="cordova-plugin-console" spec="^1.0.5" />
<plugin name="cordova-plugin-crosswalk-webview" spec="^2.3.0">
<variable name="XWALK_VERSION" value="23+" />
@ -80,4 +79,5 @@
<plugin name="cordova-plugin-statusbar" spec="^2.2.3" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.1" />
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
<engine name="android" spec="^6.2.3" />
</widget>

View File

@ -32,6 +32,7 @@
"@ionic-native/splash-screen": "3.12.1",
"@ionic-native/status-bar": "3.12.1",
"@ionic/storage": "2.0.1",
"angularfire2": "^5.0.0-rc.3",
"cordova-android": "^6.2.3",
"cordova-plugin-console": "^1.0.5",
"cordova-plugin-crosswalk-webview": "^2.3.0",

0
DynamicBibleIonic/platforms/android/cordova/version Normal file → Executable file
View File

View File

@ -23,6 +23,18 @@ import { StrongsModal } from '../components/strongs-modal/strongs-modal';
import { ErrorMessage } from '../components/error-message/error-message';
import { VersePickerModal } from '../components/verse-picker/verse-picker';
import {AngularFireModule } from 'angularfire2';
export const firebaseConfig = {
apiKey: 'AIzaSyA3UV4s56CV2EumgvZmyJBTyU-vhv0xhc8',
authDomain: 'dynamicbible-7c6cf.firebaseapp.com',
databaseURL: 'https://dynamicbible-7c6cf.firebaseio.com',
projectId: 'dynamicbible-7c6cf',
// TODO(jwall): What is a storage bucket?
storageBucket: '',
messagingSenderId: '200739882604'
};
@NgModule({
declarations: [
MyApp,
@ -42,7 +54,8 @@ import { VersePickerModal } from '../components/verse-picker/verse-picker';
IonicModule.forRoot(MyApp),
IonicStorageModule.forRoot(),
BrowserModule,
HttpModule
HttpModule,
AngularFireModule.initializeApp(firebaseConfig)
],
bootstrap: [IonicApp],
entryComponents: [