Skip to content

Commit 588cc03

Browse files
author
Cody Brookshear
committed
Add keyboard wedge sample app
1 parent 18b75f1 commit 588cc03

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+6589
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Ionic sample apps that use [Datalogic Cordova plugin](https://github.com/datalog
1111
| [LedManager](LedManager/) | Uses [`ledManager`](https://github.com/datalogic/cordova-plugin-datalogic#ledManager) functions to turn device LEDs on and off. | ![LedManager](LedManager/screenshots/screenshot.png)
1212
| [SetSymbologies](SetSymbologies/) | Uses [`scannerProperties`](https://github.com/datalogic/cordova-plugin-datalogic#scannerProperties) functions to enable or disable barcode symbologies. | ![SetSymbologies](SetSymbologies/screenshots/screenshot.png)
1313
| [SetTriggers](SetTriggers/) | Uses [`keyboardManager`](https://github.com/datalogic/cordova-plugin-datalogic#keyboardManager) functions to enable or disable device triggers. | ![SetTriggers](SetTriggers/screenshots/screenshot.png)
14+
| [Wedge](Wedge/) | Uses [`scannerProperties`](https://github.com/datalogic/cordova-plugin-datalogic#scannerProperties) functions to enable or disable barcode keyboard wedge. | ![Wedge](Wedge/screenshots/screenshot.png)
1415

1516
## Build
1617

Wedge/.editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
2+
# editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
10+
# We recommend you to keep these unchanged
11+
end_of_line = lf
12+
charset = utf-8
13+
trim_trailing_whitespace = true
14+
insert_final_newline = true
15+
16+
[*.md]
17+
trim_trailing_whitespace = false

Wedge/.gitignore

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Specifies intentionally untracked files to ignore when using Git
2+
# http://git-scm.com/docs/gitignore
3+
4+
*~
5+
*.sw[mnpcod]
6+
*.log
7+
*.tmp
8+
*.tmp.*
9+
log.txt
10+
*.sublime-project
11+
*.sublime-workspace
12+
.vscode/
13+
npm-debug.log*
14+
15+
.idea/
16+
.ionic/
17+
.sourcemaps/
18+
.sass-cache/
19+
.tmp/
20+
.versions/
21+
coverage/
22+
dist/
23+
node_modules/
24+
tmp/
25+
temp/
26+
platforms/
27+
plugins/
28+
plugins/android.json
29+
plugins/ios.json
30+
www/
31+
$RECYCLE.BIN/
32+
33+
.DS_Store
34+
Thumbs.db
35+
UserInterfaceState.xcuserstate
36+
37+
resources/ios
38+

Wedge/config.xml

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<widget id="com.datalogic.examples.ionic.wedge" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
3+
<name>wedge</name>
4+
<description>Sample to demonstrate how to enable/disable scanner symbologies.</description>
5+
<author href="http://www.datalogic.com/">Datalogic Applications Group</author>
6+
<content src="index.html" />
7+
<access origin="*" />
8+
<allow-intent href="http://*/*" />
9+
<allow-intent href="https://*/*" />
10+
<allow-intent href="tel:*" />
11+
<allow-intent href="sms:*" />
12+
<allow-intent href="mailto:*" />
13+
<allow-intent href="geo:*" />
14+
<preference name="ScrollEnabled" value="false" />
15+
<preference name="android-minSdkVersion" value="19" />
16+
<preference name="BackupWebStorage" value="none" />
17+
<preference name="SplashMaintainAspectRatio" value="true" />
18+
<preference name="FadeSplashScreenDuration" value="300" />
19+
<preference name="SplashShowOnlyFirstTime" value="false" />
20+
<preference name="SplashScreen" value="screen" />
21+
<preference name="SplashScreenDelay" value="3000" />
22+
<platform name="android">
23+
<allow-intent href="market:*" />
24+
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
25+
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
26+
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
27+
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
28+
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
29+
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
30+
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
31+
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
32+
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
33+
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
34+
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
35+
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
36+
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
37+
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
38+
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
39+
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
40+
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
41+
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
42+
</platform>
43+
<platform name="ios">
44+
<allow-intent href="itms:*" />
45+
<allow-intent href="itms-apps:*" />
46+
<icon height="57" src="resources/ios/icon/icon.png" width="57" />
47+
<icon height="114" src="resources/ios/icon/[email protected]" width="114" />
48+
<icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
49+
<icon height="80" src="resources/ios/icon/[email protected]" width="80" />
50+
<icon height="120" src="resources/ios/icon/[email protected]" width="120" />
51+
<icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
52+
<icon height="100" src="resources/ios/icon/[email protected]" width="100" />
53+
<icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
54+
<icon height="120" src="resources/ios/icon/[email protected]" width="120" />
55+
<icon height="180" src="resources/ios/icon/[email protected]" width="180" />
56+
<icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
57+
<icon height="144" src="resources/ios/icon/[email protected]" width="144" />
58+
<icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
59+
<icon height="152" src="resources/ios/icon/[email protected]" width="152" />
60+
<icon height="167" src="resources/ios/icon/[email protected]" width="167" />
61+
<icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
62+
<icon height="58" src="resources/ios/icon/[email protected]" width="58" />
63+
<icon height="87" src="resources/ios/icon/[email protected]" width="87" />
64+
<icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
65+
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
66+
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
67+
<splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
68+
<splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
69+
<splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
70+
<splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
71+
<splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
72+
<splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
73+
<splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
74+
<splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
75+
<splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
76+
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
77+
<splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
78+
</platform>
79+
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
80+
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
81+
<plugin name="cordova-plugin-device" spec="2.0.2" />
82+
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
83+
<plugin name="cordova-plugin-ionic-webview" spec="^2.0.0" />
84+
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
85+
<plugin name="cordova-plugin-datalogic" spec="@datalogic/cordova-plugin-datalogic@^0.2.1" />
86+
<engine name="android" spec="7.1.4" />
87+
</widget>

Wedge/ionic.config.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "ionic-sample-app-wedge",
3+
"integrations": {
4+
"cordova": {}
5+
},
6+
"type": "ionic-angular"
7+
}

0 commit comments

Comments
 (0)