0.3.0 Dependency Update, Optional Translate
This release updates dependencies to the latest versions, which closes a few issues. This release has breaking changes compared to 0.2
Use @ionic-native
Ionic has restructured Ionic Native into multiple packages, rather than one monolith. We now use @ionic-native/*
package dependencies now too. This closes #13
Update Instructions
Remove ionic-native
unless you are still using it elsewhere in your app, then install the correct packages:
npm uninstall --save ionic-native
npm install --save @ionic-native/app-version @ionic-native/in-app-browser
Truly optional ngx-translate
This release also updates to a more current ngx-translate
and also fixes #16, making ngx-translate
a truly optional dependency.
Update instructions (I don't want translations)
Just uninstall ngx-translate
npm uninstall --save @ngx-translate/core
Update Instructions (I want translations)
You now need to add a provider for the translate service in order for the Angular DI to work properly. Full details are in the README and an example is in the demo app, but you need to update your application bootstrap:
import { ManUpModule, ManUpService, TRANSLATE_SERVICE } from 'ionic-manup';
@NgModule({
declarations: [MyApp, HomePage],
imports: [
...
ManUpModule.forRoot({
url: 'https://example.com/manup.json',
externalTranslations: true
})
],
providers: [
{ provide: TRANSLATE_SERVICE, useClass: TranslateService },
ManUpService,
],
})
The rest should work same as before.