Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ceb3f33
commit 2fe477f
Showing
15 changed files
with
353 additions
and
411 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,63 @@ | ||
matrix: | ||
include: | ||
- os: linux | ||
language: android | ||
- stage: "Lint" | ||
language: node_js | ||
os: linux | ||
node_js: "10" | ||
script: cd src && npm run ci.tslint | ||
- stage: "WebPack, Build" | ||
os: osx | ||
env: | ||
- WebPack="iOS" | ||
osx_image: xcode11.2 | ||
language: node_js | ||
node_js: "10" | ||
jdk: oraclejdk8 | ||
before_script: | ||
- echo no | android create avd --force -n test -t android-21 -b armeabi-v7a | ||
- emulator -avd test -no-audio -no-window & | ||
- android-wait-for-emulator | ||
before_install: | ||
- nvm install 6 | ||
before_script: pod repo update | ||
script: cd demo && npm run build.plugin && npm i && tns build ios --bundle --env.uglify | ||
- language: android | ||
os: linux | ||
env: | ||
- WebPack="Android" | ||
jdk: oraclejdk8 | ||
dist: trusty | ||
before_install: nvm install 10 | ||
script: cd demo && npm run build.plugin && npm i && tns build android --bundle --env.uglify --env.snapshot | ||
- language: android | ||
env: | ||
- BuildAndroid="28" | ||
os: linux | ||
jdk: oraclejdk8 | ||
dist: trusty | ||
before_install: nvm install 10 | ||
script: | ||
- npm run setup | ||
- npm run tslint | ||
- npm run demo.android | ||
- cd src && npm i && npm run tsc && cd ../demo && tns build android | ||
- os: osx | ||
env: | ||
- BuildiOS="12" | ||
- Xcode="11.0" | ||
osx_image: xcode11.2 | ||
language: node_js | ||
node_js: "10" | ||
jdk: oraclejdk8 | ||
before_script: pod repo update | ||
script: | ||
- cd src && npm i && npm run tsc && cd ../demo && tns build ios | ||
|
||
android: | ||
components: | ||
- tools | ||
- platform-tools | ||
- build-tools-25.0.2 | ||
- android-25 | ||
- build-tools-28.0.3 | ||
- android-28 | ||
- extra-android-m2repository | ||
- sys-img-armeabi-v7a-android-21 | ||
|
||
before_install: | ||
- sudo pip install --upgrade pip | ||
- sudo pip install six | ||
|
||
install: | ||
- echo no | npm install -g nativescript | ||
- tns usage-reporting disable | ||
- tns error-reporting disable | ||
- echo no | npm install -g nativescript | ||
- tns usage-reporting disable | ||
- tns error-reporting disable |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<Frame defaultPage="main-page"/> |
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 +1,2 @@ | ||
@import '~nativescript-theme-core/css/core.light.css'; | ||
@import "~@nativescript/theme/css/core.css"; | ||
@import "~@nativescript/theme/css/default.css"; |
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,2 +1,3 @@ | ||
import * as application from "tns-core-modules/application"; | ||
application.run({ moduleName: "main-page" }); | ||
import { Application } from "@nativescript/core"; | ||
|
||
Application.run({moduleName: "app-root"}); |
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,10 +1,8 @@ | ||
import * as observable from "tns-core-modules/data/observable"; | ||
import * as pages from "tns-core-modules/ui/page"; | ||
import {HelloWorldModel} from "./main-view-model"; | ||
import { NavigatedData, Page } from "@nativescript/core"; | ||
import { HelloWorldModel } from "./main-view-model"; | ||
|
||
// Event handler for Page 'loaded' event attached in main-page.xml | ||
export function pageLoaded(args: observable.EventData) { | ||
export function navigatingTo(args: NavigatedData) { | ||
// Get the event sender | ||
let page = <pages.Page>args.object; | ||
const page = <Page>args.object; | ||
page.bindingContext = new HelloWorldModel(); | ||
} |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { NativeScriptConfig } from '@nativescript/core'; | ||
|
||
export default { | ||
id: 'org.nativescript.plugin.speechrecognition', | ||
appResourcesPath: 'app/App_Resources', | ||
android: { | ||
v8Flags: '--expose_gc', | ||
markingMode: 'none', | ||
} | ||
} as NativeScriptConfig; |
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,23 @@ | ||
{ | ||
"nativescript": { | ||
"id": "org.nativescript.plugin.speechrecognition", | ||
"tns-ios": { | ||
"version": "6.0.0-rc-2019-06-28-105002-01" | ||
}, | ||
"tns-android": { | ||
"version": "6.0.0-rc-2019-06-27-172817-03" | ||
} | ||
}, | ||
"dependencies": { | ||
"nativescript-speech-recognition": "../src", | ||
"nativescript-theme-core": "~1.0.6", | ||
"@nativescript/theme": "~2.3.3", | ||
"nativescript-unit-test-runner": "~0.6.4", | ||
"tns-core-modules": "6.0.0-rc-2019-06-28-175837-02" | ||
"@nativescript/core": "~7.0.5" | ||
}, | ||
"devDependencies": { | ||
"@nativescript/android": "7.0.0", | ||
"@nativescript/ios": "7.0.0", | ||
"@nativescript/types": "~7.0.4", | ||
"@nativescript/webpack": "~3.0.4", | ||
"babel-traverse": "6.26.0", | ||
"babel-types": "6.26.0", | ||
"babylon": "6.18.0", | ||
"lazy": "1.0.11", | ||
"nativescript-dev-webpack": "1.0.0-rc-2019-07-02-161545-02", | ||
"tns-platform-declarations": "6.0.0-rc-2019-06-28-175837-02", | ||
"typescript": "3.4.1" | ||
"typescript": "~3.9.7" | ||
}, | ||
"main": "app.js", | ||
"scripts": { | ||
"build.plugin": "cd ../src && npm run build" | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.