Skip to content

Commit

Permalink
update demo, fix tsc error, add prettier && bump that shiz
Browse files Browse the repository at this point in the history
  • Loading branch information
bradmartin committed Sep 4, 2017
1 parent bbb3732 commit 5b4fac1
Show file tree
Hide file tree
Showing 13 changed files with 468 additions and 363 deletions.
6 changes: 3 additions & 3 deletions audio.android.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* Option interfaces
*/
export * from './src/options';
export * from "./src/options";

/**
* Player
*/
export * from './src/android/player';
export * from "./src/android/player";

/**
* Recorder
*/
export * from './src/android/recorder';
export * from "./src/android/recorder";
7 changes: 3 additions & 4 deletions audio.ios.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
/**
* Option interfaces
*/
export * from './src/options';
export * from "./src/options";

/**
* Player
*/
export * from './src/ios/player';
export * from "./src/ios/player";

/**
* Recorder
*/
export * from './src/ios/recorder';

export * from "./src/ios/recorder";
4 changes: 2 additions & 2 deletions demo/app/app.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import * as application from 'application';
application.start({ moduleName: 'main-page' });
import * as application from "application";
application.start({ moduleName: "main-page" });
14 changes: 7 additions & 7 deletions demo/app/main-page.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import * as app from 'application';
import {Color} from 'color';
import * as platform from 'platform';
import {AudioDemo} from "./main-view-model";
import * as app from "tns-core-modules/application";
import { Color } from "tns-core-modules/color";
import * as platform from "tns-core-modules/platform";
import { AudioDemo } from "./main-view-model";

function pageLoaded(args) {
var page = args.object;
page.bindingContext = new AudioDemo(page);

if (app.android && platform.device.sdkVersion >= "21") {
var window = app.android.startActivity.getWindow();
window.setNavigationBarColor(new Color("#C2185B").android);
var window = app.android.startActivity.getWindow();
window.setNavigationBarColor(new Color("#C2185B").android);
}
}
exports.pageLoaded = pageLoaded;
Loading

0 comments on commit 5b4fac1

Please sign in to comment.