<commit_before># DFU Library

[ ![Download](https://maven-badges.herokuapp.com/maven-central/no.nordicsemi.android/dfu/badge.svg?style=plastic) ](https://search.maven.org/artifact/no.nordicsemi.android/dfu)

This is an Android library for perfoming a DFU (Device Firmware Update) on devices running 
[nRF5 SDK firmware with DFU bootloader](https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader_modules.html?cp=8_1_3_5).
iOS version of the same library can be found at [IOS-DFU-Library](https://github.com/NordicSemiconductor/IOS-DFU-Library).

> Note: For devices running nRF Connect SDK (NCS), please use 
[nRF Connect Device Manager library](https://github.com/NordicSemiconductor/Android-nRF-Connect-Device-Manager) 
instead.

## Usage

Android DFU library is designed in 

### Setting up

The DFU library is available on Maven Central repository. Add it to your project by 
adding the following dependency:

```Groovy
implementation 'no.nordicsemi.android:dfu:{{VERSION}}'
```

Latest version targetting API less than 31 is 1.11.1.

For projects not migrated to Android Jetpack, use version 1.8.1.

> Note: Those versions are not maintained anymore. All new features and bug fixes will be released on 
the latest version only.

#### Proguard / R8
<commit_msg>Readme update<commit_after># DFU Library

[ ![Download](https://maven-badges.herokuapp.com/maven-central/no.nordicsemi.android/dfu/badge.svg?style=plastic) ](https://search.maven.org/artifact/no.nordicsemi.android/dfu)

This is an Android library for perfoming a DFU (Device Firmware Update) on devices running 
[nRF5 SDK firmware with DFU bootloader](https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader_modules.html?cp=8_1_3_5).
iOS version of the same library can be found at [IOS-DFU-Library](https://github.com/NordicSemiconductor/IOS-DFU-Library).

> Note: For devices running nRF Connect SDK (NCS), please use 
[nRF Connect Device Manager library](https://github.com/NordicSemiconductor/Android-nRF-Connect-Device-Manager) 
instead.

## Usage

### Setting up

The DFU library is available on Maven Central repository. Add it to your project by 
adding the following dependency:

```Groovy
implementation 'no.nordicsemi.android:dfu:{{VERSION}}'
```

Latest version targeting API lower than 31 is 1.11.1.

For projects not migrated to Android Jetpack, use version 1.8.1.

> Note: Those versions are not maintained anymore. All new features and bug fixes will be released on 
the latest version only.

#### Proguard / R8

{'fraction_non_alphanumeric': 0.10534653465346534, 'fraction_numerical': 0.015841584158415842, 'mean_word_length': 4.901869158878505, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5768140', 'n_tokens_mistral': 882, 'n_tokens_neox': 808, 'n_words': 247}