### Run Unit Tests with Gradle Source: https://github.com/connectsdk/connect-sdk-android/blob/master/README.md This command executes the unit tests for the Connect SDK Android project, which are based on libraries like Robolectric, Mockito, and PowerMock. ```Shell gradle test ``` -------------------------------- ### Integrate Connect SDK from Source in Android Studio Source: https://github.com/connectsdk/connect-sdk-android/blob/master/README.md Detailed steps to include Connect SDK in an Android Studio project by cloning the repository and its submodules, then configuring settings.gradle and build.gradle to compile the SDK from source. This method allows for Amazon Fling SDK support. ```bash cd your_project_folder git clone https://github.com/ConnectSDK/Connect-SDK-Android.git cd Connect-SDK-Android git submodule update --init ``` ```groovy include ':app', ':Connect-SDK-Android' ``` ```groovy dependencies { //... compile project(':Connect-SDK-Android') } ``` -------------------------------- ### Add Connect SDK Prebuilt Library to Android Project Source: https://github.com/connectsdk/connect-sdk-android/blob/master/README.md Instructions for including the Connect SDK prebuilt library in an Android Studio project by adding a dependency to the build.gradle file. Note that this version does not include Amazon Fling SDK support. ```groovy dependencies { //... compile 'com.connectsdk:connect-sdk-android:1.6.0' } ``` -------------------------------- ### Configure Proguard Rules for Connect SDK Source: https://github.com/connectsdk/connect-sdk-android/blob/master/README.md Provides the essential Proguard rule to prevent obfuscation issues with DiscoveryManager in Connect SDK, ensuring that DiscoveryProvider can be correctly set. ```proguard -keep class com.connectsdk.** { * ; } ``` -------------------------------- ### Generate Test Coverage Report with Jacoco Source: https://github.com/connectsdk/connect-sdk-android/blob/master/README.md This command generates a test coverage report using Jacoco for the Connect SDK Android project. The report will be located in `Connect-SDK-Android/build/reports/jacoco/jacocoTestReport/html`. ```Shell gradle jacocoTestReport ``` -------------------------------- ### Declare Required Android Permissions for Connect SDK Source: https://github.com/connectsdk/connect-sdk-android/blob/master/README.md Specifies the necessary Android permissions that must be added to the AndroidManifest.xml file for Connect SDK to function correctly, enabling network discovery, device interaction, and pairing information storage. ```xml ``` -------------------------------- ### Add Google Play Services Metadata for Chromecast Support Source: https://github.com/connectsdk/connect-sdk-android/blob/master/README.md Explains how to add a metadata tag to the section of AndroidManifest.xml to enable Chromecast support within the Connect SDK integration. ```xml ... ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.