Skip to content

Commit

Permalink
Merge pull request #9 from ltrudu/master
Browse files Browse the repository at this point in the history
Update for A13
  • Loading branch information
ltrudu authored Sep 28, 2023
2 parents 6c8ec32 + 7928b8b commit 596bef4
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 12 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates


version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions DeviceIdentifiersWrapper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ plugins {
}

android {
compileSdkVersion 32
compileSdkVersion 33

defaultConfig {
minSdkVersion 19
targetSdkVersion 32
versionCode 8
versionName "0.8"
targetSdkVersion 33
versionCode 9
versionName "0.9"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'

}

Expand All @@ -30,9 +30,9 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'androidx.appcompat:appcompat:1.0.0'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
compileOnly 'com.symbol:emdk:+'
}
21 changes: 21 additions & 0 deletions DeviceIdentifiersWrapper/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.zebra.deviceidentifierswrapper">
<!-- TODO: Add these permissions and queries to your app -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="com.zebra.provider.READ"/>
<uses-permission android:name="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
tools:ignore="ProtectedPermissions" />
<uses-permission android:name="com.symbol.emdk.permission.EMDK" />

<queries>
<package android:name="com.symbol.emdk.emdkservice" />
<provider android:authorities="oem_info" />
</queries>

<!--application
android:name = ".MainApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<uses-library android:name="com.symbol.emdk" />
TODO: Add uses-library to your application
....
</application-->

</manifest>
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ Have fun with Zebra's devices :)

## Change Log !!!
### 1. Change of REPOSITORY
### 2. UPDATED FOR A11...
### 3. Added a Sample repository running on <=A11
### 2. UPDATED FOR A13...
### 3. Added a Sample repository running on <=A13

## Sample Repository
https://github.com/ltrudu/DeviceIdentifiersWrapper-Sample

## V0.8 to V0.9 : Updated for A13
```text
Added BIND_NOTIFICATION_LISTENER_SERVICE permission
Added com.symbol.emdk.emdkservice querie
API updated to 33
```
## V0.4 to v0.8 : Basic cache mechanism & Wait for EMDK availability
```text
Added basic cache mechanism.
Expand Down Expand Up @@ -74,13 +80,15 @@ To use this helper on Zebra Android devices running Android 10 or higher, first
```xml
<uses-permission android:name="com.zebra.provider.READ"/>
<uses-permission android:name="com.symbol.emdk.permission.EMDK" />
<uses-permission android:name="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
```

Then add a query element to retrive the data (only necessary for Android builds >= 11)

```xml
<queries>
<provider android:authorities="oem_info" />
<package android:name="com.symbol.emdk.emdkservice" />
</queries>
```

Expand All @@ -97,10 +105,12 @@ Sample AdroidManifest.xml:
<!--> TODO: Add these permissions to your manifest </-->
<uses-permission android:name="com.zebra.provider.READ"/>
<uses-permission android:name="com.symbol.emdk.permission.EMDK" />
<uses-permission android:name="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"

<!--> TODO: Add query element to your manifest </-->
<queries>
<provider android:authorities="oem_info" />
<package android:name="com.symbol.emdk.emdkservice" />
</queries>

<application
Expand Down

0 comments on commit 596bef4

Please sign in to comment.