# Open Source Licenses

The Incode Android SDK is proprietary software. The SDK binary includes certain open-source components listed below.

For each component the copyright notice and license are identified; the full license text is available at the canonical URL provided.

If your application ships an "Open Source Licenses" screen, please include the notices below.

---

## Apache License, Version 2.0

The following components are incorporated into the SDK binary and are licensed under the Apache License, Version 2.0:

- **BitmapUtils.getTransformationMatrix()** — Copyright 2015 The TensorFlow Authors. All Rights Reserved.
  - Source: [https://github.com/tensorflow/tensorflow](https://github.com/tensorflow/tensorflow) (tensorflow/tools/android/test/jni/object_tracking/ImageUtils.java)

- **BlurTransformation** — Copyright 2020 Wasabeef
  - Source: [https://github.com/wasabeef/glide-transformations](https://github.com/wasabeef/glide-transformations)

- **ObservableTransformers** — Copyright 2016–2019 David Karnok
  - Source: [https://github.com/akarnokd/RxJavaExtensions](https://github.com/akarnokd/RxJavaExtensions)

- **ObservableValve** — Copyright 2016–2019 David Karnok
  - Source: [https://github.com/akarnokd/RxJavaExtensions](https://github.com/akarnokd/RxJavaExtensions)

- **PageIndicatorView** — Copyright 2017 Roman Danylyk
  - Source: [https://github.com/romandanylyk/PageIndicatorView](https://github.com/romandanylyk/PageIndicatorView)

- **PhoneNumberFormattingTextWatcher** — Copyright 2008 The Android Open Source Project
  - Source: [https://android.googlesource.com/](https://android.googlesource.com/)

- **SignatureView** (touchStart, touchMove, touchUp, TOUCH_TOLERANCE portions) — Copyright 2017 Google Inc.
  - Source: [https://github.com/google-developer-training/android-advanced](https://github.com/google-developer-training/android-advanced) (CanvasExample/MyCanvasView.java)

- **slide_in_right / slide_out_left animations** — Copyright 2007 The Android Open Source Project
  - Source: [https://android.googlesource.com/](https://android.googlesource.com/)

Full license text: [https://www.apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0)

---

## BSD 3-Clause License

The following components are incorporated into the SDK binary and are licensed under the BSD 3-Clause License. The license requires that the copyright notice, list of conditions, and disclaimer below be reproduced verbatim in any documentation or other materials provided with the distribution.

### SQLCipher for Android (`net.zetetic:sqlcipher-android`)
  - Source: [https://github.com/sqlcipher/sqlcipher-android](https://github.com/sqlcipher/sqlcipher-android)
  - Upstream license file: [https://github.com/sqlcipher/sqlcipher-android/blob/master/LICENSE](https://github.com/sqlcipher/sqlcipher-android/blob/master/LICENSE)

> Copyright (c) 2008–2024, ZETETIC LLC. All rights reserved.
>
> Redistribution and use in source and binary forms, with or without modification, are permitted
> provided that the following conditions are met:
>
> - Redistributions of source code must retain the above copyright notice, this list of conditions
> and the following disclaimer.
> - Redistributions in binary form must reproduce the above copyright notice,
> and the following disclaimer in the documentation and/or other materials provided
> with the distribution.
> - Neither the name of the ZETETIC LLC nor the names of its contributors may be used to endorse or
> promote products derived from this software without specific prior written permission.
>
> THIS SOFTWARE IS PROVIDED BY ZETETIC LLC ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
> INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
> PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ZETETIC LLC BE LIABLE FOR ANY DIRECT,
> INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
> TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
> INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
> LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
> SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

---

## Creative Commons Attribution-ShareAlike 3.0 (CC BY-SA 3.0)

The following code snippets are adapted from Stack Overflow answers published under the Creative Commons Attribution-ShareAlike 3.0 Unported License:

- **CustomTypefaceSpan** — Author: Weston
  - Source: [https://stackoverflow.com/a/9800616](https://stackoverflow.com/a/9800616)

- **IOUtils.getIPAddress()** — Author: Rüdiger Herrmann
  - Source: [https://stackoverflow.com/a/13007325](https://stackoverflow.com/a/13007325)

- **NfcScanBottomSheet.onCreateDialog()** (back-press / cancel-on-touch-outside behavior)
  - Source: [https://stackoverflow.com/questions/60067397/how-to-disable-back-button-on-second-bottom-sheet-dialog](https://stackoverflow.com/questions/60067397/how-to-disable-back-button-on-second-bottom-sheet-dialog)

- **ViewExtensions.isOverlapping()** (view overlap detection)
  - Source: [https://stackoverflow.com/questions/26252710/detect-if-views-are-overlapping](https://stackoverflow.com/questions/26252710/detect-if-views-are-overlapping)

Full license text: [https://creativecommons.org/licenses/by-sa/3.0/legalcode](https://creativecommons.org/licenses/by-sa/3.0/legalcode)

---

## MIT License

The following components are incorporated into the SDK binary and are licensed under the MIT License:

- **Marked** (Markdown parser) — Copyright 2011–2024 Christopher Jeffrey
  - Source: [https://github.com/markedjs/marked](https://github.com/markedjs/marked)

- **OtpView** — Copyright 2019 Aabhas Jindal
  - Source: [https://github.com/aabhasr1/OtpView](https://github.com/aabhasr1/OtpView)

- **Sentry** (portions) — Copyright 2018 Sentry ( [https://sentry.io](https://sentry.io/)) and individual contributors
  - Source: [https://github.com/getsentry/sentry-java](https://github.com/getsentry/sentry-java)

Incorporated files: `IncodeSentry`, `IncodeSentryHubAdapter`, `UncaughtExceptionHandlerIntegration`, `SentryUtils`

Full license text: [https://opensource.org/licenses/MIT](https://opensource.org/licenses/MIT)
