-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from taras-omelchuk/master
Updates for Blackberry Dynamics SDK for Cordova 12.0 release
- Loading branch information
Showing
21 changed files
with
117 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,12 @@ This sample application is written using the Ionic framework. It demonstrates us | |
* Secure Storage Management | ||
|
||
## Requirements | ||
* Node 14.x.x | ||
* Ionic 6 | ||
* Cordova 11.0.0, 11.1.0 | ||
* Dynamics SDK for Cordova v11.1 | ||
* Dynamics SDK for iOS v11.1, v11.2 | ||
* Dynamics SDK for Android v11.1, v11.2 | ||
* Node 18.x.x | ||
* Ionic 7 | ||
* Cordova 11.0, 11.1, 12.0 | ||
* Dynamics SDK for Cordova v12.0 | ||
* Dynamics SDK for iOS v12.0 or previous releases (v11.1, v11.2) | ||
* Dynamics SDK for Android v12.0 or previous releases (v11.1, v11.2) | ||
|
||
## Author(s) | ||
* [Volodymyr Taliar](mailto:[email protected]), [Taras Brateiko](mailto:[email protected]), [Taras Omelchuk](mailto:[email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,21 @@ | ||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; | ||
import { TestBed, async } from '@angular/core/testing'; | ||
|
||
import { Platform } from '@ionic/angular'; | ||
import { SplashScreen } from '@ionic-native/splash-screen/ngx'; | ||
import { StatusBar } from '@ionic-native/status-bar/ngx'; | ||
import { TestBed } from '@angular/core/testing'; | ||
|
||
import { AppComponent } from './app.component'; | ||
|
||
describe('AppComponent', () => { | ||
|
||
let statusBarSpy, splashScreenSpy, platformReadySpy, platformSpy; | ||
|
||
beforeEach(async(() => { | ||
statusBarSpy = jasmine.createSpyObj('StatusBar', ['styleDefault']); | ||
splashScreenSpy = jasmine.createSpyObj('SplashScreen', ['hide']); | ||
platformReadySpy = Promise.resolve(); | ||
platformSpy = jasmine.createSpyObj('Platform', { ready: platformReadySpy }); | ||
|
||
TestBed.configureTestingModule({ | ||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [AppComponent], | ||
schemas: [CUSTOM_ELEMENTS_SCHEMA], | ||
providers: [ | ||
{ provide: StatusBar, useValue: statusBarSpy }, | ||
{ provide: SplashScreen, useValue: splashScreenSpy }, | ||
{ provide: Platform, useValue: platformSpy }, | ||
], | ||
}).compileComponents(); | ||
})); | ||
}); | ||
|
||
it('should create the app', () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
const app = fixture.debugElement.componentInstance; | ||
const app = fixture.componentInstance; | ||
expect(app).toBeTruthy(); | ||
}); | ||
|
||
it('should initialize the app', async () => { | ||
TestBed.createComponent(AppComponent); | ||
expect(platformSpy.ready).toHaveBeenCalled(); | ||
await platformReadySpy; | ||
expect(statusBarSpy.styleDefault).toHaveBeenCalled(); | ||
expect(splashScreenSpy.hide).toHaveBeenCalled(); | ||
}); | ||
|
||
// TODO: add more tests! | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,9 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { Platform } from '@ionic/angular'; | ||
import { SplashScreen } from '@ionic-native/splash-screen/ngx'; | ||
import { StatusBar } from '@ionic-native/status-bar/ngx'; | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
templateUrl: 'app.component.html' | ||
}) | ||
export class AppComponent { | ||
constructor( | ||
private platform: Platform, | ||
private splashScreen: SplashScreen, | ||
private statusBar: StatusBar | ||
) { | ||
this.initializeApp(); | ||
} | ||
|
||
initializeApp() { | ||
this.platform.ready().then(() => { | ||
this.statusBar.styleDefault(); | ||
this.splashScreen.hide(); | ||
}); | ||
} | ||
constructor() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.