<commit_before>respoke-android-sdk
===================

This repository uses git submodules! Make sure to clone this repo using the --recursive flag in order to automatically clone the SDK submodule as well.


```
git clone --recursive https://<USER_NAME>@stash.digium.com/stash/scm/sa/respoke-android.git
```

Prerequisites:

Android Studio (I used v1.1)
Android NDK (I used r10b, Mac 64-bit)

https://developer.android.com/tools/sdk/ndk/index.html



Running the SDK test cases
==========================

The functional test cases that use RespokeCall require a specific Web application based on Respoke.js that is set up to automatically respond to certain actions that the SDK test cases perform. Because the web application will use audio and video, it requires special user permissions from browsers that support WebRTC and typically requires user interaction. Therefore it must run from either the context of a web server, or by loading the html file from the file system with specific command line parameters for Chrome. 

Additionally, the Android Studio test project has been set up to expect that the web application will connect to Respoke with a specific endpoint ID in the following format:

testbot-username

This username is the user that you are logged into your development computer with when you run the tests. This is done to avoid conflicts that can occur when multiple developers are running multiple instances of the test web application simultaneously. 

To set up your system to perform these tests, do one of the following:

A) Load the html from a file with Chrome. 

1) Run the following command to command Chrome to start the test bot and use a fake audio and video source during testing
<commit_msg>Fix stash link in the readme.<commit_after>respoke-android-sdk
===================

This repository uses git submodules! Make sure to clone this repo using the --recursive flag in order to automatically clone the SDK submodule as well.


```
git clone --recursive https://<USER_NAME>@stash.digium.com/stash/scm/scl/respoke-sdk-android.git
```

Prerequisites:

Android Studio (I used v1.1)
Android NDK (I used r10b, Mac 64-bit)

https://developer.android.com/tools/sdk/ndk/index.html



Running the SDK test cases
==========================

The functional test cases that use RespokeCall require a specific Web application based on Respoke.js that is set up to automatically respond to certain actions that the SDK test cases perform. Because the web application will use audio and video, it requires special user permissions from browsers that support WebRTC and typically requires user interaction. Therefore it must run from either the context of a web server, or by loading the html file from the file system with specific command line parameters for Chrome. 

Additionally, the Android Studio test project has been set up to expect that the web application will connect to Respoke with a specific endpoint ID in the following format:

testbot-username

This username is the user that you are logged into your development computer with when you run the tests. This is done to avoid conflicts that can occur when multiple developers are running multiple instances of the test web application simultaneously. 

To set up your system to perform these tests, do one of the following:

A) Load the html from a file with Chrome. 

1) Run the following command to command Chrome to start the test bot and use a fake audio and video source during testing

{'fraction_non_alphanumeric': 0.06377477736282677, 'fraction_numerical': 0.004021832806664752, 'mean_word_length': 4.562300319488818, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2026797', 'n_tokens_mistral': 855, 'n_tokens_neox': 796, 'n_words': 505}