-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Zebra DW provider * Fixed #112 : worked around camera lifecycle. * Fixed DW provider start/stop API * Fixed incomplete CameraV2 image * Activity: Fixed LED button always present in default layout * Closes #113 - Zebra DW provider now creates its own profile. * Fixed API version * Fixed API 24 call * Fixed #124: IntentProvider service test * Fixed #124: ZebraDwProvider compatibility test * Add <queries> tag to manifest for DW package * Tentative fix for #111 - camera init/close is now locked globally * Fixed #113 remark - DW profile switching. --------- Co-authored-by: Marc-Antoine Gouillart <[email protected]>
- Loading branch information
1 parent
e415d74
commit 7126f92
Showing
18 changed files
with
1,136 additions
and
25 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Zebra DataWedge provider | ||
|
||
The goal of this plugin is to allow usage of Zebra devices that have the DataWedge management | ||
service installed, which happens mostly on integrated Zebra devices (TC26, TC27, TC55...). | ||
|
||
> Warning: there are multiple different providers that can manage those devices! Take care only to | ||
> have the one you want enabled, using the include or exclude provider search parameters. | ||
To use this provider: | ||
|
||
* it needs to be in the class path (just add it to the Maven dependencies like | ||
this: `implementation 'com.enioka.scanner:provider-cs-zebra-dw:x.y.z:aar'`) | ||
* The DataWedge service must be installed on the device and running (enabled or disabled). | ||
|
||
The plugin will on startup create or update a DataWedge profile that: | ||
|
||
* is named after your application package name. The profile name can also be specified with a string resource named `enioka_scan_zebra_dw_profile_name`. | ||
* is enabled. (note that the plugin will also enabled DataWedge itself if the service is running disabled) | ||
* has scanning enabled | ||
* has Intent output enabled, with: | ||
* Intent name `com.enioka.scanners.zebra.dw.intent.callback.name` (this can be modified by | ||
changing the string resource named `enioka_scan_zebra_dw_intent_name`) | ||
* No Intent Category | ||
* Intent Delivery set to `Broadcast Intent` | ||
|
||
You are allowed to modify any other configuration option in the profile except those above, which | ||
are reset on each initialization. This ensure you can tweak your scanning configuration as you want, | ||
but are still guaranteed scanning will work on plugin startup. | ||
|
||
This includes decoder configuration. The plugin will at runtime (and only at runtime, this is not | ||
persisted in the profile) enable or disable the decoders selected inside your app, but all the other | ||
numerous decoder parameters are free to configure inside the profile. |
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,41 @@ | ||
apply plugin: 'scanner.published-library' | ||
|
||
description 'Scanner provider for Zebra devices using the Zebra DataWedge service' | ||
|
||
android { | ||
compileSdkVersion 33 | ||
defaultConfig { | ||
minSdkVersion 19 | ||
targetSdkVersion 28 | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
lint { | ||
disable 'ExpiredTargetSdkVersion' | ||
} | ||
namespace 'com.enioka.scanner.sdk.zebra.dw' | ||
} | ||
|
||
ext { | ||
mavenArtifactId = "provider-cs-zebra-dw" | ||
} | ||
|
||
|
||
dependencies { | ||
// We need the APIs | ||
implementation project(':enioka_scan') | ||
|
||
// Linter helpers | ||
implementation 'com.android.support:support-annotations:28.0.0' | ||
|
||
// Test things (useless for now) | ||
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', { | ||
exclude group: 'com.android.support', module: 'support-annotations' | ||
}) | ||
testImplementation 'junit:junit:4.13.2' | ||
} |
Oops, something went wrong.