diff --git a/.gitignore b/.gitignore index ba5df23..f86aed5 100644 --- a/.gitignore +++ b/.gitignore @@ -16,11 +16,8 @@ seed-tests/seed-copy-new-git-repo/**/*.* !demo/karma.conf.js !demo/app/tests/*.js demo/*.d.ts -demo-ng/*.d.ts !demo/references.d.ts -!demo-ng/references.d.ts demo/platforms -demo-ng/platforms node_modules publish/src publish/package diff --git a/.travis.yml b/.travis.yml index a41fa1c..3bcb6a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ matrix: os: osx env: - WebPack="iOS" - osx_image: xcode10.2 + osx_image: xcode11.2 language: node_js node_js: "10" jdk: oraclejdk8 @@ -35,8 +35,8 @@ matrix: - os: osx env: - BuildiOS="12" - - Xcode="10.0" - osx_image: xcode10.2 + - Xcode="11.0" + osx_image: xcode11.2 language: node_js node_js: "10" jdk: oraclejdk8 diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 283cf25..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,410 +0,0 @@ -# Changelog - -## [3.4.1](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/3.4.1) (2019-11-10) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/45?closed=1) - - -## [3.4.0](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/3.4.0) (2019-09-29) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/44?closed=1) - - -## [3.3.2](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/3.3.2) (2019-09-10) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/43?closed=1) - - -## [3.2.2](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/3.2.2) (2019-07-30) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/42?closed=1) - - -## [3.2.1](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/3.2.1) (2019-07-04) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/41?closed=1) - - -## [3.2.0](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/3.2.0) (2019-06-07) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/40?closed=1) - - -## [3.1.2](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/3.1.2) (2019-03-12) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/38?closed=1) - - -## [3.1.1](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/3.1.1) (2019-03-10) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/37?closed=1) - - -## [3.1.0](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/3.1.0) (2019-03-06) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/36?closed=1) - - -## [3.0.3](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/3.0.3) (2019-02-21) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/35?closed=1) - - -## [3.0.2](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/3.0.2) (2019-02-05) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/34?closed=1) - - -## [3.0.0](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/3.0.0) (2019-01-10) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/33?closed=1) - -> Breaking change: see https://github.com/EddyVerbruggen/nativescript-barcodescanner#a-note-about-upc_a-and-ean_13 - -## [2.7.9](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.7.9) (2018-11-16) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/32?closed=1) - - -## [2.7.8](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.7.8) (2018-07-18) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/31?closed=1) - - -## [2.7.7](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.7.7) (2018-06-14) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/30?closed=1) - - -## [2.7.6](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.7.6) (2018-03-23) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/29?closed=1) - - -## [2.7.5](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.7.5) (2018-02-12) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/28?closed=1) - - -## [2.7.4](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.7.4) (2017-12-15) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/27?closed=1) - - -## [2.7.3](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.7.3) (2017-12-15) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/26?closed=1) - - -## [2.7.2](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.7.2) (2017-12-07) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/25?closed=1) - - -## [2.7.1](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.7.1) (2017-11-10) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/24closed=1) - - -## [2.7.0](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.7.0) (2017-10-11) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/22?closed=1) - - -## [2.6.1](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.6.1) (2017-08-08) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/21?closed=1) - - -## [2.6.0](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.6.0) (2017-06-28) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/20?closed=1) - - -## [2.5.5](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.5.5) (2017-06-13) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/19?closed=1) - - -## [2.5.4](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.5.4) (2017-05-23) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/18?closed=1) - - -## [2.5.3](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.5.3) (2017-05-23) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/17?closed=1) - - -## [2.5.2](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.5.2) (2017-05-23) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/16?closed=1) - - -## [2.5.1](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.5.1) (2017-05-11) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/15?closed=1) - -**Fixed bugs:** - -- Promise not returned on android device with NS 3.0 [\#84](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/84) -- Use onActivityResult event handler rather than callback method #85 [\#85](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/85) -- Resolved bug where the scanner was opening after any permission was a.. [\#86](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/86) - - -## [2.5.0](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.5.0) (2017-04-12) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.4.2...2.5.0) - -**Implemented enhancements:** - -- nativescript-barcodescanner in NS 3.0 RC [\#80](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/80) -- Add the option to change the iOS cancel label background color [\#81](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/81) - - -## [2.4.2](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.4.2) (2017-03-27) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.4.1...2.4.2) - -**Implemented enhancements:** - -- Some Samsung devices have problems reading barcodes [\#79](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/79) - - -## [2.4.1](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.4.1) (2017-03-25) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.4.0...2.4.1) - -**Fixed bugs:** - -- Crash can occur in Android runtimes because of missing AndroidManifest settings [\#77](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/77) - -## [2.4.0](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.4.0) (2017-02-04) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.3.3...2.4.0) - -**Implemented enhancements:** - -- Smoother autofocus on capable devices [\#75](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/75) -- Add an option to play/suppress a sound upon scanning [\#74](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/74) - -**Closed issues:** - -- Android zxing library [\#71](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/71) -- null is not an object \(evaluating 'device.autoFocusRangeRestrictionSupported'\) [\#70](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/70) -- Keyboard cover the text field after launch barcodescanner [\#68](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/68) -- RouterExtensions.navigate not working after scan. [\#58](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/58) -- Add support for MaxiCode on iOS [\#32](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/32) - -## [2.3.3](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.3.3) (2017-01-05) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.3.2...2.3.3) - -**Fixed bugs:** - -- BarcodeScanner crashes app in iOS 9.3 / iPad 2 [\#69](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/69) - -## [2.3.2](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.3.2) (2016-12-22) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.2.1...2.3.2) - -**Implemented enhancements:** - -- Allow starting the scanner with the torch switched ON [\#67](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/67) -- Hide the scan result to be display after scanned [\#65](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/65) -- @ng-tools/webpack compatibility [\#66](https://github.com/EddyVerbruggen/nativescript-barcodescanner/pull/66) ([hdeshev](https://github.com/hdeshev)) - -**Closed issues:** - -- zxing again / still [\#64](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/64) -- Does not work on android [\#22](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/22) - -## [2.2.1](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.2.1) (2016-12-20) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.2.0...2.2.1) - -**Implemented enhancements:** - -- Add an optional 'toggle torch' button on Android [\#60](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/60) -- Webpack compatibility [\#63](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/63) - -## [2.2.0](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.2.0) (2016-12-03) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.1.5...2.2.0) - -**Implemented enhancements:** - -- Add support for 'inverted codes' on Android \(white code on black background\) [\#61](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/61) - -**Fixed bugs:** - -- Have 'available' return 'false' on iOS simulator [\#59](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/59) - -**Closed issues:** - -- Running demo does not work [\#57](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/57) - -## [2.1.5](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.1.5) (2016-11-29) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.1.4...2.1.5) - -**Implemented enhancements:** - -- Trying to access/implement AVCaptureFocusMode [\#48](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/48) - -**Fixed bugs:** - -- onPermissionRejected [\#56](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/56) - -**Closed issues:** - -- No callbacks . the component re-render itself without any callbacks after the scannanig ! [\#43](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/43) - -## [2.1.4](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.1.4) (2016-11-21) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.1.3...2.1.4) - -**Implemented enhancements:** - -- fix\(android\): change currentContext to foregroundActivity [\#51](https://github.com/EddyVerbruggen/nativescript-barcodescanner/pull/51) ([sis0k0](https://github.com/sis0k0)) - -**Fixed bugs:** - -- Error after scan, Android, Nativescript 2.4 [\#50](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/50) -- App Crash after scanning a barcode \(Android\) [\#39](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/39) -- fix\\(android\\): change currentContext to foregroundActivity [\#51](https://github.com/EddyVerbruggen/nativescript-barcodescanner/pull/51) ([sis0k0](https://github.com/sis0k0)) - -## [2.1.3](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.1.3) (2016-11-04) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.1.2...2.1.3) - -**Implemented enhancements:** - -- Angular Usage Docs Need Updating [\#40](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/40) - -**Fixed bugs:** - -- make type script happy with barcodescanner.d.ts [\#47](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/47) - -**Closed issues:** - -- iOS Barcode Scanning is Broken [\#41](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/41) - -**Merged pull requests:** - -- Simplify Angular setup using classes instead of opaque tokens for DI [\#46](https://github.com/EddyVerbruggen/nativescript-barcodescanner/pull/46) ([joeskeen](https://github.com/joeskeen)) - -## [2.1.2](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.1.2) (2016-11-01) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.1.1...2.1.2) - -**Fixed bugs:** - -- Bulk scan callback is not updating after routing change [\#44](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/44) - -**Closed issues:** - -- Conflict with another similar plugin [\#42](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/42) -- angular 2 can not set reportDuplicates :false [\#45](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/45) - -## [2.1.1](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.1.1) (2016-10-17) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.1.0...2.1.1) - -**Implemented enhancements:** - -- callback after permission granted \(android 6\) [\#26](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/26) - -**Fixed bugs:** - -- Stop method doesn't work [\#38](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/38) - -**Merged pull requests:** - -- Update "Usage with 'nativescript-angular'" docs [\#37](https://github.com/EddyVerbruggen/nativescript-barcodescanner/pull/37) ([sis0k0](https://github.com/sis0k0)) - -## [2.1.0](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.1.0) (2016-10-13) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/2.0.0...2.1.0) - -## [2.0.0](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.0.0) (2016-10-13) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/1.4.1...2.0.0) - -**Implemented enhancements:** - -- flashlight button [\#23](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/23) - -**Closed issues:** - -- Configuration error [\#34](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/34) -- Error: Cannot read property 'startActivityForResult', Android 4.4.2 [\#31](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/31) - -**Merged pull requests:** - -- Add Angular Usage Instructions [\#36](https://github.com/EddyVerbruggen/nativescript-barcodescanner/pull/36) ([joeskeen](https://github.com/joeskeen)) -- Typings improvements [\#35](https://github.com/EddyVerbruggen/nativescript-barcodescanner/pull/35) ([joeskeen](https://github.com/joeskeen)) - -## [1.4.1](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/1.4.1) (2016-09-30) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/1.4.0...1.4.1) - -## [1.4.0](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/1.4.0) (2016-09-21) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/1.3.6...1.4.0) - -**Implemented enhancements:** - -- Continuous scanning [\#29](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/29) - -**Closed issues:** - -- UIApplication.sharedApplication is not a function [\#33](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/33) - -## [1.3.6](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/1.3.6) (2016-09-21) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/1.3.5...1.3.6) - -**Closed issues:** - -- Getting error on fresh hello-world-ng app: Can't find variable: QRCodeReaderDelegate [\#27](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/27) - -## [1.3.5](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/1.3.5) (2016-06-27) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/1.3.4...1.3.5) - -**Closed issues:** - -- Intent does not reolve [\#25](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/25) -- Plugin does not work [\#24](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/24) -- Error finding nativescript-barcodescanner [\#21](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/21) - -## [1.3.4](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/1.3.4) (2016-06-05) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/1.3.3...1.3.4) - -**Closed issues:** - -- Error in barcodescanner.scan: TypeError: Cannot read property 'zxing' of undefined [\#19](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/19) -- UPC\_A 12+5 Digits [\#18](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/18) - -## [1.3.3](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/1.3.3) (2016-04-23) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/1.3.2...1.3.3) - -**Implemented enhancements:** - -- PDF417 support for android is not working [\#17](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/17) - -## [1.3.2](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/1.3.2) (2016-04-21) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/1.3.1...1.3.2) - -## [1.3.1](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/1.3.1) (2016-04-16) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/1.2.2...1.3.1) - -**Implemented enhancements:** - -- Camera Auto Focus [\#9](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/9) - -**Closed issues:** - -- Using scanning a barcode breaks dialogs on Android [\#16](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/16) -- Oops. scan closing, after setted "appmodule.android.currentContext" is undefined. [\#14](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/14) -- Dialogs module stop working after calling scan function [\#13](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/13) -- No scan. TypeError: Cannot read property 'zxing' of undefined [\#8](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/8) -- Android 6.0.1 Barcode scanner image reversed. [\#7](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/7) -- Plugin does not work with AppBuilder [\#6](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/6) -- Adding another NativeScript TNS module with Library project [\#3](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/3) - -**Merged pull requests:** - -- fix screenOrientation problems for android [\#15](https://github.com/EddyVerbruggen/nativescript-barcodescanner/pull/15) ([myso-kr](https://github.com/myso-kr)) - -## [1.2.2](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/1.2.2) (2016-04-01) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/1.2.1...1.2.2) - -**Closed issues:** - -- Compilation Failed on ios [\#12](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/12) -- Android Build issue [\#11](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/11) - -## [1.2.1](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/1.2.1) (2016-02-24) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/1.2.0...1.2.1) - -**Closed issues:** - -- What barcodes types can be scanned by this plugin? [\#10](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/10) - -## [1.2.0](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/1.2.0) (2015-10-27) -[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/compare/1.0.1...1.2.0) - -**Closed issues:** - -- Cannot read property 'zxing' of undefined [\#4](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/4) - -**Merged pull requests:** - -- Cleanup [\#5](https://github.com/EddyVerbruggen/nativescript-barcodescanner/pull/5) ([EddyVerbruggen](https://github.com/EddyVerbruggen)) - -## [1.0.1](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/1.0.1) (2015-08-20) -**Closed issues:** - -- Cannot read property zxing of undefined [\#1](https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/1) - -**Merged pull requests:** - -- Plugin [\#2](https://github.com/EddyVerbruggen/nativescript-barcodescanner/pull/2) ([EddyVerbruggen](https://github.com/EddyVerbruggen)) - - - -\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* diff --git a/README.md b/README.md index c12103f..8215b58 100755 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ [twitter-image]:https://img.shields.io/twitter/follow/eddyverbruggen.svg?style=social&label=Follow%20me [twitter-url]:https://twitter.com/eddyverbruggen +> 💡 Plugin version 4.0.0+ is compatible with NativeScript 7+. If you need to target older NativeScript versions, please stick to plugin version 3.4.2. + ## Want a quick demo? > Note that running this only makes sense on a real device. @@ -31,7 +33,7 @@ npm run demo.android (or demo.ios / demo.ios.device) #### Embedded (iOS only) ```bash -npm run demo-ng.ios (or demo.ios.device) +npm run demo.ios ``` ## Supported barcode types @@ -123,8 +125,6 @@ View: ``` -See 'demo-ng' for details. Do not run it for Android, because embedding a view is not supported on that platform. - ### Embedding in Vue main.ts: diff --git a/demo-ng/app/App_Resources/Android/app.gradle b/demo-ng/app/App_Resources/Android/app.gradle deleted file mode 100644 index f56d913..0000000 --- a/demo-ng/app/App_Resources/Android/app.gradle +++ /dev/null @@ -1,16 +0,0 @@ -// Add your native dependencies here: - -// Uncomment to add recyclerview-v7 dependency -//dependencies { -// compile 'com.android.support:recyclerview-v7:+' -//} - -android { - defaultConfig { - generatedDensities = [] - applicationId = "org.nativescript.demong" - } - aaptOptions { - additionalParameters "--no-version-vectors" - } -} diff --git a/demo-ng/app/App_Resources/Android/src/main/AndroidManifest.xml b/demo-ng/app/App_Resources/Android/src/main/AndroidManifest.xml deleted file mode 100644 index c839c3c..0000000 --- a/demo-ng/app/App_Resources/Android/src/main/AndroidManifest.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png deleted file mode 100644 index eb381c2..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png deleted file mode 100755 index 9cde84c..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png deleted file mode 100644 index 5218f4c..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png deleted file mode 100644 index 748b2ad..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png deleted file mode 100755 index 4d6a674..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png deleted file mode 100644 index b9e102a..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png deleted file mode 100644 index efeaf29..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png deleted file mode 100755 index 92ccc85..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png deleted file mode 100644 index 6263387..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml b/demo-ng/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml deleted file mode 100644 index ada77f9..0000000 --- a/demo-ng/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png deleted file mode 100644 index 612bbd0..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png deleted file mode 100644 index 8bcde62..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png deleted file mode 100644 index ad8ee2f..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png deleted file mode 100644 index 0fa88e2..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png deleted file mode 100644 index 9d81c85..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png deleted file mode 100644 index 6683278..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png deleted file mode 100644 index c650f64..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png deleted file mode 100644 index 9a34d0d..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png b/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png deleted file mode 100644 index fa6331c..0000000 Binary files a/demo-ng/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/Android/src/main/res/values-v21/colors.xml b/demo-ng/app/App_Resources/Android/src/main/res/values-v21/colors.xml deleted file mode 100644 index a64641a..0000000 --- a/demo-ng/app/App_Resources/Android/src/main/res/values-v21/colors.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - #3d5afe - \ No newline at end of file diff --git a/demo-ng/app/App_Resources/Android/src/main/res/values-v21/styles.xml b/demo-ng/app/App_Resources/Android/src/main/res/values-v21/styles.xml deleted file mode 100644 index dac8727..0000000 --- a/demo-ng/app/App_Resources/Android/src/main/res/values-v21/styles.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/demo-ng/app/App_Resources/Android/src/main/res/values/colors.xml b/demo-ng/app/App_Resources/Android/src/main/res/values/colors.xml deleted file mode 100644 index 74ad882..0000000 --- a/demo-ng/app/App_Resources/Android/src/main/res/values/colors.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - #F5F5F5 - #757575 - #33B5E5 - #272734 - \ No newline at end of file diff --git a/demo-ng/app/App_Resources/Android/src/main/res/values/styles.xml b/demo-ng/app/App_Resources/Android/src/main/res/values/styles.xml deleted file mode 100644 index c793e6d..0000000 --- a/demo-ng/app/App_Resources/Android/src/main/res/values/styles.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 4034b76..0000000 --- a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "images" : [ - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "icon-29.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "icon-29@2x.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "icon-29@3x.png", - "scale" : "3x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "icon-40@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "icon-40@3x.png", - "scale" : "3x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "icon-60@2x.png", - "scale" : "2x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "icon-60@3x.png", - "scale" : "3x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "icon-29.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "icon-29@2x.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "icon-40.png", - "scale" : "1x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "icon-40@2x.png", - "scale" : "2x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "icon-76.png", - "scale" : "1x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "icon-76@2x.png", - "scale" : "2x" - }, - { - "size" : "83.5x83.5", - "idiom" : "ipad", - "filename" : "icon-83.5@2x.png", - "scale" : "2x" - }, - { - "size" : "1024x1024", - "idiom" : "ios-marketing", - "filename" : "icon-1024.png", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png deleted file mode 100644 index a1d7eb4..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png deleted file mode 100644 index bb9b9e8..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png deleted file mode 100644 index ec609dc..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png deleted file mode 100644 index a971808..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png deleted file mode 100644 index 214800e..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png deleted file mode 100644 index 8554b88..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png deleted file mode 100644 index a22626b..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png deleted file mode 100644 index a22626b..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png deleted file mode 100644 index 492c9c8..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png deleted file mode 100644 index 9208113..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png deleted file mode 100644 index 24415e5..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png deleted file mode 100644 index b3ef1bf..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/Contents.json b/demo-ng/app/App_Resources/iOS/Assets.xcassets/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/demo-ng/app/App_Resources/iOS/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json deleted file mode 100644 index 11bfcf5..0000000 --- a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json +++ /dev/null @@ -1,176 +0,0 @@ -{ - "images" : [ - { - "extent" : "full-screen", - "idiom" : "iphone", - "subtype" : "2436h", - "filename" : "Default-1125h.png", - "minimum-system-version" : "11.0", - "orientation" : "portrait", - "scale" : "3x" - }, - { - "orientation" : "landscape", - "idiom" : "iphone", - "extent" : "full-screen", - "filename" : "Default-Landscape-X.png", - "minimum-system-version" : "11.0", - "subtype" : "2436h", - "scale" : "3x" - }, - { - "extent" : "full-screen", - "idiom" : "iphone", - "subtype" : "736h", - "filename" : "Default-736h@3x.png", - "minimum-system-version" : "8.0", - "orientation" : "portrait", - "scale" : "3x" - }, - { - "extent" : "full-screen", - "idiom" : "iphone", - "subtype" : "736h", - "filename" : "Default-Landscape@3x.png", - "minimum-system-version" : "8.0", - "orientation" : "landscape", - "scale" : "3x" - }, - { - "extent" : "full-screen", - "idiom" : "iphone", - "subtype" : "667h", - "filename" : "Default-667h@2x.png", - "minimum-system-version" : "8.0", - "orientation" : "portrait", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "iphone", - "filename" : "Default@2x.png", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "2x" - }, - { - "extent" : "full-screen", - "idiom" : "iphone", - "subtype" : "retina4", - "filename" : "Default-568h@2x.png", - "minimum-system-version" : "7.0", - "orientation" : "portrait", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "ipad", - "filename" : "Default-Portrait.png", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "1x" - }, - { - "orientation" : "landscape", - "idiom" : "ipad", - "filename" : "Default-Landscape.png", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "1x" - }, - { - "orientation" : "portrait", - "idiom" : "ipad", - "filename" : "Default-Portrait@2x.png", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "2x" - }, - { - "orientation" : "landscape", - "idiom" : "ipad", - "filename" : "Default-Landscape@2x.png", - "extent" : "full-screen", - "minimum-system-version" : "7.0", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "iphone", - "filename" : "Default.png", - "extent" : "full-screen", - "scale" : "1x" - }, - { - "orientation" : "portrait", - "idiom" : "iphone", - "filename" : "Default@2x.png", - "extent" : "full-screen", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "iphone", - "filename" : "Default-568h@2x.png", - "extent" : "full-screen", - "subtype" : "retina4", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "ipad", - "extent" : "to-status-bar", - "scale" : "1x" - }, - { - "orientation" : "portrait", - "idiom" : "ipad", - "filename" : "Default-Portrait.png", - "extent" : "full-screen", - "scale" : "1x" - }, - { - "orientation" : "landscape", - "idiom" : "ipad", - "extent" : "to-status-bar", - "scale" : "1x" - }, - { - "orientation" : "landscape", - "idiom" : "ipad", - "filename" : "Default-Landscape.png", - "extent" : "full-screen", - "scale" : "1x" - }, - { - "orientation" : "portrait", - "idiom" : "ipad", - "extent" : "to-status-bar", - "scale" : "2x" - }, - { - "orientation" : "portrait", - "idiom" : "ipad", - "filename" : "Default-Portrait@2x.png", - "extent" : "full-screen", - "scale" : "2x" - }, - { - "orientation" : "landscape", - "idiom" : "ipad", - "extent" : "to-status-bar", - "scale" : "2x" - }, - { - "orientation" : "landscape", - "idiom" : "ipad", - "filename" : "Default-Landscape@2x.png", - "extent" : "full-screen", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png deleted file mode 100644 index 2913f85..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png deleted file mode 100644 index d7f17fc..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png deleted file mode 100644 index b884154..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png deleted file mode 100644 index faab4b6..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png deleted file mode 100644 index cd94a3a..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png deleted file mode 100644 index 3365ba3..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png deleted file mode 100644 index a44945c..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png deleted file mode 100644 index e6dca62..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png deleted file mode 100644 index 1a50079..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png deleted file mode 100644 index 73d8b92..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png deleted file mode 100644 index 9f1f6ce..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png deleted file mode 100644 index 514fc5c..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json deleted file mode 100644 index 4f4e9c5..0000000 --- a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "LaunchScreen-AspectFill.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "LaunchScreen-AspectFill@2x.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png deleted file mode 100644 index c293f9c..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png deleted file mode 100644 index 233693a..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json deleted file mode 100644 index 23c0ffd..0000000 --- a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "LaunchScreen-Center.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "LaunchScreen-Center@2x.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png deleted file mode 100644 index a5a775a..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png b/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png deleted file mode 100644 index 154c193..0000000 Binary files a/demo-ng/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png and /dev/null differ diff --git a/demo-ng/app/App_Resources/iOS/Info.plist b/demo-ng/app/App_Resources/iOS/Info.plist deleted file mode 100644 index ea3e3ea..0000000 --- a/demo-ng/app/App_Resources/iOS/Info.plist +++ /dev/null @@ -1,47 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleDisplayName - ${PRODUCT_NAME} - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIRequiresFullScreen - - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/demo-ng/app/App_Resources/iOS/LaunchScreen.storyboard b/demo-ng/app/App_Resources/iOS/LaunchScreen.storyboard deleted file mode 100644 index c4e5a3f..0000000 --- a/demo-ng/app/App_Resources/iOS/LaunchScreen.storyboard +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/demo-ng/app/App_Resources/iOS/build.xcconfig b/demo-ng/app/App_Resources/iOS/build.xcconfig deleted file mode 100644 index 78e43f8..0000000 --- a/demo-ng/app/App_Resources/iOS/build.xcconfig +++ /dev/null @@ -1,7 +0,0 @@ -// You can add custom settings here -// for example you can uncomment the following line to force distribution code signing -// CODE_SIGN_IDENTITY = iPhone Distribution -// To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html -// DEVELOPMENT_TEAM = YOUR_TEAM_ID; -ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; -ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; diff --git a/demo-ng/app/README.md b/demo-ng/app/README.md deleted file mode 100644 index 132ede3..0000000 --- a/demo-ng/app/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# NativeScript Angular Template - -This template creates a "Hello, world" NativeScript app using TypeScript and Angular. - -You can create a new app that uses this template with either the `--template` option. - -``` -tns create my-app-name --template tns-template-hello-world-ng -``` - -Or the `--ng` shorthand. - -``` -tns create my-app-name --ng -``` - -> Note: Both commands will create a new NativeScript app that uses the latest version of this template published to [npm] (https://www.npmjs.com/package/tns-template-hello-world-ng). - -If you want to create a new app that uses the source of the template from the `master` branch, you can execute the following: - -``` -tns create my-app-name --template https://github.com/NativeScript/template-hello-world-ng.git#master -``` - -**NB:** Please, have in mind that the master branch may refer to dependencies that are not on NPM yet! diff --git a/demo-ng/app/app.component.html b/demo-ng/app/app.component.html deleted file mode 100644 index 8a2c1a7..0000000 --- a/demo-ng/app/app.component.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/demo-ng/app/app.component.ts b/demo-ng/app/app.component.ts deleted file mode 100644 index b95dd6f..0000000 --- a/demo-ng/app/app.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Component } from "@angular/core"; - -@Component({ - selector: "ns-app", - templateUrl: "app.component.html", -}) - -export class AppComponent { } diff --git a/demo-ng/app/app.css b/demo-ng/app/app.css deleted file mode 100644 index d23504c..0000000 --- a/demo-ng/app/app.css +++ /dev/null @@ -1,12 +0,0 @@ -/* -In NativeScript, the app.css file is where you place CSS rules that -you would like to apply to your entire application. Check out -http://docs.nativescript.org/ui/styling for a full list of the CSS -selectors and properties you can use to style UI components. - -/* -In many cases you may want to use the NativeScript core theme instead -of writing your own CSS rules. For a full list of class names in the theme -refer to http://docs.nativescript.org/ui/theme. -*/ -@import '~nativescript-theme-core/css/core.light.css'; diff --git a/demo-ng/app/app.module.ngfactory.d.ts b/demo-ng/app/app.module.ngfactory.d.ts deleted file mode 100644 index 793157d..0000000 --- a/demo-ng/app/app.module.ngfactory.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * A dynamically generated module when compiled with AoT. - */ -export const AppModuleNgFactory: any; \ No newline at end of file diff --git a/demo-ng/app/app.module.ts b/demo-ng/app/app.module.ts deleted file mode 100644 index 026e18b..0000000 --- a/demo-ng/app/app.module.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; -import { NativeScriptModule } from "nativescript-angular/nativescript.module"; -import { AppRoutingModule } from "./app.routing"; -import { AppComponent } from "./app.component"; - -import { ItemService } from "./item/item.service"; -import { ItemsComponent } from "./item/items.component"; -import { ItemDetailComponent } from "./item/item-detail.component"; - -// Uncomment and add to NgModule imports if you need to use two-way binding -// import { NativeScriptFormsModule } from "nativescript-angular/forms"; - -// Uncomment and add to NgModule imports if you need to use the HTTP wrapper -// import { NativeScriptHttpModule } from "nativescript-angular/http"; -import { registerElement } from "nativescript-angular/element-registry"; -import { BarcodeScanner } from "nativescript-barcodescanner"; -import { ModalComponent } from "~/item/modal/modal.component"; -registerElement("BarcodeScanner", () => require("nativescript-barcodescanner").BarcodeScannerView); - -@NgModule({ - bootstrap: [ - AppComponent - ], - imports: [ - NativeScriptModule, - AppRoutingModule - ], - declarations: [ - AppComponent, - ItemsComponent, - ItemDetailComponent, - ModalComponent - ], - providers: [ - ItemService, - BarcodeScanner - ], - schemas: [ - NO_ERRORS_SCHEMA - ], - entryComponents: [ModalComponent], -}) -/* -Pass your application module to the bootstrapModule function located in main.ts to start your app -*/ -export class AppModule { } diff --git a/demo-ng/app/app.routing.ts b/demo-ng/app/app.routing.ts deleted file mode 100644 index 26c691b..0000000 --- a/demo-ng/app/app.routing.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { NgModule } from "@angular/core"; -import { NativeScriptRouterModule } from "nativescript-angular/router"; -import { Routes } from "@angular/router"; - -import { ItemsComponent } from "./item/items.component"; -import { ItemDetailComponent } from "./item/item-detail.component"; - -const routes: Routes = [ - { path: "", redirectTo: "/items", pathMatch: "full" }, - { path: "items", component: ItemsComponent }, - { path: "item/:id", component: ItemDetailComponent }, -]; - -@NgModule({ - imports: [NativeScriptRouterModule.forRoot(routes)], - exports: [NativeScriptRouterModule] -}) -export class AppRoutingModule { } \ No newline at end of file diff --git a/demo-ng/app/item/item-detail.component.html b/demo-ng/app/item/item-detail.component.html deleted file mode 100644 index d3bbd4f..0000000 --- a/demo-ng/app/item/item-detail.component.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - diff --git a/demo-ng/app/item/item-detail.component.ts b/demo-ng/app/item/item-detail.component.ts deleted file mode 100644 index 8876adb..0000000 --- a/demo-ng/app/item/item-detail.component.ts +++ /dev/null @@ -1,66 +0,0 @@ -import {Component, OnInit} from "@angular/core"; -import {ActivatedRoute} from "@angular/router"; - -import {Item} from "./item"; -import {ItemService} from "./item.service"; -import {BarcodeScanner} from 'nativescript-barcodescanner'; - -@Component({ - selector: "ns-details", - moduleId: module.id, - templateUrl: "./item-detail.component.html", -}) -export class ItemDetailComponent implements OnInit { - item: Item; - pause = true; - - constructor( - private itemService: ItemService, - private route: ActivatedRoute, - private barcodeScanner: BarcodeScanner) { - setTimeout(() => { - this.pause = false; - }, 2000); - } - - ngOnInit(): void { - const id = +this.route.snapshot.params["id"]; - this.item = this.itemService.getItem(id); - } - - public onScanResult(evt) { - // console.log(evt.object); - console.log(`onScanResult: ${evt.text} (${evt.format})`); - - this.pause = true; - console.log("Paused"); - setTimeout(() => { - this.pause = false; - console.log("Unpaused"); - }, 4000); - } - - public scanTapped(): void { - let scan = () => { - this.barcodeScanner.scan({ - formats: "QR_CODE, EAN_13", - beepOnScan: true, - reportDuplicates: true, - preferFrontCamera: false - // continuousScanCallback: scanResult => { - // console.log("result: " + JSON.stringify(scanResult)); - // this.barcodeScanner.stop(); - // } - }) - .then(result => console.log(JSON.stringify(result))) - .catch(error => console.log(error)); - }; - - this.barcodeScanner.hasCameraPermission() - .then(granted => granted ? scan() : console.log("Permission denied")) - .catch(() => { - this.barcodeScanner.requestCameraPermission() - .then(() => scan()); - }); - } -} diff --git a/demo-ng/app/item/item.service.ts b/demo-ng/app/item/item.service.ts deleted file mode 100644 index 0feb6c5..0000000 --- a/demo-ng/app/item/item.service.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Injectable } from "@angular/core"; - -import { Item } from "./item"; - -@Injectable() -export class ItemService { - private items = new Array( - { id: 1, name: "Ter Stegen", role: "Goalkeeper" }, - { id: 3, name: "Piqué", role: "Defender" }, - { id: 4, name: "I. Rakitic", role: "Midfielder" }, - { id: 5, name: "Sergio", role: "Midfielder" }, - { id: 6, name: "Denis Suárez", role: "Midfielder" }, - { id: 7, name: "Arda", role: "Midfielder" }, - { id: 8, name: "A. Iniesta", role: "Midfielder" }, - { id: 9, name: "Suárez", role: "Forward" }, - { id: 10, name: "Messi", role: "Forward" }, - { id: 11, name: "Neymar", role: "Forward" }, - { id: 12, name: "Rafinha", role: "Midfielder" }, - { id: 13, name: "Cillessen", role: "Goalkeeper" }, - { id: 14, name: "Mascherano", role: "Defender" }, - { id: 17, name: "Paco Alcácer", role: "Forward" }, - { id: 18, name: "Jordi Alba", role: "Defender" }, - { id: 19, name: "Digne", role: "Defender" }, - { id: 20, name: "Sergi Roberto", role: "Midfielder" }, - { id: 21, name: "André Gomes", role: "Midfielder" }, - { id: 22, name: "Aleix Vidal", role: "Midfielder" }, - { id: 23, name: "Umtiti", role: "Defender" }, - { id: 24, name: "Mathieu", role: "Defender" }, - { id: 25, name: "Masip", role: "Goalkeeper" }, - ); - - getItems(): Item[] { - return this.items; - } - - getItem(id: number): Item { - return this.items.filter(item => item.id === id)[0]; - } -} diff --git a/demo-ng/app/item/item.ts b/demo-ng/app/item/item.ts deleted file mode 100644 index 950fba4..0000000 --- a/demo-ng/app/item/item.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface Item { - id: number; - name: string; - role: string; -} diff --git a/demo-ng/app/item/items.component.html b/demo-ng/app/item/items.component.html deleted file mode 100644 index f0195ab..0000000 --- a/demo-ng/app/item/items.component.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/demo-ng/app/item/items.component.ts b/demo-ng/app/item/items.component.ts deleted file mode 100644 index 227c97e..0000000 --- a/demo-ng/app/item/items.component.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Component, OnInit, ViewContainerRef } from "@angular/core"; - -import { Item } from "./item"; -import { ItemService } from "./item.service"; -import { ModalDialogOptions, ModalDialogService } from "nativescript-angular"; -import { ModalComponent } from "~/item/modal/modal.component"; - -@Component({ - selector: "ns-items", - moduleId: module.id, - templateUrl: "./items.component.html", -}) -export class ItemsComponent implements OnInit { - items: Item[]; - - constructor(private itemService: ItemService, - private modalService: ModalDialogService, - private vcRef: ViewContainerRef) { - } - - ngOnInit(): void { - this.items = this.itemService.getItems(); - } - - openModal(): void { - const options: ModalDialogOptions = { - viewContainerRef: this.vcRef, - context: {}, - fullscreen: true - }; - - this.modalService.showModal(ModalComponent, options); - - } -} \ No newline at end of file diff --git a/demo-ng/app/item/modal/modal.component.css b/demo-ng/app/item/modal/modal.component.css deleted file mode 100644 index e69de29..0000000 diff --git a/demo-ng/app/item/modal/modal.component.html b/demo-ng/app/item/modal/modal.component.html deleted file mode 100644 index d4eb558..0000000 --- a/demo-ng/app/item/modal/modal.component.html +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/demo-ng/app/item/modal/modal.component.ts b/demo-ng/app/item/modal/modal.component.ts deleted file mode 100644 index 404a998..0000000 --- a/demo-ng/app/item/modal/modal.component.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { Component } from "@angular/core"; -import { ModalDialogParams } from "nativescript-angular/modal-dialog"; -import { BarcodeScanner } from "nativescript-barcodescanner"; - -@Component({ - selector: "modal", - moduleId: module.id, - templateUrl: "./modal.component.html", - styleUrls: ["./modal.component.css"], - -}) - -export class ModalComponent { - barcodescanner: any; - - constructor(private params: ModalDialogParams) { - this.barcodescanner = new BarcodeScanner(); - } - - close() { - this.params.closeCallback(); - } - - public onScanResult(evt) { - // console.log(evt.object); - console.log(`onScanResult: ${evt.text} (${evt.format})`); - } - - openNotification() { - console.log("OPEN NOTIFICATION!"); - this.close(); - - this.barcodescanner.scan({ - formats: "QR_CODE, EAN_13", - cancelLabel: "EXIT. Also, try the volume buttons!", // iOS only, default 'Close' - cancelLabelBackgroundColor: "#333333", // iOS only, default '#000000' (black) - - showFlipCameraButton: true, // default false - preferFrontCamera: false, // default false - showTorchButton: true, // default false - beepOnScan: true, // Play or Suppress beep on scan (default true) - torchOn: false, // launch with the flashlight on (default false) - closeCallback: () => { - console.log("Scanner closed"); - }, // invoked when the scanner was closed (success or abort) - - openSettingsIfPermissionWasPreviouslyDenied: true // On iOS you can send the user to the settings app if access was previously denied - }).then((result) => { - // Note that this Promise is never invoked when a 'continuousScanCallback' function is provided - console.log({ - title: "Scan result", - message: "Format: " + result.format + ",\nValue: " + result.text, - okButtonText: "OK" - }); - }, (errorMessage) => { - console.log("No scan. " + errorMessage); - } - ); - } -} \ No newline at end of file diff --git a/demo-ng/app/main.aot.ts b/demo-ng/app/main.aot.ts deleted file mode 100644 index 9a73188..0000000 --- a/demo-ng/app/main.aot.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { platformNativeScript } from "nativescript-angular/platform-static"; - -import { AppModuleNgFactory } from "./app.module.ngfactory"; - -platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory); diff --git a/demo-ng/app/main.ts b/demo-ng/app/main.ts deleted file mode 100644 index 985fa34..0000000 --- a/demo-ng/app/main.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { platformNativeScriptDynamic } from "nativescript-angular/platform"; - -import { AppModule } from "./app.module"; - -platformNativeScriptDynamic().bootstrapModule(AppModule); diff --git a/demo-ng/app/package.json b/demo-ng/app/package.json deleted file mode 100644 index 22389a5..0000000 --- a/demo-ng/app/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "android": { - "v8Flags": "--expose_gc" - }, - "main": "main.js", - "name": "tns-template-hello-world-ng", - "version": "4.0.1" -} \ No newline at end of file diff --git a/demo-ng/package.json b/demo-ng/package.json deleted file mode 100644 index 6dbf90b..0000000 --- a/demo-ng/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "description": "NativeScript Application", - "license": "SEE LICENSE IN ", - "readme": "NativeScript Application", - "repository": "", - "nativescript": { - "id": "org.nativescript.demong", - "tns-android": { - "version": "6.0.0" - }, - "tns-ios": { - "version": "6.0.1" - } - }, - "dependencies": { - "@angular/animations": "8.0.0", - "@angular/common": "8.0.0", - "@angular/compiler": "8.0.0", - "@angular/core": "8.0.0", - "@angular/forms": "8.0.0", - "@angular/http": "8.0.0-beta.10", - "@angular/platform-browser": "8.0.0", - "@angular/platform-browser-dynamic": "8.0.0", - "@angular/router": "8.0.0", - "nativescript-angular": "8.0.2", - "nativescript-barcodescanner": "file:../publish/package/nativescript-barcodescanner-3.4.1.tgz", - "nativescript-theme-core": "~1.0.4", - "reflect-metadata": "~0.1.8", - "rxjs": "6.3.3", - "tns-core-modules": "6.0.1", - "zone.js": "0.9.1" - }, - "devDependencies": { - "babel-traverse": "6.4.5", - "babel-types": "6.4.5", - "babylon": "6.4.5", - "lazy": "1.0.11", - "typescript": "3.4.5", - "nativescript-dev-webpack": "1.0.1", - "@angular/compiler-cli": "8.0.0", - "@ngtools/webpack": "8.0.0" - } -} diff --git a/demo-ng/tsconfig.json b/demo-ng/tsconfig.json deleted file mode 100644 index 4d138d1..0000000 --- a/demo-ng/tsconfig.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "experimentalDecorators": true, - "emitDecoratorMetadata": true, - "noEmitHelpers": true, - "noEmitOnError": true, - "lib": [ - "es6", - "dom", - "es2015.iterable" - ], - "baseUrl": ".", - "paths": { - "~/*": [ - "app/*" - ], - "*": [ - "./node_modules/tns-core-modules/*", - "./node_modules/*" - ] - } - }, - "exclude": [ - "node_modules", - "platforms" - ] -} \ No newline at end of file diff --git a/demo-ng/tsconfig.tns.json b/demo-ng/tsconfig.tns.json deleted file mode 100644 index 95f2ece..0000000 --- a/demo-ng/tsconfig.tns.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "./tsconfig", - "compilerOptions": { - "module": "es2015", - "moduleResolution": "node" - } -} diff --git a/demo-vue/app/app.scss b/demo-vue/app/app.scss index 59ab05a..a32412a 100644 --- a/demo-vue/app/app.scss +++ b/demo-vue/app/app.scss @@ -1,10 +1,2 @@ -// NativeScript core theme -// @see https://docs.nativescript.org/ui/theme -@import '~nativescript-theme-core/scss/dark'; - -// Override variables here - -@import '~nativescript-theme-core/scss/index'; - -// Global SCSS styling -// @see https://docs.nativescript.org/ui/styling +@import "~@nativescript/theme/css/core.css"; +@import "~@nativescript/theme/css/default.css"; diff --git a/demo-vue/app/components/App.vue b/demo-vue/app/components/App.vue index 6f36787..d7cee9e 100644 --- a/demo-vue/app/components/App.vue +++ b/demo-vue/app/components/App.vue @@ -16,15 +16,15 @@ v-if="isIOS"> - - + +