Skip to content

Commit

Permalink
feat(#485): [Bhargavi|Adityan] [Android] remove unneeded properties,p…
Browse files Browse the repository at this point in the history
…ermissions for characteristics
  • Loading branch information
PuBHARGAVI committed Jan 26, 2023
1 parent 57627b6 commit 799f950
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions android/src/main/java/io/mosip/tuvali/verifier/GattService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class GattService {

val identifyRequestChar = BluetoothGattCharacteristic(
IDENTIFY_REQUEST_CHAR_UUID,
BluetoothGattCharacteristic.PROPERTY_WRITE_NO_RESPONSE or BluetoothGattCharacteristic.PROPERTY_WRITE,
BluetoothGattCharacteristic.PROPERTY_WRITE_NO_RESPONSE,
BluetoothGattCharacteristic.PERMISSION_WRITE
)

Expand All @@ -44,21 +44,20 @@ class GattService {

val responseSizeChar = BluetoothGattCharacteristic(
RESPONSE_SIZE_CHAR_UUID,
BluetoothGattCharacteristic.PROPERTY_WRITE_NO_RESPONSE or BluetoothGattCharacteristic.PROPERTY_WRITE,
BluetoothGattCharacteristic.PROPERTY_WRITE_NO_RESPONSE,
BluetoothGattCharacteristic.PERMISSION_WRITE
)

val submitResponseChar = BluetoothGattCharacteristic(
SUBMIT_RESPONSE_CHAR_UUID,
BluetoothGattCharacteristic.PROPERTY_WRITE_NO_RESPONSE or BluetoothGattCharacteristic.PROPERTY_WRITE,
BluetoothGattCharacteristic.PROPERTY_WRITE_NO_RESPONSE,
BluetoothGattCharacteristic.PERMISSION_WRITE
)

val transferReportRequestChar = BluetoothGattCharacteristic(
TRANSFER_REPORT_REQUEST_CHAR_UUID,
BluetoothGattCharacteristic.PROPERTY_WRITE_NO_RESPONSE or
BluetoothGattCharacteristic.PROPERTY_WRITE or BluetoothGattCharacteristic.PROPERTY_READ,
BluetoothGattCharacteristic.PERMISSION_READ or BluetoothGattCharacteristic.PERMISSION_WRITE
BluetoothGattCharacteristic.PROPERTY_WRITE_NO_RESPONSE,
BluetoothGattCharacteristic.PERMISSION_WRITE
)

val transferReportResponseChar = BluetoothGattCharacteristic(
Expand All @@ -69,13 +68,13 @@ class GattService {

val verificationStatusChar = BluetoothGattCharacteristic(
VERIFICATION_STATUS_CHAR_UUID,
BluetoothGattCharacteristic.PROPERTY_READ or BluetoothGattCharacteristic.PROPERTY_INDICATE,
BluetoothGattCharacteristic.PROPERTY_INDICATE,
BluetoothGattCharacteristic.PERMISSION_READ
)

val disconnectStatusChar = BluetoothGattCharacteristic(
DISCONNECT_CHAR_UUID,
BluetoothGattCharacteristic.PROPERTY_READ or BluetoothGattCharacteristic.PROPERTY_INDICATE,
BluetoothGattCharacteristic.PROPERTY_INDICATE,
BluetoothGattCharacteristic.PERMISSION_READ
)

Expand Down

0 comments on commit 799f950

Please sign in to comment.